| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
This allows to pass more arguments before the argument list gets too
long.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
ranger.container.settingobject.SettingObject ->
ranger.container.settings.Settings
ranger.container.settingobject.LocalSettingObject ->
ranger.container.settings.LocalSettings
This is for more conformity. No other class is called *Object.
|
| |
|
| |
|
|
|
|
| |
why have an extra directory for them?
|
|
|
|
| |
http://www.python.org/dev/peps/pep-0008/#documentation-strings
|
|
|
|
|
| |
this fixes the problem that examples/plugin_skip_default_rc doesn't
work, because plugins are loaded after the rc.conf.
|
| |
|
| |
|
|
|
|
| |
There was some code assuming that fm.thisfile is not None.
|
|
|
|
|
|
|
|
|
| |
This bug caused an error message to appear on every start of ranger, if
the user has no scope.sh, because "use_preview_script" is set to true
but "preview_script" is None.
The expected behaviour would be to silently ignore it, to stop annoying
people who don't want scope.sh.
|
| |
|
| |
|
| |
|
|
|
|
| |
Again, use rifle as a file launcher instead
|
|
|
|
| |
Instead of launching ranger for opening files, simply use rifle.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
PEP 8 (Style Guide for Python Code) suggests the use of 4 spaces:
http://www.python.org/dev/peps/pep-0008/#indentation
If you need to use tools like "git blame", you can use the -w option to
ignore this commit entirely. Patches will continue to work if you
substitute tabs with 4 spaces everywhere except in the Makefile.
|
| |
|
|
|
|
|
|
|
|
|
| |
When you deleted a directory and created a file with the same name, it
was treated like a directory, with ranger trying to preview it and
throwing lots of errors. This was because it tried to look for the path
of the currently selected file in fm.directories - a directory cache -
and if a file with the same name existed as a directory once, it would
have found it there.
|
| |
|
| |
|
| |
|
|
|
|
| |
It works, but is rather hackish.
|
|
|
|
|
|
|
|
|
|
|
|
| |
To reproduce the bug that this patch fixes, do:
1. start in a place where the second item is a directory that contains
at least two files (the usual $HOME with sort_directories_first=True
will likely do)
2. open (and enter) a new tab with ^N
3. move down and right, entering the directory. The cursor is now on
file 1
4. switch to tab 1, then back to tab 2
5. now the cursor is on file 2 instead of file 1.
|
|
|
|
|
|
|
| |
fm.source(custom_conf) could execute a "set colorscheme = ..." which
would lead to a "allow_access_to_confdir(..., False)" and that would
result in ranger not being able to find plugins since the confdir is not
in os.path anymore.
|
|
|
|
|
| |
if you use ":tab_open 1 /path" while being in tab 1, the path should
change to /path, but it doesn't.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Without this, if you enter another tab, the cursor of the directory may
change and get_selection() will not return the actual selected file of
the tab anymore (unless they have been marked, in which case
everything's fine).
|
| |
|
| |
|
|
|
|
|
| |
SettingObject can store settings local to a directory. Then LocalSettingObject
choses the right settings according to context.
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, you could change settings in both rc.conf and options.py.
With this commit, options.py is deprecated and you are encouraged to use
rc.conf to change settings. I chose to do this because it is more
elegant to use a simple list of ranger commands for configuration
rather than a python file with lots of magic around it and potential
syntax errors for inexperienced users.
The existing "set" command doesn't evaluate python objects anymore,
instead it always takes strings and converts to the proper type
automatically. This means that the old set command will not work
anymore and you have to update your commands.py if it still uses the old
definition of the "set" command.
This is how to convert your options.py:
old way, in options.py | new way, in rc.conf
---------------------------+------------------------
show_hidden = False | set show_hidden false
sort = 'basename' | set sort basename
column_ratios = (1, 5, 3) | set column_ratios 1,5,3
For backward compatibility, you still can use options.py, but you get a
warning when you start ranger. You can pipe stderr to /dev/null to
silence the warning, or just move your stuff from options.py to rc.conf
and plugins and delete the options.py.
Finally, to extend ranger, which you previously could do through
monkey-patching in options.py, you should now use the plugin system.
This was an experimental, undocumented feature of ranger for some time,
but this and the following commits will imrpove and document it.
You can simply move all the monkey-patching code from options.py to a
*.py file in ~/.config/ranger/plugins/.
|
|
|
|
|
|
| |
before, in the search_next method, item.mimetype could be None,
resulting in an exception in lst.sort(key=fnc) when
order == 'mimetype'.
|
| |
|