bugranger - Bugs: bug #35556, rangerChooser from man page gives...

 
 

bug #35556: rangerChooser from man page gives errors when opening with no file selected

Submitted by:  None
Submitted on:  Fri 17 Feb 2012 06:06:35 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Privacy: PublicAssigned to: Roman Z. <hut>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 21 Feb 2012 01:49:06 PM UTC, comment #1:

Thank you very much, I added your fix to the man page.

Roman Z. <hut>
Project AdministratorIn charge of this item.
Fri 17 Feb 2012 06:06:35 PM UTC, original submission:

Using the rangerChooser() in the man page to use vim to open files doesn't work right when a file isn't already open (gives error:
E499: Empty file name for '%' or '#', only works with ":p:h":

I fixed the problem for myself by changing

silent !ranger --choosefile=/tmp/chosenfile `[ -z '%' ] && echo -n . || dirname %`

to

exec "silent !ranger --choosefile=/tmp/chosenfile " . expand("%:p:h")

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hut (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 21 Feb 2012 01:49:06 PM UTChutStatusNone=>Fixed
      Assigned toNone=>hut
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1