#107 smart region select

Open
opened 1 month ago by nuclearkev · 0 comments

Implement a command such as esc s or something that will do a "smart" region select. Here are some initial thoughts:

  • if at the start of a word, select the word
    • one keystroke vs C-<SPC> esc f
  • if at the end of a word, select the word
    • one keystroke vs C-<SPC> esc b
  • if in the middle of a word, select the word
  • if on white space, jump forward a word and keep the region.
  • C-u esc s selects the entire line
  • I'd like there to be a way to use this to run shell commands quicker so maybe there is a way to do something with another feature.

These would let you just mash esc s a few times to copy a few words.

Implement a command such as `esc s` or something that will do a "smart" region select. Here are some initial thoughts: - if at the start of a word, select the word - one keystroke vs `C-<SPC> esc f` - if at the end of a word, select the word - one keystroke vs `C-<SPC> esc b` - if in the middle of a word, select the word - if on white space, jump forward a word and keep the region. - `C-u esc s` selects the entire line - I'd like there to be a way to use this to run shell commands quicker so maybe there is a way to do something with another feature. These would let you just mash `esc s` a few times to copy a few words.
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.