leo-editor 列操作模式命令 rectangle

本文介绍了LeoDocs中关于Emacs矩形区域命令的使用,如rectangle-clear、rectangle-delete等。通过示例展示了如何选择和操作矩形区域,例如在文本中创建宽度为零的矩形选择,并应用rectangle-string命令进行替换。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

英文不难,就不翻译了。

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: http://www.gnu.org/software/emacs/manual/html_node/emacs/Rectangles.html

The following commands emulate the Emacs rectangle commands_::

rectangle-clear
rectangle-delete

rectangle-open
rectangle-close

rectangle-kill
rectangle-yank

rectangle-string

Given::

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:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值