Impossible to have different continuation prompt for hard and soft line wrap
See original GitHub issueIt 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:
- Created 6 years ago
- Comments:11 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.