about summary refs log tree commit diff stats
path: root/ranger/config
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'master' of git://github.com/arwer13/rangerhut2015-04-091-11/+11
|\
| * rifle.conf: openers for images placed after openers for documents.Artyom Veremeenko2015-03-291-11/+11
| | | | | | | | It fixes, for instance, problem with djvu files opened by image viewers.
* | new linemode with the information from file(1)Wojciech Siewierskipre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/usr/bin/env python
# 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/>.

"""
Run all the benchmarks inside this directory.
Usage: ./all_benchmarks.py [count] [regexp-filters...]
"""

import os.path
import sys
rangerpath = os.path.join(os.path.dirname(__file__), '..')
if sys.path[1] != rangerpath:
	sys.path[1:1] = [rangerpath]

import re
import time

if __name__ == '__main__':
	count   = int(sys.argv[1]) if len(sys.argv) > 1 else 10
	regexes = [re.compile(fltr) for fltr in sys.argv[2:]]
	modules = (fname[:-3] for fname in os.listdir(sys.path[0]) \
			if fname[:3] == 'bm_' and fname[-3:] == '.py')

	def run_benchmark(cls, methodname):
		full_method_name = "{0}.{1}".format(cls.__name__, methodname)
		if all(re.search(full_method_name) for re in regexes):
			method = getattr(cls(), methodname)
			t1 = time.time()
			try:
				method(count)
			except:
				print("{0} failed!".format(full_method_name))
				raise
			else:
				t2 = time.time()
				print("{0:60}: {1:10}s".format(full_method_name, t2 - t1))

	for val in [__import__(module) for module in modules]:
		for cls in vars(val).values():
			if type(cls) == type:
				for methodname in vars(cls):
					if methodname.startswith('bm_'):
						run_benchmark(cls, methodname)
tle='2015-02-18 00:05:42 +0100'>2015-02-181-0/+5 | * config/commands_sample.py: return on errorhut2015-02-171-0/+1 | * config/commands_sample.py: added commentshut2015-02-171-2/+6 | * config/commands_sample.py: better docstringhut2015-02-171-1/+1 | * added a sample commands.pyhut2015-02-171-0/+53 | * config/commands: interactive "?" key / ":help" commandhut2015-02-161-8/+14 | * Fix renaming with insufficient privilegesAlexander Buddenbrock2015-02-121-4/+4 | | | | | | | | | | | Closes #97 When renaming a file, the internal file pointer will be set to the new file name without checking if the file actually got renamed. This would cause the file pointer to be set to an invalid file if renaming failed because of bad privileges. With no valid file, the previev window will disappear. This patch adds a return value to the core renaming method so it can be checking by the caller. The rename command now checks if the rename succeeded and only then sets the new file pointer. * fix python version checking with python2.6hut2015-02-101-1/+1 | * proper checking for the python versionhut2015-02-081-1/+1 | | | | | Let's not force python to jump from version 9 straight to 31, just because some silly software did fuzzy version checks :D * remove double dashbastorran2015-02-061-1/+1 | * Add qpdfview to rifle.confbastorran2015-02-061-0/+1 | | | | | | | | Hello, there is a less known pdf viewer, called qpdfview. Greetings bastorran * config.commands: bulkrename works with `:flat -1`Wojciech Siewierski2015-02-021-1/+3 | | | | Fixes #241. * container.directory: added sorting by file extensionWojciech Siewierski2015-01-291-0/+2 | * config.commands: added ability to create multilevel directories (as mkdir -p ↵Nikolay Puzanov2015-01-281-2/+2 | | | | 1/2/3) * Priority changeHerrNieschnell2015-01-181-2/+2 | | | | | I think if someone has sxiv, feh or mirage installed, it should have a higher priority than eog or eom, because they are normally automatically installed along with mate or gnome. it fits the philosophy of browser or documents default priority. * :meta may be used on multiple selected filesWojciech Siewierski2015-01-171-1/+3 | * Merge branch 'cd-select_file' of https://github.com/NoSuck/ranger into ↵hut2015-01-171-1/+2 |\ | | | | | | cd-select_file | * Modified cd command to select original file, when following links.The Flying Rapist2015-01-131-1/+2 | | * | core.metadata: works well now, at first glancehut2015-01-171-1/+1 | | * | adapted commands for MetadataManagerhut2015-01-162-58/+28 | | * | start turning ext.papermanager to core.metadatahut2015-01-132-7/+7 |/ * config/rc.conf: make "a" binding use :rename_appendhut2015-01-011-1/+1 | * renameConsole -> rename_append; added special cases for hidden files and ↵The Flying Rapist2015-01-021-6/+6 | | | | directories * add javascript file type to mime.types and rifle.confaureooms2014-12-191-5/+6 | * config/commands.py: fixed py3-specific encoding bughut2014-12-141-4/+1 | * update email addresshut2014-12-111-1/+1 | * config/commands.py: fix bulkrename on OSX 10.8, fixes #136hut2014-12-101-4/+6 | | | | | Thanks to Ingo Lindholm for the fix: http://lists.gnu.org/archive/html/ranger-users/2013-09/msg00001.html * config/commands.py: fix input delay, fixes #181hut2014-12-101-1/+1 |