summary refs log tree commit diff stats
path: root/ranger/core
Commit message (Collapse)AuthorAgeFilesLines
...
* core.fm: create $confdir when using --copy-confighut2013-02-161-0/+10
|
* core.actions: Don't break "uq" key on fm.reset()hut2013-02-151-1/+0
|
* removed all trailing whitespaceshut2013-02-102-2/+2
|
* replaced tabs with 4 spaces in all python fileshut2013-02-108-2510/+2510
| | | | | | | | | 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.
* core.actions: Warn about missing or non-executable scope.shhut2013-02-101-0/+14
|
* core.tab: Fix files being treated as dirs after renamehut2013-02-051-8/+3
| | | | | | | | | 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.
* core.fm: ask user to update configs when updating rangerhut2013-02-051-1/+5
|
* fsobject.file: remove is_image(), use existing "image" attributehut2013-02-031-2/+2
|
* Add 'preview_images' settingEmanuel Guevel2013-02-021-2/+2
|
* Display image preview using w3mimgdisplayEmanuel Guevel2013-02-021-2/+12
| | | | It works, but is rather hackish.
* core.tab: fix incorrect pointer on tab changehut2013-01-281-1/+7
| | | | | | | | | | | | 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.
* core.main: Fix plugins when using custom color schemeshut2013-01-121-0/+4
| | | | | | | 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.
* core.actions: fix another case in tab_openhut2012-12-171-1/+4
| | | | | if you use ":tab_open 1 /path" while being in tab 1, the path should change to /path, but it doesn't.
* core.actions: fix incorrect tab creation in tab_openhut2012-12-171-5/+4
|
* core.tab: fix %s macro in empty directorieshut2012-12-151-1/+3
|
* core.actions: make macros %F/%S work with new tab systemhut2012-12-141-3/+3
|
* core.tab: make tab.get_selection() cursor-agnostichut2012-12-141-1/+4
| | | | | | | 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).
* core.loader: ensure that loaders are stopped on errorhut2012-12-111-4/+8
|
* core.actions: more debug outputhut2012-12-111-0/+2
|
* Implement local per-directory settingsAbdó Roig-Maranges2012-12-091-2/+4
| | | | | SettingObject can store settings local to a directory. Then LocalSettingObject choses the right settings according to context.
* Merge branch 'fix_selectfile' of https://github.com/PotatoesMaster/rangerhut2012-12-041-3/+3
|\
| * core.main: fix --selectfile argumentEmanuel Guevel2012-11-201-3/+3
| |
* | core.main: only import own commands if commands.py existshut2012-12-041-5/+6
| |
* | updated man page, improved hookshut2012-12-042-7/+5
| |
* | core.shared: remove obsolete settingobject codehut2012-12-041-15/+1
| |
* | removed options.py, improved plugins. *UPDATE YOUR COMMANDS.PY*hut2012-12-044-15/+72
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/.
* core.actions: fixed ci keyhut2012-11-091-1/+1
| | | | | | before, in the search_next method, item.mimetype could be None, resulting in an exception in lst.sort(key=fnc) when order == 'mimetype'.
* core.actions: fixed cm/ca keyshut2012-11-091-1/+2
|
* Revert "core.runner: removed 's', 'p', 'w' flags to behave like rifle"hut2012-08-151-1/+19
| | | | | | This reverts commit d6c78470ba0e3a9923d5cc13a5babaca4d52aecf. It makes ... little sense atm to remove this.
* core.loader: implemented progressbar for CopyLoaderhut2012-08-151-1/+25
|
* core.actions: move paste() logic to core.loader.CopyLoaderhut2012-08-152-51/+52
|
* core.actions: update shutil_g paste function to not use Environmenthut2012-08-151-8/+8
|
* core.actions: imported shutil_g paste function from v1.2.3hut2012-08-151-34/+36
| | | | | | | | | | | | | | | | | | | | | The code implements the functionality of cp and mv coreutils in python and was removed as of v1.4.0 for efficiency and simplicity reasons. I moved it back in for several reasons: 1. I plan to enhance shutil_g to report on its copying status so I can display a progress bar 2. With no need for external cp/mv programs, distribution-specific differences (like broken backup option on MacOS/BSD?) become irrelevant 3. You can still copy in ranger if you accidently delete /bin/cp 4. It gets rid of the occasional bug that the cp process keeps running when ranger is terminated while copying The possible downside is reduced efficiency in copying and ranger might get stuck if the copying function is blocked. Let's see if it works out.
* core.runner: Added TODO: "make 'r' flag work with pipes"hut2012-08-151-0/+1
|
* core.runner: removed 's', 'p', 'w' flags to behave like riflehut2012-08-151-19/+1
| | | | | | | | instead of 's', you can append &>/dev/null instead of 'p', you can append |less instead of 'w', you can append ;read If there is demand, I'll add the flags back in.
* core.runner: fixed missing importhut2012-08-151-0/+1
|
* core.runner: remove 'setsid' dependency, use Popen_forkedhut2012-08-151-5/+8
|
* core.runner: renamed flag "d" to "f" in the runner toohut2012-08-151-6/+6
|
* widgets.statusbar: draw an averaging progress barhut2012-08-121-1/+8
|
* Merge branch 'stable'hut2012-08-101-0/+2
|\ | | | | | | | | | | Conflicts: doc/ranger.1 ranger/defaults/apps.py
| * core.runner: use setsid to stabilize detached programshut2012-08-091-0/+2
| | | | | | | | | | | | This fixes the bug that some programs are killed even if they were run with the "d" flag, if ranger is killed by closing its terminal with the window manager instead of closed with :quit.
| * core.shared: ImportErrors in options.py are mistakenly ignored...hut2012-05-031-0/+2
| |
* | core.tab: fixed restoring pointer on tab changehut2012-08-072-3/+5
| |
* | widgets.taskview: show progressbar only if task supports ithut2012-08-071-1/+1
| |
* | widgets.taskview: added progressbars for dir loading taskshut2012-08-071-0/+1
| |
* | core.tab: fix weakref bug with python2 that breaks fm.thisfilehut2012-08-071-2/+7
| | | | | | | | | | | | in python2, weak references are not equal to the original object when tested with "==", and this breaks Tab._set_thisfile_from_signal and Tab._on_tab_change in python2 if weak=True is used in signal bindings
* | ext.rifle: implemented asking on unknown filetype (in ranger only)hut2012-08-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | this was requested here: https://github.com/hut/ranger/issues/36 adam8157: Why non-text files' default opener is editor now? It invoked open_with before. I think the old way is better. We can't describe all types in rifle.conf, so many types are defined as unknown non-text types, it's not appropriate to open them all with editor.
* | core.fm: fixed passing directory argumentshut2012-08-062-6/+13
| |
* | core.actions: some cleaninghut2012-08-061-5/+1
| |
* | core.actions: get _get_macros to work with new tab systemhut2012-08-061-22/+24
| |