summary refs log tree commit diff stats
path: root/ranger/core
Commit message (Collapse)AuthorAgeFilesLines
...
* ranger.main: Remove deprecated COMPAT argsnfnty2017-02-011-14/+3
|
* ranger.core.actions.Actions.move: Reduce nestingnfnty2017-02-011-45/+48
|
* `--choosefiles`: Choose all selected files, not just CWDmrogalski2017-01-313-4/+32
| | | | | | Check that paths are accessible and writable Fixes #667
* Improve shutdown error handling; Limit `VCSThread` waitnfnty2017-01-301-0/+2
|
* linting: pylint: Remove most `disabled=protected-access`nfnty2017-01-305-16/+15
|
* core.main: Refactor exit handlingael-code2017-01-291-26/+35
| | | | | | Decrease complexity Do not ignore system exit exceptions Properly destroy UI
* core.main: Check that paths are accessible before startingnfnty2017-01-291-33/+23
| | | | | | | | Remove deprecated use as file launcher Fixes #560 Fixes #558 Fixes #424
* core.loader: Handle work process items exceptionsnfnty2017-01-281-4/+16
|
* core.fm: `loop()`: Remove useless `if` statementnfnty2017-01-261-5/+4
|
* Only use `hasattr` where absolutely needednfnty2017-01-262-3/+2
| | | | | | Use `try-except` when it's an explicit error. Fixes #780
* core.main: Remove COMPAT `options.py`nfnty2017-01-261-21/+0
| | | | Has been deprecated and warned about for over 4 years.
* core.actions: Pass path to `_run_pager()`, not file objectDavid le Blanc2017-01-251-3/+3
|
* core.loader: `safeDecode()` -> `safe_decode()`nfnty2017-01-251-5/+5
|
* core.loader: `safeDecode()`: Do not try to decode with encoding `None`nfnty2017-01-251-2/+3
|
* core.loader: `CopyLoader.generate`: Reduce nestingnfnty2017-01-241-48/+50
|
* core.actions: macros: `confdir` should not be defined in clean modenfnty2017-01-232-6/+5
| | | | Fixes #758
* core.linemode: `FileInfoLinemode`: Output is already decodednfnty2017-01-231-5/+1
| | | | Fixes Python 3 crash
* core.actions: Reduce `get_preview()` nestingnfnty2017-01-231-118/+123
|
* core.linemode: `Mtime`: Fix crash when `file.stat is None`Christian Zangl2017-01-231-0/+4
| | | | | | | | This can happen with Bash on Windows for files without permission and on OSX/Linux when deleting files. Fixes #741 Fixes #769
* core.actions: Split `$PAGER` before runningProfpatsch2017-01-221-6/+7
| | | | If `$PAGER` is `less -R`, then `-R` should be an argument.
* linting: pylint: Enable `broad-except`, Improve loggingnfnty2017-01-216-76/+88
| | | | | | | Handle exceptions explicitly to prevent unexpected errors from causing problems. Improve exception and notification logging.
* Python 3 division: Remove explicit float conversionsnfnty2017-01-211-3/+3
|
* Python 3 division: Import `division` from `__future__`nfnty2017-01-219-9/+9
|
* linting: Correct autopep8nfnty2017-01-185-73/+71
| | | | Allow bad whitespace in special circumstances
* linting: pylint 2.0.0nfnty2017-01-176-28/+25
|
* linting: Enable `attribute-defined-outside-init`nfnty2017-01-172-1/+5
|
* linting: Enable `access-member-before-definition`nfnty2017-01-172-3/+3
|
* linting: `ranger.core.runner.Context`: Init all attributesnfnty2017-01-171-5/+13
|
* linting: Do not convert arguments to `OpenStruct`nfnty2017-01-173-67/+68
|
* linting: Python 2 compat: Import from `__future__`nfnty2017-01-179-1/+19
|
* linting: Python 2 compatnfnty2017-01-172-29/+30
|
* linting: pylint and flake8nfnty2017-01-179-280/+309
|
* linting: autopep8nfnty2017-01-178-123/+128
|
* core/actions.py: search_file: Do not use `re.LOCALE`nfnty2017-01-151-1/+1
| | | | | | | | Caught by pylint. Continuation of bf36701d3b2cef579d89eb912aa3945de7a7f978 Fixes #664 Fixes #752
* ext.spawn: Refactornfnty2016-12-181-2/+2
| | | | | Rename `spawn` to `check_output` Mimic `subprocess.check_output`
* Merge branch 'fix_docstring_move' of https://github.com/ael-code/rangerhut2016-12-051-1/+1
|\
| * typo fix in move function docstringael-code2016-11-091-1/+1
| |
* | Merge branch 'trailing_space_fix' of https://github.com/vlad7777/rangerhut2016-12-051-1/+1
|\ \
| * | Refactored.Vlad2016-11-171-1/+1
| | |
| * | Fixed trailing space bug in config parsing.Vlad2016-11-151-1/+1
| |/
* | Move startup log calls in main functionael-code2016-11-252-5/+5
| |
* | Added some useful debugging messageael-code2016-11-252-5/+18
| |
* | Update all the log callsael-code2016-11-253-8/+10
| | | | | | | | | | | | All the log calls that were using the old logging approach (appending to FileManager.log queue) will now use the standard logging library of python. Proper log levels have been choosed for each call
* | Make use of standard logging library to handle logsael-code2016-11-253-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal is to provide an easy api to log stuff and a straigthforward way of inspect them. This has been achieved using the standard logging library. The default behaviour is pretty similar to the old one, in the sense that all the the produced logs will be collected in a queue that can be inspected with the curses log viewer (`display_log` command). Moreover the `--logfile` cli option has been added and it can be used to specifya destination file for all the logs in such a way that the same log can be viewed at runtime as well as inspected after a program crash. The verbosity and the format of the log message is controlled by the already existent `--debug` command line flag: - Normal mode: A concise log format will be used and only important message will be logged (log level > INFO) Example: ``` [INFO] Ranger version 1.7.2 [INFO] Running on Python 3.5.2 (default, Jun 28 2016, 08:46:01) [GCC 6.1.1 20160602] [INFO] Process ID is 1497 ``` - Debug mode: An extended log format will be used and all the message will be logged. Example: ``` 23:17:43,719 [ranger.core.main] |INFO| Ranger version 1.7.2 23:17:43,719 [ranger.core.main] |INFO| Running on Python 3.5.2 (default, Jun 28 2016, 08:46:01) [GCC 6.1.1 20160602] 23:17:43,719 [ranger.core.main] |INFO| Process ID is 1515 23:17:43,720 [ranger.core.main] |DEBUG| config dir: '/home/groucho/.config/ranger' 23:17:43,720 [ranger.core.main] |DEBUG| cache dir: '/home/groucho/.cache/ranger' 23:17:43,738 [ranger.core.actions] |DEBUG| Sourcing config file '/path/to/ranger/config/rc.conf' ``` fixes #713
* | cli: added logfile optionael-code2016-11-251-0/+2
| |
* | Removed unused nested function in FM classael-code2016-11-251-2/+0
|/
* Merge branch 'preview_method_set_fix' of https://github.com/Vifon/rangerhut2016-11-041-1/+8
|\
| * Update the image preview method upon setting it in runtimeWojciech Siewierski2016-10-101-1/+8
| | | | | | | | | | Previously the displayer was not changed after the initialization, so only the value read from rc.conf was used.
* | code deduplicationhut2016-11-041-8/+2
| |
* | Merge branch 'subprocess_check_output' of https://github.com/richboss/rangerhut2016-11-041-2/+9
|\ \