summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-12-10 14:02:21 +0100
committerhut <hut@lavabit.com>2012-12-10 14:02:21 +0100
commit07c684420e1f869e16848370e1a24b481812daf5 (patch)
tree437e04a1ec1ca22c780ac676dc17ae57c092eea5 /ranger
parent6bd182d83a0edad921916f210a62ca2cebf1cc31 (diff)
downloadranger-07c684420e1f869e16848370e1a24b481812daf5.tar.gz
container.settingobject: added setting "update_tmux_title"
Diffstat (limited to 'ranger')
-rw-r--r--ranger/config/rc.conf3
-rw-r--r--ranger/container/settingobject.py1
-rw-r--r--ranger/gui/ui.py3
3 files changed, 7 insertions, 0 deletions
diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf
index 41fd9a84..80b5522f 100644
--- a/ranger/config/rc.conf
+++ b/ranger/config/rc.conf
@@ -86,6 +86,9 @@ set display_tags_in_all_columns true
 # Set a title for the window?
 set update_title false
 
+# Set the title to "ranger" in the tmux program?
+set update_tmux_title false
+
 # Shorten the title if it gets long?  The number defines how many
 # directories are displayed at once, False turns off this feature.
 set shorten_title 3
diff --git a/ranger/container/settingobject.py b/ranger/container/settingobject.py
index 23bf10ba..a4dfe963 100644
--- a/ranger/container/settingobject.py
+++ b/ranger/container/settingobject.py
@@ -41,6 +41,7 @@ ALLOWED_SETTINGS = {
 	'tilde_in_titlebar': bool,
 	'unicode_ellipsis': bool,
 	'update_title': bool,
+	'update_tmux_title': bool,
 	'use_preview_script': bool,
 	'xterm_alt_key': bool,
 }
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index b8a4ab7f..d2b9ef84 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -86,6 +86,9 @@ class UI(DisplayableContainer):
 		self.update_size()
 		self.is_on = True
 
+		if self.settings.update_tmux_title:
+			sys.stdout.write("\033kranger\033\\")
+
 	def suspend(self):
 		"""Turn off curses"""
 		self.win.keypad(0)
7c594a99203239'>3e18db75 ^
edf3d9f8 ^
ef0157ff ^
edf3d9f8 ^

a614f048 ^
f07bb12f ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39