1 |
On Thursday 21 August 2003 12:58, Stroller wrote: |
2 |
> This is blatantly OT, but amongst nano's advanced features, is there a |
3 |
> shortcut to delete the last word..? I don't see it mentioned in the FAQ |
4 |
> or the man page at the GNU site. |
5 |
|
6 |
mmm nano, i write c/php/html/ebuilds/sql/everything in it :) |
7 |
|
8 |
ctrl+g is pretty nice ... it's the help screen ... |
9 |
but basically the answer is 'no' ... there is a 'work around' though if you |
10 |
dont mind a few key strokes ... just dont use it do delete 'a' :) |
11 |
|
12 |
^ = ctrl, M = meta (alt key) |
13 |
this is from the help (^G): |
14 |
^Space: advance a word |
15 |
M-Space: go back a word |
16 |
^^ (M-A): set mark |
17 |
^K: cut a line (or cut currently marked) |
18 |
|
19 |
so, if we do this: |
20 |
meta+A (to set mark), meta+space (go back a word), ctrl+k (cut the marked |
21 |
text), we just nuked it ... |
22 |
problem (i think) is doing meta, meta, ctrl ... switching that finger in mid |
23 |
stroke is the sucks :( |
24 |
unfortunately, meta+k is already bound to enabling/disabling cutting of the |
25 |
newline when doing just ^k |
26 |
-mike |