suplemon icon indicating copy to clipboard operation
suplemon copied to clipboard

Feature proposal: Command abbreviation and Set Multi Cursor with keyboard

Open alexmigf opened this issue 8 years ago • 3 comments

Hi Richard,

Would be good to have abbreviation for the commands, for example:

Open File = of

Would be good too to have the choice to set multi cursors in different positions (not only vertical) with keyboard. For example, you choose a shortcut and you set many positions has you like and you go down, up, left and right and set the cursors where you want them.

alexmigf avatar May 23 '16 00:05 alexmigf

Nice idea again @alexmigf :)

The command abreviations will probably be implemented, I'll just need to create a user configurable alias map in the config.

Right now there are 3 ways of adding cursors:

  • Press Alt + Up / Down / Left / Right (this will add a cursor in the direction you press.)
  • Pressing Ctrl + D will find the word that begins at the cursor and add a new cursor at the next word
  • Activate mouse mode (F8) and right click at any place you want to add a cursor

I'm not sure if I understood correctly, but is this what you are asking: Add new cursors by moving the 'main' cursor to a new place and then saving that place as a new cursor? That sounds like a nice idea. Let me know if I understood correctly :)

richrd avatar May 23 '16 18:05 richrd

The same thing of the Mouse (F8) but with the keyboard, some shortcut.

alexmigf avatar May 23 '16 22:05 alexmigf

Regarding the command abbreviations, I think #171 will help with making commands faster to run (and it will probably be implemented before the aliases.) However I will implement command aliases after that too.

Placing cursors via the keyboard will require more work, since currently all the cursor moving code is built to move all cursors at once. So that might take some more time get implemented. On the other hand, it might be easier to let the user select the desired positions without actually adding cursors. Then when the user is ready they can press a key and the cursors get added.

richrd avatar Oct 07 '16 19:10 richrd