focus-editor / focus

A simple and fast text editor
GNU General Public License v3.0
1.81k stars 99 forks source link

Add revert_select_word_or_create_another_cursor and move_selection_to_next_word commands #445

Closed BuzzwordChief closed 1 month ago

BuzzwordChief commented 1 month ago

Hello,

my workflow involves heavy usage of the select_word_or_create_another_cursor command. To make this command more powerful this pull request adds two new commands:

  1. revert_select_word_or_create_another_cursor: Reverts the action of select_word_or_create_another_cursor
  2. move_selection_to_next_word: Executes a select_word_or_create_another_cursor and deletes the previously 'newest' cursor. It basically allows you to skip a selection.

For a better comprehension see the following demo video:

https://github.com/user-attachments/assets/7a590fa5-3bed-4e1f-825a-e92b9692238f

focus-editor commented 1 month ago

Seems to be working well now, thanks!