summary refs log tree commit diff stats
path: root/widgets
Commit message (Expand)AuthorAgeFilesLines
...
* widgets/spinner: fix Spinner.frame raceSimon Ser2019-04-271-12/+15
* Re-render terminal on invalidateDrew DeVault2019-04-151-4/+13
* Fix segfault on :view-message for unloaded messageTom Lebreux2019-04-101-0/+4
* Lowercase MIME types while matching filtersGokberk Yaltirakli2019-04-071-1/+2
* Clear damage on each terminal.Draw callDrew DeVault2019-04-051-0/+2
* Fix wrong row due to typoTom Lebreux2019-04-051-1/+1
* Fix infinite loop on empty DirectoryContentsTom Lebreux2019-04-051-2/+4
* Show (no messages) for empty foldersDrew DeVault2019-04-041-0/+6
* Remove extra debug statementDrew DeVault2019-03-311-1/+0
* Use shell to execute filters, fix non-determinismDrew DeVault2019-03-311-6/+3
* Implement header-regex-match filtersDrew DeVault2019-03-311-1/+18
* Improve error handling in message viewerDrew DeVault2019-03-311-10/+36
* Add basic filter implementationDrew DeVault2019-03-311-16/+65
* Decode messages before rendering themDrew DeVault2019-03-311-2/+22
* Make message viewer real, part twoDrew DeVault2019-03-312-11/+23
* Make the message viewer real, part oneDrew DeVault2019-03-312-120/+54
* Add message view commands, :closeDrew DeVault2019-03-301-0/+2
* Minor refactoring to header viewDrew DeVault2019-03-301-7/+12
* Fix crash on command not foundDrew DeVault2019-03-301-37/+42
* Use bold instead of inverted for header namesDrew DeVault2019-03-301-2/+3
* Add multipart selector mockup to msgviewerDrew DeVault2019-03-301-7/+50
* Add basic message viewer mockupDrew DeVault2019-03-303-64/+213
* Correct color of error messagesDrew DeVault2019-03-302-2/+2
* Use tcell.Style.Reverse instead of black on whiteDrew DeVault2019-03-304-12/+11
* Implement :pipeDrew DeVault2019-03-301-6/+14
* Show deleted emails pending server ack in greyDrew DeVault2019-03-301-0/+3
* Add body fetching support codeDrew DeVault2019-03-292-1/+4
* Expire status errors on inputDrew DeVault2019-03-213-6/+21
* term: don't mess with cursor when unfocusedDrew DeVault2019-03-211-6/+15
* Enable alt screen on built-in terminalDrew DeVault2019-03-211-0/+1
* Make terminal closure thread safeDrew DeVault2019-03-211-1/+9
* Use GetCursorPos instead of stored positionDrew DeVault2019-03-211-1/+4
* Skip writes if term is closedDrew DeVault2019-03-211-1/+1
* Improve cursor handling in embedded terminalDrew DeVault2019-03-212-8/+22
* Fix cursor handling in embedded terminalDrew DeVault2019-03-211-14/+8
* Forward key events to child terminalDrew DeVault2019-03-211-1/+135
* Use : for keybindings even when ex is overriddenDrew DeVault2019-03-211-3/+9
* Rig up terminal keybinding groupDrew DeVault2019-03-211-0/+2
* Use user's configured ex keyDrew DeVault2019-03-211-1/+3
* Add context-specific keybindingsDrew DeVault2019-03-211-8/+38
* Implement :delete-messageDrew DeVault2019-03-202-0/+23
* moar colorsDrew DeVault2019-03-171-4/+10
* Fix scrolling issues on :select-messageDrew DeVault2019-03-171-0/+7
* s/:term-close/:close/gDrew DeVault2019-03-171-1/+0
* Wrap Terminal in TermHostDrew DeVault2019-03-173-1/+58
* Add :term-closeDrew DeVault2019-03-172-12/+38
* Handle terminal title, login shellDrew DeVault2019-03-172-1/+13
* Implement :next-tab, :prev-tabDrew DeVault
#!/usr/bin/python -O
# coding=utf-8
#
# Ranger: Explore your forest of files from inside your terminal
# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# ----------------------------------------------------------------------------
#
# An embedded shell script. It allows you to change the directory
# after you exit ranger by starting it with: source ranger ranger
"""":
if [ $1 ]; then
	$@ --fail-if-run && cd "$(grep \^\' ~/.ranger/bookmarks | cut -b3-)"
else
	echo "usage: source path/to/ranger.py path/to/ranger.py"
fi
return 1
"""

# Redefine the docstring, since the previous one was hijacked to
# embed a shellscript.
__doc__ = """Ranger - file browser for the unix terminal"""

# Importing the main method may fail if the ranger directory
# is neither in the same directory as this file, nor in one of
# pythons global import paths.
try:
	from ranger.__main__ import main
except ImportError:
	import sys
	if '-d' not in sys.argv and '--debug' not in sys.argv:
		print("Can't import the main module.")
		print("To run an uninstalled copy of ranger,")
		print("launch ranger.py in the top directory.")
	else:
		raise
else:
	main()