diff options
author | hut <hut@lavabit.com> | 2012-12-10 14:02:21 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-12-10 14:02:21 +0100 |
commit | 07c684420e1f869e16848370e1a24b481812daf5 (patch) | |
tree | 437e04a1ec1ca22c780ac676dc17ae57c092eea5 | |
parent | 6bd182d83a0edad921916f210a62ca2cebf1cc31 (diff) | |
download | ranger-07c684420e1f869e16848370e1a24b481812daf5.tar.gz |
container.settingobject: added setting "update_tmux_title"
-rw-r--r-- | doc/ranger.1 | 5 | ||||
-rw-r--r-- | doc/ranger.pod | 4 | ||||
-rw-r--r-- | ranger/config/rc.conf | 3 | ||||
-rw-r--r-- | ranger/container/settingobject.py | 1 | ||||
-rw-r--r-- | ranger/gui/ui.py | 3 |
5 files changed, 15 insertions, 1 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1 index c0cf6b1f..301653db 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -124,7 +124,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.5.5" "12/06/2012" "ranger manual" +.TH RANGER 1 "ranger-1.5.5" "12/10/2012" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -678,6 +678,9 @@ Use a unicode \*(L"...\*(R" character instead of \*(L"~\*(R" to mark cut-off fil .IP "update_title [bool]" 4 .IX Item "update_title [bool]" Set a window title? +.IP "update_tmux_title [bool]" 4 +.IX Item "update_tmux_title [bool]" +Set the title to \*(L"ranger\*(R" in the tmux program? .IP "use_preview_script [bool] <zv>" 4 .IX Item "use_preview_script [bool] <zv>" Use the preview script defined in the setting \fIpreview_script\fR? diff --git a/doc/ranger.pod b/doc/ranger.pod index 366e0bdc..8ac18911 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -682,6 +682,10 @@ Use a unicode "..." character instead of "~" to mark cut-off filenames? Set a window title? +=item update_tmux_title [bool] + +Set the title to "ranger" in the tmux program? + =item use_preview_script [bool] <zv> Use the preview script defined in the setting I<preview_script>? 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) |