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

 
 

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

Submitter:  None
Submitted:  Fri 17 Feb 2012 06:06:35 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Privacy:  Public Assigned to:  hut
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-21 hut StatusNone Fixed
        Assigned toNone hut
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code