ranger-users
[Top][All Lists]
Advanced

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

[Ranger-users] New file launcher


From: Roman Z.
Subject: [Ranger-users] New file launcher
Date: Mon, 19 Mar 2012 01:31:49 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

If you use ranger from the git repository, you might notice that ranger has
a new file executor/opener.  It now leaves file launching to a module called
"rifle" which is also a stand-alone executable file:
http://git.savannah.gnu.org/cgit/ranger.git/tree/ranger/ext/rifle.py

This change makes the configuration file "apps.py" obsolete and introduces
a new one: rifle.conf
http://git.savannah.gnu.org/cgit/ranger.git/tree/ranger/defaults/rifle.conf

Check https://bbs.archlinux.org/viewtopic.php?id=135763 for a relevant 
discussion.

The new configuration file is much easier to read, write and parse than the
previous apps.py (which was python code). This is also the most simple format I
came up with that is as powerful as the apps.py, so we lose nothing. It is
actually more powerful than apps.py, because now you can list all the ways to
open a file by pressing "r". If you still want to do some coding in
python, there are hooks in rifle.py.

I hope this change removes the mental barriers that previously prevented you to
customize the file launching rules. (Get a custom copy with "ranger
--copy-config=rifle"). There are probably still some bugs which will be
fixed as we go along.




reply via email to

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