[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature request: capture output of last command and make it available on
feature request: capture output of last command and make it available on some hotkey
Wed, 31 Jul 2013 02:09:23 +0200
i think this would be a very useful feature and i don't seem to be alone:
There are a lot of hackish solutions how you could achieve this, but since
readline actually provides the yank-last-arg it would somehow be cool to also
have a yank-last-output-line, maybe on M-, instead of M-.
As outputs might get pretty big, maybe bash could remember up to the the first
and last 10 lines of output of the previous command. After that counting
usually gets slower than using another approach anyhow.
- type some command, realize you want to do something with the last line of the
output, for example view the path written there, type "less ", hit [esc] [,],
- whenever you used your mouse to copy that one line from the last output just
to reinsert it after the command you just typed.
- feature request: capture output of last command and make it available on some hotkey,
Jörn Hees <=