Replies: 1 comment 1 reply
-
This is a limitation of the To extend it to support that, I think the storage for the semantic zone needs to move out of CellAttributes: and into the so that it can then be modified to hold more information. Then the logic in With the data in place, it would then be possible to teach the semantic zone aware selection logic how to traverse the continuation zones. |
Beta Was this translation helpful? Give feedback.
-
Let's say we have a shell that supports fully editable multiline prompts and to differentiate between a new line within a multiline prompt and a regular newline prepends to each continuation line a few dots
For example, this code...
... in a shell is shows like this:
What I don't understand is how to add semantic prompt markers that would allow selection of all the code without the
..
marksIf I addadd prompt_start/prompt_end_input_start marks before/after
..
like so:OSC133;P;k=c\007
..
OSC133;B\007
then I can multiclick to select
echo 1
instead of.. echo 1
because inputecho 1
is properly markedBut then I can select all the lines since (I guess) the end of prompt marks break continuation :(
But then if I don't add the end-of-prompt marks, I can selec the whole multiline area, but with the
..
continuation marks :((is this related to this issue in the semantic prompt docs, meaning that what I'd like to do is impossible since it's not implemented yet?
)
I've also noticed that if I add a start-of-continuation-prompt mark after each
..
, then I lose the ability to select the whole input area, the firstif True:
line is lost, the selection starts atecho 1
(but at least the first..
are excluded)Beta Was this translation helpful? Give feedback.
All reactions