summary refs log tree commit diff stats
path: root/ranger/core
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| |
* | core.actions: fix tab-history bugs, inherit history from prev. tabhut2012-08-052-2/+9
| |
* | core.actions: Added {old,new} arguments to 'tba.change' signalhut2012-08-052-3/+6
| |
* | add keybinding 'uq' to restore a closed tabhut2012-08-052-0/+18
| | | | | | | | | | This is added to compensate for the fact that the history is not shared anymore and you can't simply type gnHH to restore a closed tab.
* | core.tab: save and restore pointer when changing tabhut2012-08-051-0/+10
| |
* | core.tab: pass the tab as argument in the move-signalhut2012-08-051-2/+2
| |
* | core.actions: updated tab_open to work with new Tab classhut2012-08-052-5/+14
| |
* | Replaced core.environment with core.tabhut2012-08-055-221/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Environment class was weird to begin with. It had attributes and methods that belonged to other classes. For example, keybinding management (the attributes keybuffer and keymaps) should go to gui.ui, directory management (garbage_collect, get_directory) should be in core.fm whereas entering directories (enter_dir) and managing history (history_go) should be the task of a separate Tab class. This commit fixes it, all references to env should be only for backwards compatibility now. I still need to rewrite the tabbing API in core.actions to work with the new system. Every tab that is opened will have its own Tab instance with its own history and pointer. Tab, unlike Environment, is no SignalDispatcher - Environment's signals were moved to fm. BEFORE: fm.env.cf AFTER : fm.thisfile BEFORE: fm.env.cwd AFTER : fm.thisdir BEFORE: fm.env.signal_bind("move", ...) # same for the "cd" signal AFTER : fm.signal_bind("move", ...) BEFORE: fm.env.keybuffer # same for fm.env.keymaps AFTER : fm.ui.keybuffer BEFORE: fm.env.get_directory("/usr/lib") # same for half of the env methods AFTER : fm.get_directory("/usr/lib") BEFORE: fm.env.get_selection() # same for the other half of the env methods AFTER : fm.thistab.get_selection() Old configurations and hacks should still work because I added a compatibility layer for the Environment class which translates all getters and setters to the respective call of the new class. What will NOT work are the Environment signals, please bind them to fm instead.
* | moved fm.env.get_directory() to fm.get_directory()hut2012-08-053-17/+21
| |
* | moved env.garbage_collect to fm.garbage_collecthut2012-08-052-18/+21
| |
* | core.environment: cleanuphut2012-08-051-8/+4
| |
* | core.environment: removed unused attribute 'cmd'hut2012-08-051-1/+0
| |
* | moved fm.env.{username,hostname,home_path} to fm.*hut2012-08-053-11/+22
| |
* | core.environment: added a layer for backwards compatibilityhut2012-08-051-1/+20
| |
* | move fm.env.{keymaps,keybuffer} to fm.ui.{keymaps,keybuffer}hut2012-08-054-10/+9
| |
* | move fm.env.{copy,cut} to fm.{copy_buffer,do_cut}hut2012-08-053-20/+19
| |
* | core.environment: s/fm.env.directories/fm.directorieshut2012-08-052-10/+9
| |
* | core.environment: s/fm.env.termsize/fm.ui.termsizehut2012-08-052-3/+2
| |
* | core.actions: More reliable mimetype checking @ execute_filehut2012-08-051-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a result of https://github.com/hut/ranger/issues/43 : adam8157: Hmm... I found this behavior is different between running in Debian Sid and Fedora 17. Their python version are both 2.7.3, but when you touch a file named foo.sh, and press "r", ranger in Fedora 17 displays bash as the first opener, then editor and pager, but ranger in Debian Sid displays editor first, then pager and bash. [...] hut: Ok, with your help I found it. Actions.execute_file and Actions.draw_possible_programs optimize the process by skipping the call to file --mimetype -Lb and using the mime type that the python mimetypes library found. The two methods return different mimetypes sometimes. Since file is more reliable than the python mimetypes library, I'll change it to use file always.
* | core.fm: moved attributes of core.action to core.fm for clarityhut2012-08-052-7/+8
| |
* | core.environment: removed unused functionshut2012-08-051-14/+0
| |
* | core.helper: moved functions to ranger and ranger.core.mainhut2012-08-022-176/+148
| |
* | core.fm: stick to line length limithut2012-08-021-2/+4
| |
* | renamed ranger/defaults to ranger/confighut2012-08-024-10/+10
| |
* | core.helper: more useful --version outputhut2012-06-161-3/+2
| |
* | ext.rifle: Fix passing flags from actions.py to rifle.pyhut2012-04-131-2/+2
| |
* | core.loader: added pause()hut2012-04-023-5/+39
| |
* | core.actions: fixed dump_{commands,keybindings,settings}hut2012-04-021-3/+6
| |
* | core.shared: ImportErrors in options.py are mistakenly ignored...hut2012-04-021-0/+2
| |