jmacdonald / amp

A complete text editor for your terminal.

Home Page:https://amp.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

caffo opened this issue · comments

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.

commented

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

Perfect, thanks!