[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ranger-users] ranger: how-tos or cheat-sheet
From: |
Roman Z. |
Subject: |
Re: [Ranger-users] ranger: how-tos or cheat-sheet |
Date: |
Wed, 6 Mar 2013 18:21:35 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Mar 06, 2013 at 11:58:17AM -0500, ping wrote:
> On 3/5/2013 6:15 PM, Roman Z. wrote:
> >But to answer your question, it depends whether you use the command
> >often or rarely. If you just want to type it in a few times, simply
> >write "@tcpdump -nr<ENTER>". To use it with open_with, you need to add
> >a line for tcpdump to rifle.conf. Check the section about "rifle" in
> >the ranger man page and the documentation in rifle.conf.
> thanks!
> but that is what I did.
> but the problem is, I see the command output flushed away in front
> of my eyes, and disappears.
> I guess there must be a way to retain the the content...so looks
> that the '#' which puts a "-p" to pause (page) the shell outputs?
Yes, writing ":shell -p <command>" is equivalent, more or less, to
":shell <command> | $PAGER".
> b.t.w, currently I have worked around it (without doing any magic in
> ranger rifle), with vim ,which took some autocmd to render the file
> with tcpdump cmds..
> but the issue of that is, there is no easy way to change the tcpdump
> options in the fly --- I have to change the autocmd in my vimrc ,
> reload vim and read the file again...
What do you think of this: (put in rc.conf)
> map T console -p20 shell -p tcpdump -nr %f
When you press T it opens the console with your favourite command and
puts cursor at position 20. You can edit the options or simply press
enter.
Roman