如何在 linux 控制台编辑器 nano 和 pico 中扩展选择?

use*_*096 3 linux command-line-interface gnu

如何使用键盘扩展 nano 和 pico 中的选择,以便我可以移动和复制块?

抱歉,这是一个我通常会自己找到的问题,但我现在在不同的场合搜索了很多但没有成功。

ein*_*ien 5

我通过按 ctrl-g 从 nano 的帮助屏幕内部得到了这个:

Ctrl    F-Key   Esc Key
^^      (F15)   (M-A)   Mark text at the cursor position  
M-^             (M-6)   Copy the current line and store it in the cutbuffer
^U      (F10)           Uncut from the cutbuffer into the current line
Run Code Online (Sandbox Code Playgroud)

^ = ctrl
M = esc

因此,您将光标定位在要选择的位置的开头,然后按esc-actrl-shift-6F15然后使用箭头键移动光标以突出显示文本。突出显示后,按esc-6复制文本。最后移动到要粘贴的位置并按ctrl-uF10。我刚刚在 OS X 上的 nano 2.0.6 中对此进行了测试,但应该可以全面使用。