My (dirty) hack is :
Make an executable shellscript wich sets the EDITOR variable and
launches urxvt with ranger.
myscript :
-------------
!/bin/myshell
export EDITOR="vim"
urxvt -name Ranger -title Ranger -e /bin/myshell /path/to/myscrip &
Then :
["r"]={"/bin/myshell /path/to/myscript","Ranger","instance"},
I'm doing similar things to tune and launch several tmux sessions. But...
*Warning* : this way you will spawn an extra process, as urxvt would be
child process of /bin/myshell (like we say in french : "ça m'en touche
une sans faire bouger l'autre" translated to "nevermind the bollo....").
Vlamy.
Le 20/03/2013 12:39, Corentin Henry a écrit :
Hi,
Thanks for your answer, but with "EDITOR=vim" at the beginning, no
window appears.
Corentin
2013/3/20 Gregor Zattler <[email protected] <mailto:[email protected]>>
Hi Corentin,
* Corentin Henry <[email protected]
<mailto:[email protected]>> [20. Mar. 2013]:
> Hi,
>
> I am using RoR, and I have a problem with urxvt.
> In my ror.lua I have :
> ["e"]={"urxvt -name defaultTerm -title
> defaultTerm","defaultTerm","instance"},
> ["r"]={"urxvt -name Ranger -title Ranger -e
ranger","Ranger","instance"},
>
> Ranger is a terminal file manager. It uses the $EDITOR variable
to open
> text files. When I open ranger in the "normal" terminal (opened with
> Mod4+e), $EDIT is set to vim, but when I open ranger using
mod4+r, $EDITOR
> is not set at all, which is a problem.
How about
["r"]={"EDITOR=vim urxvt -name Ranger -title Ranger -e
ranger","Ranger","instance"},
^^^^^^^^^^
?
HTH, Gregor
--
To unsubscribe, send mail to [email protected]
<mailto:[email protected]>.