leo-editor 列操作模式 rectangle

45 阅读1分钟

The following is from LeoDocs.leo. Selecting some text with mouse or keyboard arrow key, then between the first cursor and the end cursor is the columns that being selected.


Emacs rectangle commands: www.gnu.org/software/em…

The following commands emulate the Emacs rectangle commands

rectangle-clear
rectangle-delete

rectangle-open
rectangle-close

rectangle-kill
rectangle-yank

rectangle-string

操作文本举例

I'm really glad the docs are being updated. I know that's a
monumental task. I only use a fraction of Leo's commands, mostly
because I don't even know what they're supposed to accomplish. A few
examples:

下面是操作方式

Placing the cursor immediately before the first "I", holding shift and moving it to immediately before the wordexamples selects a zero width rectangle from the beginning to the end of the selection (zero width because the selection starts and ends in the same column. Then running rectangle-string [largo]<space><enter> yields:

[largo] I'm really glad the docs are being updated. I know that's a
[largo] monumental task. I only use a fraction of Leo's commands, mostly
[largo] because I don't even know what they're supposed to accomplish. A few
[largo] examples: