vscode-emacs-mcx icon indicating copy to clipboard operation
vscode-emacs-mcx copied to clipboard

Rectangles

Open pasha-bolokhov opened this issue 5 years ago • 7 comments

GNU Emacs has the following keys for manipulating rectangles: copy rectangle to register C-x r r kill rectangle C-x r k yank rectangle C-x r y open rectangle, shifting text right C-x r o blank out rectangle C-x r c prefix each line with a string C-x r t

I find many of them very useful, especially prefix one, sometimes kill/yank

XEmacs used to have better keybindings than GNU Emacs, but unfortunately the project is no longer alive, so we have to use whatever is left — GNU Emacs. The main reason is Microsoft and Windows users, who grew up in Windows and used older and newer IDEs (starting with dummest Borland's Turbo Vision, and then IDEA, then... you know what), the authors of which had no exposure to readline or Emacs. Even though all of them do use readline in "bash", "mysql" and other command-line tools almost everyday (more so now because of "git", "npm", "yarn", "ng", and what not). To me it's like someone who had learned how to operate a chainsaw was asked to create a piano. They did create a piano, or what they thought a piano was

pasha-bolokhov avatar Apr 28 '20 17:04 pasha-bolokhov

memo: https://www.atmarkit.co.jp/ait/articles/1805/11/news022.html

whitphx avatar Oct 27 '20 03:10 whitphx

Assigning sequence of individual character keys (without modifiers) is not supported by VSCode yet: https://github.com/microsoft/vscode/issues/48129

Implementing these commands is possible, but we have difficulty at assigning keys to the commands.

whitphx avatar May 24 '21 14:05 whitphx

Some of the commands are added in v0.32.0

whitphx avatar May 31 '21 06:05 whitphx

Hey @whitphx , thank you for working on this.

Are there any plans for adding C-x r t? It would be nice to have multi-line editing.

sdsmith avatar Jul 11 '21 22:07 sdsmith

Hi, yes, it will be, though I can't promise the date.

whitphx avatar Jul 12 '21 13:07 whitphx

I implemented C-x r t and it is released in v0.36.0, while it does not fully emulate the original behavior. Please leave comments if there is some functionality you want to be implemented additionally.

whitphx avatar Oct 03 '21 15:10 whitphx

I implemented C-x r t and it is released in v0.36.0, while it does not fully emulate the original behavior. Please leave comments if there is some functionality you want to be implemented additionally.

Just wanted to say thanks for this great extension, and for your continual improvements! :)

eriegz avatar Nov 18 '21 20:11 eriegz

I close this issue at this moment as it looks like the current implementation of these commands cover the demands enough.

Please reopen this issue of create a new one if you find something to be improved or added.

whitphx avatar Nov 25 '22 02:11 whitphx