ranger-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ranger-users] Ranger-users Digest, Vol 28, Issue 3


From: ping
Subject: Re: [Ranger-users] Ranger-users Digest, Vol 28, Issue 3
Date: Tue, 11 Dec 2012 14:40:20 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

I upgraded using the git ,it seems all issues got resolved.
holy ranger!

how to disable this digest and get the direct response to my email?

On 12/06/2012 12:00 PM, address@hidden wrote:
Send Ranger-users mailing list submissions to
	address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.nongnu.org/mailman/listinfo/ranger-users
or, via email, send a message with subject or body 'help' to
	address@hidden

You can reach the person managing the list at
	address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ranger-users digest..."


Today's Topics:

   1. ranger: bash code example in man page doesn't work (ping)
   2. ranger: about --choose-file --choose-dir (ping)
   3. Re: ranger: bash code example in man page doesn't	work (Roman Z.)
   4. ranger: dead after C-z (ping)
   5. Re: ranger: dead after C-z (Roman Z.)


----------------------------------------------------------------------

Message: 1
Date: Wed, 05 Dec 2012 12:34:17 -0500
From: ping <address@hidden>
To: address@hidden
Subject: [Ranger-users] ranger: bash code example in man page doesn't
	work
Message-ID: <address@hidden>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"


I want to have range to continue exactly where I left off when re-run, 
but these code from the man page seems doesn't work.

    Bash: cd to last path after exit
        This is a bash function (for ~/.bashrc) to change the directory 
to the last visited one after ranger quits.  You can always type "cd -" 
to go back
        to the original one.

I put these into my .bashrc

         function ranger-cd {
           tempfile='/tmp/chosendir'
           /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"
           test -f "$tempfile" &&
           if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
             cd -- "$(cat "$tempfile")"
           fi
           rm -f -- "$tempfile"
         }

         # This binds Ctrl-O to ranger-cd:
         bind '"\C-o":"ranger-cd\C-m"'


am I missing anythinghere?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nongnu.org/archive/html/ranger-users/attachments/20121205/a752077a/attachment.html>

------------------------------

Message: 2
Date: Wed, 05 Dec 2012 12:39:11 -0500
From: ping <address@hidden>
To: address@hidden
Subject: [Ranger-users] ranger: about --choose-file --choose-dir
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

so per my test, with one/both of these , a <CR> or 'l' won't call
external associated program to open the file anymore?

this is a good feature if this is what people want, but I'm thinking
maybe it might be better to still use one keystroke (either <enter> or
l) to unconditionally call external program to open the file.

this is useful when calling range in vim, so with the choose-file/dir
vim can open the ranger-selected file, but if needed, external-prog
can still be called - currently I can't do that.

or maybe I missed anything?




------------------------------

Message: 3
Date: Wed, 5 Dec 2012 19:09:48 +0100
From: "Roman Z." <address@hidden>
To: address@hidden
Subject: Re: [Ranger-users] ranger: bash code example in man page
	doesn't	work
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

works for me.

Try
- open a new shell, so the function is actually available
- then start ranger with "ranger-cd"

On Wed, Dec 05, 2012 at 12:34:17PM -0500, ping wrote:
I want to have range to continue exactly where I left off when
re-run, but these code from the man page seems doesn't work.

   Bash: cd to last path after exit
       This is a bash function (for ~/.bashrc) to change the
directory to the last visited one after ranger quits.  You can
always type "cd -" to go back
       to the original one.

I put these into my .bashrc

        function ranger-cd {
          tempfile='/tmp/chosendir'
          /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"
          test -f "$tempfile" &&
          if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
            cd -- "$(cat "$tempfile")"
          fi
          rm -f -- "$tempfile"
        }

        # This binds Ctrl-O to ranger-cd:
        bind '"\C-o":"ranger-cd\C-m"'


am I missing anythinghere?





------------------------------

Message: 4
Date: Thu, 06 Dec 2012 08:51:12 -0500
From: ping <address@hidden>
To: address@hidden
Subject: [Ranger-users] ranger: dead after C-z
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I always start ranger, open a file in vim, ctrl-Z and make it run bg so 
I can do sth else, then when I fg it back, vim stalls, and no way to exit.

anyone expeirenced this?



------------------------------

Message: 5
Date: Thu, 6 Dec 2012 15:30:23 +0100
From: "Roman Z." <address@hidden>
To: address@hidden
Subject: Re: [Ranger-users] ranger: dead after C-z
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

yeah, and I don't know what causes it. :S

On Thu, Dec 06, 2012 at 08:51:12AM -0500, ping wrote:
I always start ranger, open a file in vim, ctrl-Z and make it run bg
so I can do sth else, then when I fg it back, vim stalls, and no way
to exit.

anyone expeirenced this?




------------------------------

_______________________________________________
Ranger-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ranger-users


End of Ranger-users Digest, Vol 28, Issue 3
*******************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]