summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-15 14:08:20 +0200
committerhut <hut@lavabit.com>2010-04-15 14:08:20 +0200
commit353820f392ee88ed02643e7bce79dadc3933d4c9 (patch)
treea66d6645d736fae04744c05f44efa97f8eb98b22
parentef18cd85cd48117dd8bd36325887bb2a7cc49653 (diff)
downloadranger-353820f392ee88ed02643e7bce79dadc3933d4c9.tar.gz
widgets.statusbar: Use "*" rather than "//" to indicate bold text
-rw-r--r--ranger/defaults/keys.py16
-rw-r--r--ranger/gui/widgets/statusbar.py2
2 files changed, 9 insertions, 9 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 866aab87..885bc438 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -141,8 +141,8 @@ map('ud', fm.uncut())
 map('pp', fm.paste())
 map('po', fm.paste(overwrite=True))
 map('pl', fm.paste_symlink())
-map('p<bg>', fm.hint('press //p// once again to confirm pasting' \
-		', or //l// to create symlinks'))
+map('p<bg>', fm.hint('press *p* once again to confirm pasting' \
+		', or *l* to create symlinks'))
 
 # ---------------------------------------------------- run programs
 map('S', fm.execute_command(os.environ['SHELL']))
@@ -151,8 +151,8 @@ map('.term', fm.execute_command('x-terminal-emulator', flags='d'))
 map('du', fm.execute_command('du --max-depth=1 -h | less'))
 
 # -------------------------------------------------- toggle options
-map('z<bg>', fm.hint("show_//h//idden //p//review_files" \
-	"//d//irectories_first //c//ollapse_preview flush//i//nput"))
+map('z<bg>', fm.hint("show_*h*idden *p*review_files" \
+	"*d*irectories_first *c*ollapse_preview flush*i*nput"))
 map('zh', fm.toggle_boolean_option('show_hidden'))
 map('zp', fm.toggle_boolean_option('preview_files'))
 map('zi', fm.toggle_boolean_option('flushinput'))
@@ -160,8 +160,8 @@ map('zd', fm.toggle_boolean_option('directories_first'))
 map('zc', fm.toggle_boolean_option('collapse_preview'))
 
 # ------------------------------------------------------------ sort
-map('o<bg>', 'O<bg>', fm.hint("//s//ize //b//ase//n//ame //m//time" \
-	" //t//ype //r//everse"))
+map('o<bg>', 'O<bg>', fm.hint("*s*ize *b*ase*n*ame *m*time" \
+	" *t*ype *r*everse"))
 sort_dict = {
 	's': 'size',
 	'b': 'basename',
@@ -189,7 +189,7 @@ map('cw', fm.open_console(cmode.COMMAND, 'rename '))
 map('cd', fm.open_console(cmode.COMMAND, 'cd '))
 map('f', fm.open_console(cmode.COMMAND_QUICK, 'find '))
 map('bf', fm.open_console(cmode.COMMAND, 'filter '))
-map('d<bg>', fm.hint('d//u// (disk usage) d//d// (cut)'))
+map('d<bg>', fm.hint('d*u* (disk usage) d*d* (cut)'))
 map('@', fm.open_console(cmode.OPEN, '@'))
 map('#', fm.open_console(cmode.OPEN, 'p!'))
 
@@ -226,7 +226,7 @@ map('ct', fm.search(order='tag'))
 map('cc', fm.search(order='ctime'))
 map('cm', fm.search(order='mimetype'))
 map('cs', fm.search(order='size'))
-map('c<bg>', fm.hint('//c//time //m//imetype //s//ize'))
+map('c<bg>', fm.hint('*c*time *m*imetype *s*ize'))
 
 # ------------------------------------------------------- bookmarks
 for key in ALLOWED_BOOKMARK_KEYS:
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index bff3d8ad..64c5e4c7 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -123,7 +123,7 @@ class StatusBar(Widget):
 		highlight = True
 		space_left = self.wid
 		starting_point = self.x
-		for string in self.hint.split('//'):
+		for string in self.hint.split('*'):
 			highlight = not highlight
 			if highlight:
 				self.color('in_statusbar', 'text', 'highlight')