jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.67k stars 105 forks source link

Is there a way to do "select until token X"? #287

Open caffo opened 2 months ago

caffo commented 2 months ago

So, for example, if I have:

<h1>foo bar zaz</h1>

The cursor is placed on the first >. I want to select everything until the next <. (foo bar zaz in this case) and be able to delete, yank, etc.

For reference, in Vim, to delete it, I would do t <to delete theh1` content.

pbgc commented 2 months ago

You can use v to start a text selection range and then f to to switch to jump mode and extend the selection to some place (may need to adjust the selection some chars after with the movement keys) and then and use d to delete the text

caffo commented 2 months ago

Perfect, thanks!