summary refs log tree commit diff stats
path: root/ranger/core
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| |
* | core.{fm,helper,main}: replace "from X import *" lineshut2012-03-263-8/+5
| |
* | core.main: fixed rifle interfacehut2012-03-231-1/+1
| | | | | | | | thanks to taylorchu for reporting this
* | core.actions: fix listing of rifle commandshut2012-03-211-1/+1
| |
* | core.actions: fixed some of the rifle codehut2012-03-211-3/+7
| |
* | core.main: improved rifle compatibilityhut2012-03-191-1/+1
| |
* | core.runner: updated ALLOWED_FLAGS, added commenthut2012-03-191-1/+3
| |
* | ext.rifle: polishinghut2012-03-191-8/+6
| |
* | ext.rifle: added hooks, fixed bugs.hut2012-03-182-2/+4
| |
* | removed code of old file-opener systemhut2012-03-164-43/+11
| |
* | implemented "rifle", a new file launcherhut2012-03-162-7/+32
| | | | | | | | | | | | ranger/ext/rifle.py is a standalone program that works without ranger. The configuration is not in python anymore, thus is easier to understand, modify and parse.
* | shorten all copyright messages for better readabilityhut2012-03-148-104/+8
|/
* Added $RANGER_LEVEL environment variable (see man page)hut2012-03-051-0/+7
|
* Feature: pasting hardlinked treesSerge Broslavsky2012-02-141-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | This feature is useful when there is a need to create a directory tree, which is similar to an existing one while keeping all the files in this new tree hardlinked to those existing ones. Such functionality might be useful when rearranging a huge directory tree (or a set of directory trees) into some new layout. This operation is done synchronously (i.e. it doesn't use CommandLoader to put the ongoing operation into the task queue). Target end of the operation is handled the following way: 1. If target directory with the same name exists - it gets used. 2. If target folder does not exist - it is created with the same mode bits as corresponding source one. 3. If target file with the same name exists and is a hardlink of the source file already - it is getting left as it is. If it's not a hardlink of the source file - a new hardlink is created in a form of <original>_, <original>_1, ..., etc. 4. If target file does not exist - a hardlink is created.
* core.main: fixed crash when using ranger as file openerhut2012-02-121-1/+2
|
* core.main: Allow multiple --cmd's, add man page entry for --cmdhut2012-02-122-3/+5
|
* Add --cmd=COMMAND command line optionDavid Bengoa2012-02-122-0/+6
|
* Added doc for TERMCMD and integrated it in commands.pyhut2012-01-181-1/+3
|
* core.main: pipe the profiler stream to stderrhut2012-01-111-4/+2
|
* added --profile optionhut2012-01-112-1/+32
|
* widgets.statusbar: Include marked directory sizes in statusbar summaryhut2012-01-041-0/+1
|
* core.fm: Added todo-entry and some fail-safe stuffhut2011-12-192-1/+6
|
* core/runner.py: removed the 'a' flag from ALLOWED_FLAGSM Rawash2011-12-191-3/+3
|