question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Impossible to have different continuation prompt for hard and soft line wrap

See original GitHub issue

It would be nice if get_continuation_prompt had enough information passed to it to have a different continuation prompt depending on if the line is hard wrapped or soft wrapped. As far as I can tell this is currently impossible (from the logic here, the get_continuation_prompt has no distinction between the different calls. Even if it were just passed n (for the n-th continuation prompt) I think this would be possible.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
asmeurercommented, Apr 10, 2017

Actually, what I really want is no continuation prompt for soft-wrapped text. Ideally, the text wouldn’t even soft wrap, so that if I select it and copy it, there are no newlines. Is this possible? It works this way in readline shells.

0reactions
jonathanslenderscommented, Jun 21, 2018

One other thing to keep into account I’m just thinking about is double width characters (+ maybe decomposed double width characters). I’m not sure all terminals handle it the same way during the line break. I remember certain inconsistencies. Further terminals like tmux do some tricks for getting auto reflow of to work. These are all things to keep in mind.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hard Wrap behaving like Soft Wrap In Sublime Text
I want the text editor to act just as it does now with respect to hard and soft wraps except: 1) Soft wraps...
Read more >
Long line wrapping in Nano - Unix & Linux Stack Exchange
To see the word wrapping style you described, use nano's "soft wrapping": Esc + $ . The Esc + L command you (and...
Read more >
Line wrap and word wrap - Wikipedia
A soft return or soft wrap is the break resulting from line wrap or word wrap (whether automatic or manual), whereas a hard...
Read more >
[misc] Text Viewer and Editor needs to support word wrap - Bugs
Allowing word/soft wrap in the editor while typing is easy but not enough, ... with soft wrap so I don't have a preference...
Read more >
How do I turn on line wrap? - Atom Flight Manual
... on other platforms; Click the “Editor” tab on the left of the settings view; Put a check in the “Soft Wrap” setting....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found