From e8c366ae544337c28a3b3cc9731b1448a490a512 Mon Sep 17 00:00:00 2001 From: Phi Date: Sat, 22 Aug 2020 11:28:06 +0200 Subject: [PATCH 01/50] Use the term 'zero padded' instead of 'padded' in prefs key binding and terminal pop up menu, to be consistent with the doc. --- terminatorlib/prefseditor.py | 2 +- terminatorlib/terminal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 89232b6d..6f693663 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -166,7 +166,7 @@ class PrefsEditor: 'broadcast_group' : _('Broadcast key presses to group'), 'broadcast_all' : _('Broadcast key events to all'), 'insert_number' : _('Insert terminal number'), - 'insert_padded' : _('Insert padded terminal number'), + 'insert_padded' : _('Insert zero padded terminal number'), 'edit_window_title': _('Edit window title'), 'edit_terminal_title': _('Edit terminal title'), 'edit_tab_title' : _('Edit tab title'), diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 82997aa4..dd2dd99f 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -555,7 +555,7 @@ class Terminal(Gtk.VBox): item.connect('activate', lambda x: self.emit('enumerate', False)) menu.append(item) - item = Gtk.MenuItem.new_with_mnemonic(_('Insert _padded terminal number')) + item = Gtk.MenuItem.new_with_mnemonic(_('Insert zero _padded terminal number')) item.connect('activate', lambda x: self.emit('enumerate', True)) menu.append(item) From d8141a86c3f625c333f278dd594a296bc91a01c1 Mon Sep 17 00:00:00 2001 From: sabriunal Date: Wed, 5 Oct 2022 14:14:07 +0300 Subject: [PATCH 02/50] data: Remove GNOME branding This MR is part of an [initiative](GNOME/Initiatives#35) to fade out legacy app branding. Following the [Software Policy](https://wiki.gnome.org/Foundation/SoftwarePolicy), GNOME branding is reserved for official GNOME software (Core apps and Development tools.) You can find a summary in [this blog post](https://blogs.gnome.org/sophieh/2022/06/08/apps-attempt-of-a-status-report/). If you think that your app is a special case that needs an exception from the software policy, we would ask you to leave a comment about your app's case in GNOME/Initiatives#35. /label ~"9. Initiative: Legacy app branding" --- data/terminator.appdata.xml.in | 1 + 1 file changed, 1 insertion(+) diff --git a/data/terminator.appdata.xml.in b/data/terminator.appdata.xml.in index 011273b1..0d75c34f 100644 --- a/data/terminator.appdata.xml.in +++ b/data/terminator.appdata.xml.in @@ -47,4 +47,5 @@ https://github.com/gnome-terminator/terminator terminator@lazyfrosch.de + The Terminator Team From 3d63c915175a8b4955af1cf575a35127177894c8 Mon Sep 17 00:00:00 2001 From: Matthew Rose Date: Sat, 19 Nov 2022 22:50:41 -0500 Subject: [PATCH 03/50] [New Plugin] Plugin that inserts the name This plugin inserts the name of the terminal, as determined by Terminal.get_window_title() to all open terminals. Fixes #540 --- terminatorlib/plugins/insert_term_name.py | 20 ++++++++++++++++++++ terminatorlib/terminal.py | 2 ++ terminatorlib/terminator.py | 10 ++++++++++ 3 files changed, 32 insertions(+) create mode 100644 terminatorlib/plugins/insert_term_name.py diff --git a/terminatorlib/plugins/insert_term_name.py b/terminatorlib/plugins/insert_term_name.py new file mode 100644 index 00000000..fa35e39a --- /dev/null +++ b/terminatorlib/plugins/insert_term_name.py @@ -0,0 +1,20 @@ +from gi.repository import Gtk + +import terminatorlib.plugin as plugin +from terminatorlib.terminator import Terminator + +AVAILABLE = ['InsertTermName'] + +class InsertTermName(plugin.MenuItem): + capabilities = ['terminal_menu'] + config = None + + def __init__(self): + # self.connect_signals() + plugin.MenuItem.__init__(self) + + def callback(self, menuitems, menu, terminal): + item = Gtk.MenuItem.new_with_label('Insert terminal name') + item.connect('activate', lambda x: terminal.emit('insert-term-name')) + menuitems.append(item) + diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index cadd9c25..57317746 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -40,6 +40,7 @@ class Terminal(Gtk.VBox): 'close-term': (GObject.SignalFlags.RUN_LAST, None, ()), 'title-change': (GObject.SignalFlags.RUN_LAST, None, (GObject.TYPE_STRING,)), + 'insert-term-name': (GObject.SignalFlags.RUN_LAST, None, ()), 'enumerate': (GObject.SignalFlags.RUN_LAST, None, (GObject.TYPE_INT,)), 'group-tab': (GObject.SignalFlags.RUN_LAST, None, ()), @@ -126,6 +127,7 @@ class Terminal(Gtk.VBox): # FIXME: Surely these should happen in Terminator::register_terminal()? self.connect('enumerate', self.terminator.do_enumerate) + self.connect('insert-term-name', self.terminator.do_insert_term_name) self.connect('focus-in', self.terminator.focus_changed) self.connect('focus-out', self.terminator.focus_left) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 0fc58d56..0fcd111b 100644 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -585,6 +585,16 @@ class Terminator(Borg): idx = terminals.index(term) term.feed(numstr.encode() % (idx + 1)) + def do_insert_term_name(self, widget): + terminals = [] + for window in self.windows: + containers, win_terminals = enumerate_descendants(window) + terminals.extend(win_terminals) + + for term in self.get_target_terms(widget): + name = term.titlebar.get_custom_string() or term.get_window_title() + term.feed(name) + def get_sibling_terms(self, widget): termset = [] for term in self.terminals: From 35e7e026cde98726010f533a8558d94de691500f Mon Sep 17 00:00:00 2001 From: Matthew Rose Date: Sun, 20 Nov 2022 13:42:20 -0500 Subject: [PATCH 04/50] add "Insert Terminal Name" to the group menu --- terminatorlib/plugins/insert_term_name.py | 2 -- terminatorlib/terminal.py | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/terminatorlib/plugins/insert_term_name.py b/terminatorlib/plugins/insert_term_name.py index fa35e39a..f85b1eab 100644 --- a/terminatorlib/plugins/insert_term_name.py +++ b/terminatorlib/plugins/insert_term_name.py @@ -1,7 +1,6 @@ from gi.repository import Gtk import terminatorlib.plugin as plugin -from terminatorlib.terminator import Terminator AVAILABLE = ['InsertTermName'] @@ -10,7 +9,6 @@ class InsertTermName(plugin.MenuItem): config = None def __init__(self): - # self.connect_signals() plugin.MenuItem.__init__(self) def callback(self, menuitems, menu, terminal): diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 57317746..ded0f4b5 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -587,6 +587,10 @@ class Terminal(Gtk.VBox): item.connect('activate', lambda x: self.emit('enumerate', True)) menu.append(item) + item = Gtk.MenuItem.new_with_mnemonic(_('Insert terminal _name')) + item.connect('activate', lambda x: self.emit('insert-term-name')) + menu.append(item) + return(menu) def set_group(self, _item, name): From d3d64d406d1dfebf87e0e0a063b553725476276f Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Tue, 22 Nov 2022 00:48:20 +0000 Subject: [PATCH 05/50] Translate /po/terminator.pot in pt_BR translation completed for the source file '/po/terminator.pot' on the 'pt_BR' language. --- po/pt_BR.po | 233 ++++++++++++---------------------------------------- 1 file changed, 52 insertions(+), 181 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index a15a853c..643bbe0e 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -2,26 +2,26 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Gnome Terminator , 2020 # Anthony Louis , 2021 -# +# C. E., 2022 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-22 00:51+0100\n" +"POT-Creation-Date: 2022-10-19 09:29-0400\n" "PO-Revision-Date: 2020-04-22 08:11+0000\n" -"Last-Translator: Anthony Louis , 2021\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/terminator/" -"teams/109338/pt_BR/)\n" -"Language: pt_BR\n" +"Last-Translator: C. E., 2022\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/terminator/teams/109338/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" #. Command uuid req. Description #: ../remotinator.py:39 @@ -70,11 +70,11 @@ msgstr "Definir título de uma guia superior" #: ../remotinator.py:50 msgid "Set the background image" -msgstr "" +msgstr "Definir a imagem de fundo" #: ../remotinator.py:51 msgid "Set the background image for all terminals" -msgstr "" +msgstr "Definir a imagem de fundo para todos os terminais" #: ../remotinator.py:52 msgid "Switch current terminal profile" @@ -82,7 +82,7 @@ msgstr "Trocar o perfil atual do terminal" #: ../remotinator.py:53 msgid "Switch profile of all currently running terminals" -msgstr "" +msgstr "Troca o perfil de todos os terminais atualmente em execução" #: ../remotinator.py:70 #, python-format @@ -108,15 +108,15 @@ msgstr "Terminal UUID para quando não estiver em TERMINATOR_UUID" #: ../remotinator.py:80 msgid "Profile name to switch to" -msgstr "" +msgstr "Mudar o nome do perfil para" #: ../remotinator.py:83 msgid "File to pass to command" -msgstr "" +msgstr "Arquivo para passar ao comando" #: ../remotinator.py:86 msgid "Command to run in new terminal" -msgstr "" +msgstr "Comando para executar em novo terminal" #: ../remotinator.py:89 msgid "Tab name to set. Only used with \"set_tab_title\" command." @@ -126,7 +126,7 @@ msgstr "" #: ../remotinator.py:92 msgid "Tab name to set." -msgstr "" +msgstr "Definir nome da Aba" #: ../data/terminator.desktop.in.h:1 ../data/terminator.appdata.xml.in.h:1 #: ../terminatorlib/plugins/activitywatch.py:83 @@ -148,8 +148,8 @@ msgstr "O robo do futuro dos terminais" msgid "" "A power-user tool for arranging terminals. It is inspired by programs such " "as gnome-multi-term, quadkonsole, etc. in that the main focus is arranging " -"terminals in grids (tabs is the most common default method, which Terminator " -"also supports)." +"terminals in grids (tabs is the most common default method, which Terminator" +" also supports)." msgstr "" "Uma ferramenta destinada aos superusuários, útil para organização de " "terminais. Esta foi inspirada por programas como gnome-multi-term, " @@ -164,8 +164,8 @@ msgid "" "users." msgstr "" "Muito do comportamento do Terminator é baseado no Terminal do Gnome, e " -"estamos adicionando mais recursos com o passar do tempo, mas também queremos " -"estender isso em diferentes recursos para administradores e sistemas e " +"estamos adicionando mais recursos com o passar do tempo, mas também queremos" +" estender isso em diferentes recursos para administradores e sistemas e " "outros usuários." #: ../data/terminator.appdata.xml.in.h:6 @@ -366,11 +366,11 @@ msgstr "" #: ../terminatorlib/optionparse.py:100 msgid "List all profiles" -msgstr "" +msgstr "Listar todos os perfis" #: ../terminatorlib/optionparse.py:102 msgid "List all layouts" -msgstr "" +msgstr "Listar todos os layouts" #: ../terminatorlib/plugins/activitywatch.py:54 msgid "Watch for _activity" @@ -768,7 +768,7 @@ msgstr "" #: ../terminatorlib/preferences.glade.h:64 msgid "Disable mouse paste" -msgstr "" +msgstr "Desativar a cola do mouse" #: ../terminatorlib/preferences.glade.h:65 msgid "Custom URL handler:" @@ -796,11 +796,11 @@ msgstr "Estilização extra(Depende do tema)" #: ../terminatorlib/preferences.glade.h:71 msgid "Cell Height:" -msgstr "" +msgstr "Altura da célula:" #: ../terminatorlib/preferences.glade.h:72 msgid "Cell Width:" -msgstr "" +msgstr "Largura da célula:" #: ../terminatorlib/preferences.glade.h:73 msgid "Tab position:" @@ -872,11 +872,11 @@ msgstr "Piscar" #: ../terminatorlib/preferences.glade.h:90 msgid "Use default colors" -msgstr "" +msgstr "Usar cores padrão" #: ../terminatorlib/preferences.glade.h:91 msgid "Foreground:" -msgstr "" +msgstr "Primeiro plano:" #: ../terminatorlib/preferences.glade.h:92 msgid "Background:" @@ -936,11 +936,11 @@ msgstr "Es_quemas embutidos:" #: ../terminatorlib/preferences.glade.h:107 msgid "_Foreground:" -msgstr "" +msgstr "_Foreground:" #: ../terminatorlib/preferences.glade.h:108 msgid "_Background:" -msgstr "" +msgstr "_Background:" #: ../terminatorlib/preferences.glade.h:109 msgid "Palette" @@ -1030,8 +1030,8 @@ msgstr "Rolagem" msgid "" "Note: These options may cause some applications to behave " "incorrectly. They are only here to allow you to work around certain " -"applications and operating systems that expect different terminal behavior." +"applications and operating systems that expect different terminal " +"behavior." msgstr "" "Nota: Estas opções podem levar alguns aplicativos a se " "comportarem incorretamente. Elas existem apenas para permitir que você " @@ -1080,7 +1080,7 @@ msgstr "Escolher Uma Fonte para Barra de Títulos" #: ../terminatorlib/preferences.glade.h:141 msgid "Titlebar" -msgstr "" +msgstr "Barra de título" #: ../terminatorlib/preferences.glade.h:142 #: ../terminatorlib/terminal_popup_menu.py:204 @@ -1137,27 +1137,12 @@ msgstr "Versão: 2.11" #: ../terminatorlib/preferences.glade.h:159 msgid "" -"The goal of this project is to produce a useful tool for arranging " -"terminals. It is inspired by programs such as gnome-multi-term, quadkonsole, " -"etc. in that the main focus is arranging terminals in grids (tabs is the " -"most common default method, which Terminator also supports).\n" +"The goal of this project is to produce a useful tool for arranging terminals. It is inspired by programs such as gnome-multi-term, quadkonsole, etc. in that the main focus is arranging terminals in grids (tabs is the most common default method, which Terminator also supports).\n" "\n" -"Much of the behavior of Terminator is based on GNOME Terminal, and we are " -"adding more features from that as time goes by, but we also want to extend " -"out in different directions with useful features for sysadmins and other " -"users. If you have any suggestions, please file wishlist bugs! (see left for " -"the Development link)" +"Much of the behavior of Terminator is based on GNOME Terminal, and we are adding more features from that as time goes by, but we also want to extend out in different directions with useful features for sysadmins and other users. If you have any suggestions, please file wishlist bugs! (see left for the Development link)" msgstr "" -"O objetivo deste projeto é fornecer uma ferramenta útil para organização de " -"terminais. Esta foi inspirada por programas como gnome-multi-term, " -"quadkonsole, etc. em que o objetivo principal é organizar terminais em " -"grades (abas é o método mais comum, o qual o Terminator também suporta).\n" -"O comportamento do Terminator é baseado no Terminal do Gnome, e estamos " -"adicionando mais recursos com o passar do tempo, mas também queremos " -"estender isso em diferentes recursos para administradores e sistemas e " -"outros usuários. Se você tem alguma sugestão, por favor, relate os bugs e " -"possíveis melhorias na lista de desejo! (Veja a esquerda para o link para " -"desenvolvimento)" +"O objetivo deste projeto é fornecer uma ferramenta útil para organização de terminais. Esta foi inspirada por programas como gnome-multi-term, quadkonsole, etc. em que o objetivo principal é organizar terminais em grades (abas é o método mais comum, o qual o Terminator também suporta).\n" +"O comportamento do Terminator é baseado no Terminal do Gnome, e estamos adicionando mais recursos com o passar do tempo, mas também queremos estender isso em diferentes recursos para administradores e sistemas e outros usuários. Se você tem alguma sugestão, por favor, relate os bugs e possíveis melhorias na lista de desejo! (Veja a esquerda para o link para desenvolvimento)" #: ../terminatorlib/preferences.glade.h:162 msgid "The Manual" @@ -1166,13 +1151,10 @@ msgstr "O Manual" #: ../terminatorlib/preferences.glade.h:163 msgid "" "Development\n" -"Bugs / " -"Enhancements" +"Bugs / Enhancements" msgstr "" -"Desenvolvimento\n" -"Bugs / " -"Melhorias" +"Desenvolvimento\n" +"Bugs / Melhorias" #: ../terminatorlib/preferences.glade.h:165 msgid "About" @@ -1260,7 +1242,7 @@ msgstr "Colar área de transferência" #: ../terminatorlib/prefseditor.py:126 msgid "Paste primary selection" -msgstr "" +msgstr "Colar seleção primária" #: ../terminatorlib/prefseditor.py:127 msgid "Show/Hide the scrollbar" @@ -1412,15 +1394,15 @@ msgstr "Desagrupar todos os terminais" #: ../terminatorlib/prefseditor.py:164 msgid "Group terminals in window" -msgstr "" +msgstr "Agrupar terminais na janela" #: ../terminatorlib/prefseditor.py:165 msgid "Group/Ungroup terminals in window" -msgstr "" +msgstr "Agrupar/Desagrupar terminais na janela" #: ../terminatorlib/prefseditor.py:166 msgid "Ungroup terminals in window" -msgstr "" +msgstr "Desagrupar terminais na janela" #: ../terminatorlib/prefseditor.py:167 msgid "Group terminals in tab" @@ -1494,11 +1476,11 @@ msgstr "Abrir janela de Preferências" msgid "Open the manual" msgstr "Abrir o manual" -#: ../terminatorlib/prefseditor.py:1370 +#: ../terminatorlib/prefseditor.py:1366 msgid "New Profile" msgstr "Novo perfil" -#: ../terminatorlib/prefseditor.py:1413 ../terminatorlib/prefseditor.py:1418 +#: ../terminatorlib/prefseditor.py:1409 ../terminatorlib/prefseditor.py:1414 msgid "New Layout" msgstr "Nova disposição" @@ -1545,7 +1527,7 @@ msgstr "_Colar" #: ../terminatorlib/terminal_popup_menu.py:112 msgid "Set W_indow Title" -msgstr "" +msgstr "Definir o título da W_indow" #: ../terminatorlib/terminal_popup_menu.py:117 msgid "Split H_orizontally" @@ -1610,11 +1592,11 @@ msgstr "Remover grupo %s" #: ../terminatorlib/terminal.py:512 msgid "G_roup all in window" -msgstr "" +msgstr "Ag_rupar todas as janelas" #: ../terminatorlib/terminal.py:517 msgid "Ungro_up all in window" -msgstr "" +msgstr "Desagr_upar todas as janelas" #: ../terminatorlib/terminal.py:522 msgid "G_roup all in tab" @@ -1661,19 +1643,19 @@ msgstr "_Inserir número do terminal" msgid "Insert _padded terminal number" msgstr "Inserir _monte de números de terminal" -#: ../terminatorlib/terminal.py:1490 +#: ../terminatorlib/terminal.py:1492 msgid "Unable to find a shell" msgstr "Incapaz de encontrar um shell" -#: ../terminatorlib/terminal.py:1521 +#: ../terminatorlib/terminal.py:1546 msgid "Unable to start shell:" msgstr "Incapaz de iniciar o shell:" -#: ../terminatorlib/terminal.py:1975 +#: ../terminatorlib/terminal.py:2000 msgid "Rename Window" msgstr "Renomear janela" -#: ../terminatorlib/terminal.py:1983 +#: ../terminatorlib/terminal.py:2008 msgid "Enter a new title for the Terminator window..." msgstr "Insira um novo título para a janela do terminal" @@ -1784,120 +1766,9 @@ msgstr "janela" #: ../terminatorlib/window.py:773 #, python-format msgid "Window group %s" -msgstr "" +msgstr "Grupo de janelas %s" #: ../terminatorlib/window.py:799 #, python-format msgid "Tab %d" msgstr "Aba %d" - -#~ msgid "Current Locale" -#~ msgstr "Localização atual" - -#~ msgid "Western" -#~ msgstr "Ocidental" - -#~ msgid "Central European" -#~ msgstr "Europa Central" - -#~ msgid "South European" -#~ msgstr "Sul da Europa" - -#~ msgid "Baltic" -#~ msgstr "Báltico" - -#~ msgid "Cyrillic" -#~ msgstr "Cirílico" - -#~ msgid "Arabic" -#~ msgstr "Arábico" - -#~ msgid "Greek" -#~ msgstr "Grego" - -#~ msgid "Hebrew Visual" -#~ msgstr "Visual Hebraico" - -#~ msgid "Hebrew" -#~ msgstr "Hebraico" - -#~ msgid "Turkish" -#~ msgstr "Turco" - -#~ msgid "Nordic" -#~ msgstr "Nórdico" - -#~ msgid "Celtic" -#~ msgstr "Celta" - -#~ msgid "Romanian" -#~ msgstr "Romeno" - -#~ msgid "Unicode" -#~ msgstr "Unicode" - -#~ msgid "Armenian" -#~ msgstr "Armênio" - -#~ msgid "Chinese Traditional" -#~ msgstr "Chinês tradicional" - -#~ msgid "Cyrillic/Russian" -#~ msgstr "Cirílico/Russo" - -#~ msgid "Japanese" -#~ msgstr "Japonês" - -#~ msgid "Korean" -#~ msgstr "Coreano" - -#~ msgid "Chinese Simplified" -#~ msgstr "Chinês simplificado" - -#~ msgid "Georgian" -#~ msgstr "Geórgio" - -#~ msgid "Cyrillic/Ukrainian" -#~ msgstr "Cirílico/Ucraniano" - -#~ msgid "Croatian" -#~ msgstr "Croata" - -#~ msgid "Hindi" -#~ msgstr "Hindu" - -#~ msgid "Persian" -#~ msgstr "Persa" - -#~ msgid "Gujarati" -#~ msgstr "Guzarate" - -#~ msgid "Gurmukhi" -#~ msgstr "Gurmukhi" - -#~ msgid "Icelandic" -#~ msgstr "Islandês" - -#~ msgid "Vietnamese" -#~ msgstr "Vietnamita" - -#~ msgid "Thai" -#~ msgstr "Tailandês" - -#~ msgid "Line Height:" -#~ msgstr "Altura da linha" - -#~ msgid "Encoding:" -#~ msgstr "Codificação" - -#~ msgid "Encodings" -#~ msgstr "Codificações" - -#~ msgid "Default" -#~ msgstr "Padrão" - -#~ msgid "User defined" -#~ msgstr "Definido pelo usuário" - -#~ msgid "Other Encodings" -#~ msgstr "Outras codificações" From 98dcd0efec6daa88ccc5957ad04b52083fcc45d0 Mon Sep 17 00:00:00 2001 From: Vishweshwar Saran Singh Deo Date: Wed, 23 Nov 2022 20:02:26 +0530 Subject: [PATCH 06/50] [bug 680] Open up keybindings page on keypress #680 - implemented the short-cut - seems the key combo is already taken 'go_prev' : 'p' - How about : 'k', I will make the change for now. - But adding key seq to a long list of keypress function breaks my heart, If the plugin util keybind makes it to the main branch, I will take this out and may be have a shortcut plugin to handle these. - Also selecting of Keybindings page is being done for this specific case Page = 3 - A notebook tab number and title map would remove this. Which can be configurable, later. --- terminatorlib/config.py | 1 + terminatorlib/prefseditor.py | 9 +++++++-- terminatorlib/terminal.py | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 8feec7fe..80c29cbd 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -202,6 +202,7 @@ DEFAULTS = { 'next_profile' : '', 'previous_profile' : '', 'preferences' : '', + 'preferences_keybindings' : 'k', 'help' : 'F1' }, 'profiles': { diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 63365240..a333069f 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -181,11 +181,12 @@ class PrefsEditor: 'layout_launcher' : _('Open layout launcher window'), 'next_profile' : _('Switch to next profile'), 'previous_profile' : _('Switch to previous profile'), - 'preferences' : _('Open the Preferences window'), + 'preferences' : _('Open the Preferences window'), + 'preferences_keybindings' : _('Open the Preferences-Keybindings window'), 'help' : _('Open the manual') } - def __init__ (self, term): + def __init__ (self, term, cur_page=0): self.config = config.Config() self.config.base.reload() self.term = term @@ -228,6 +229,10 @@ class PrefsEditor: err('Unable to set values: %s' % e) self.config.uninhibit_save() + guiget = self.builder.get_object + nb = guiget('notebook1') + nb.set_current_page(cur_page) + def on_closebutton_clicked(self, _button): """Close the window""" terminator = Terminator() diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index c3cd4b03..9f633a66 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -2080,6 +2080,11 @@ class Terminal(Gtk.VBox): def key_preferences(self): PrefsEditor(self) + def key_preferences_keybindings(self): + #need to have this as a config may be preferences_default + #have a mapping rather than hardcoded page + PrefsEditor(self, cur_page = 3) + def key_help(self): manual_index_page = manual_lookup() if manual_index_page: From c84821e36abe45890518ba8ff63449c9932bd124 Mon Sep 17 00:00:00 2001 From: nicbn Date: Tue, 6 Dec 2022 18:08:01 -0300 Subject: [PATCH 07/50] Make Ctrl+Click on group button automatically create groups --- terminatorlib/terminal.py | 8 +++++++- terminatorlib/terminator.py | 17 +++++++++++++++++ terminatorlib/titlebar.py | 16 +--------------- 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index cadd9c25..401886bf 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -879,7 +879,13 @@ class Terminal(Gtk.VBox): focused=self.get_toplevel().get_focussed_terminal() if focused in targets: targets.remove(focused) if self != focused: - if self.group == focused.group: + if focused.group is None and self.group is None: + # Create a new group and assign currently focused + # terminal to this group + new_group = self.terminator.new_random_group() + focused.set_group(None, new_group) + focused.titlebar.update() + elif self.group == focused.group: new_group = None else: new_group = focused.group diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 0fc58d56..e5274d47 100644 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -8,6 +8,8 @@ import gi gi.require_version('Vte', '2.91') from gi.repository import Gtk, Gdk, Vte from gi.repository.GLib import GError +import itertools +import random from . import borg from .borg import Borg @@ -16,6 +18,7 @@ from .keybindings import Keybindings from .util import dbg, err, enumerate_descendants from .factory import Factory from .version import APP_NAME, APP_VERSION +from .translation import _ try: from gi.repository import GdkX11 @@ -638,4 +641,18 @@ class Terminator(Borg): def zoom_orig_all(self): for term in self.terminals: term.zoom_orig() + + def new_random_group(self): + defaultmembers=[_('Alpha'),_('Beta'),_('Gamma'),_('Delta'),_('Epsilon'),_('Zeta'),_('Eta'), + _('Theta'),_('Iota'),_('Kappa'),_('Lambda'),_('Mu'),_('Nu'),_('Xi'), + _('Omicron'),_('Pi'),_('Rho'),_('Sigma'),_('Tau'),_('Upsilon'),_('Phi'), + _('Chi'),_('Psi'),_('Omega')] + currentgroups=set(self.groups) + for i in range(1,4): + defaultgroups=set(map(''.join, list(itertools.product(defaultmembers,repeat=i)))) + freegroups = list(defaultgroups-currentgroups) + if freegroups: + return random.choice(freegroups) + return '' + # vim: set expandtab ts=4 sw=4: diff --git a/terminatorlib/titlebar.py b/terminatorlib/titlebar.py index e651f00c..ee9dfb2c 100644 --- a/terminatorlib/titlebar.py +++ b/terminatorlib/titlebar.py @@ -5,8 +5,6 @@ from gi.repository import Gtk, Gdk from gi.repository import GObject from gi.repository import Pango -import random -import itertools from .version import APP_NAME from .util import dbg @@ -255,19 +253,7 @@ class Titlebar(Gtk.EventBox): if self.terminal.group: self.groupentry.set_text(self.terminal.group) else: - defaultmembers=[_('Alpha'),_('Beta'),_('Gamma'),_('Delta'),_('Epsilon'),_('Zeta'),_('Eta'), - _('Theta'),_('Iota'),_('Kappa'),_('Lambda'),_('Mu'),_('Nu'),_('Xi'), - _('Omicron'),_('Pi'),_('Rho'),_('Sigma'),_('Tau'),_('Upsilon'),_('Phi'), - _('Chi'),_('Psi'),_('Omega')] - currentgroups=set(self.terminator.groups) - for i in range(1,4): - defaultgroups=set(map(''.join, list(itertools.product(defaultmembers,repeat=i)))) - freegroups = list(defaultgroups-currentgroups) - if freegroups: - self.groupentry.set_text(random.choice(freegroups)) - break - else: - self.groupentry.set_text('') + self.groupentry.set_text(self.terminator.new_random_group()) self.groupentry.show() self.grouplabel.hide() self.groupentry.grab_focus() From 808d2efaa964633b151ca69d50e71f562f1c41cf Mon Sep 17 00:00:00 2001 From: zpalmtree <22151537+zpalmtree@users.noreply.github.com> Date: Wed, 28 Dec 2022 23:20:28 -0500 Subject: [PATCH 08/50] Add detachable tabs feature to preferences --- terminatorlib/config.py | 3 +- terminatorlib/notebook.py | 4 +- terminatorlib/preferences.glade | 130 +++++++++++++++++++------------- terminatorlib/prefseditor.py | 8 ++ 4 files changed, 88 insertions(+), 57 deletions(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 80c29cbd..5280e366 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -118,7 +118,8 @@ DEFAULTS = { 'case_sensitive' : True, 'invert_search' : False, 'link_single_click' : False, - 'title_at_bottom' : False + 'title_at_bottom' : False, + 'detachable_tabs' : True, }, 'keybindings': { 'zoom_in' : 'plus', diff --git a/terminatorlib/notebook.py b/terminatorlib/notebook.py index f43b88f4..1a069b41 100644 --- a/terminatorlib/notebook.py +++ b/terminatorlib/notebook.py @@ -191,7 +191,7 @@ class Notebook(Container, Gtk.Notebook): sibling.force_set_profile(None, widget.get_profile()) self.insert_page(container, None, page_num) - self.set_tab_detachable(container, True) + self.set_tab_detachable(container, self.config['detachable_tabs']) self.child_set_property(container, 'tab-expand', True) self.child_set_property(container, 'tab-fill', True) self.set_tab_reorderable(container, True) @@ -320,7 +320,7 @@ class Notebook(Container, Gtk.Notebook): dbg('inserting page at position: %s' % tabpos) self.insert_page(widget, None, tabpos) - self.set_tab_detachable(widget, True) + self.set_tab_detachable(widget, self.config['detachable_tabs']) if maker.isinstance(widget, 'Terminal'): containers, objects = ([], [widget]) diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index 57dc3620..93137e5c 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -1,5 +1,5 @@ - + @@ -413,7 +413,7 @@ 36 True - + True False @@ -553,6 +553,23 @@ 2 + + + Detach tab into new window on drag (Require restart) + False + True + True + False + 0.5 + True + + + + 0 + 7 + 2 + + True @@ -3721,12 +3738,12 @@ - + False + True True - False - filter keybindings + filter keybindings False @@ -3734,68 +3751,73 @@ 0 - - - True - True - adjustment4 - never - in - + True True - True - KeybindingsListStore - False - 0 - - - + adjustment4 + never + in - - Name - - - - 0 - + + True + True + True + KeybindingsListStore + False + 0 + + - - - - - Action - - - 1 - - - - - - - Keybinding - - - True - other - - + + Name + + + + 0 + + + + + + + Action + + + + 1 + + + + + + + Keybinding + + + True + other + + + + + 2 + 3 + + - - 2 - 3 - + + True + True + 1 + - - 3 diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index a333069f..2b1c009d 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -770,6 +770,10 @@ class PrefsEditor: else: widget.set_font_name(self.config['title_font']) + # Whether tabs can be detached into their own window by dragging from titlebar + widget = guiget('detachable_tabs') + widget.set_active(self.config['detachable_tabs']) + def set_layout(self, layout_name): """Set a layout""" self.layouteditor.set_layout(layout_name) @@ -1873,6 +1877,10 @@ class PrefsEditor: """Open the fine manual""" self.term.key_help() + def on_detachable_tabs_toggled(self, widget): + self.config['detachable_tabs'] = widget.get_active() + self.config.save() + class LayoutEditor: profile_ids_to_profile = None profile_profile_to_ids = None From 3854a7c0e2fb61fda7d683021735fe83cd3dce4d Mon Sep 17 00:00:00 2001 From: Kacper Kowalski Date: Fri, 3 Feb 2023 14:34:16 +0100 Subject: [PATCH 09/50] Allow setting hardcoded background darkening Normally, one can only change the background of the foreground for the inactive window. With this change the background of the inactive window will also change it's brightness by 20%. --- terminatorlib/terminal.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 9f633a66..936bbc3e 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -112,6 +112,7 @@ class Terminal(Gtk.VBox): fgcolor_active = None fgcolor_inactive = None bgcolor = None + bgcolor_inactive = None palette_active = None palette_inactive = None @@ -754,6 +755,13 @@ class Terminal(Gtk.VBox): dbg(("fgcolor_inactive set to: RGB(%s,%s,%s)", getattr(self.fgcolor_inactive, "red"), getattr(self.fgcolor_inactive, "green"), getattr(self.fgcolor_inactive, "blue"))) + + bg_factor = 0.8 + self.bgcolor_inactive = self.bgcolor.copy() + for bit in ['red', 'green', 'blue']: + setattr(self.bgcolor_inactive, bit, + getattr(self.bgcolor_inactive, bit) * bg_factor) + colors = self.config['palette'].split(':') self.palette_active = [] for color in colors: @@ -789,7 +797,7 @@ class Terminal(Gtk.VBox): self.vte.set_colors(self.fgcolor_active, self.bgcolor, self.palette_active) else: - self.vte.set_colors(self.fgcolor_inactive, self.bgcolor, + self.vte.set_colors(self.fgcolor_inactive, self.bgcolor_inactive, self.palette_inactive) profiles = self.config.base.profiles terminal_box_style_context = self.terminalbox.get_style_context() @@ -1314,7 +1322,7 @@ class Terminal(Gtk.VBox): def on_vte_focus_out(self, _widget, _event): """Inform other parts of the application when focus is lost""" - self.vte.set_colors(self.fgcolor_inactive, self.bgcolor, + self.vte.set_colors(self.fgcolor_inactive, self.bgcolor_inactive, self.palette_inactive) self.set_cursor_color() self.emit('focus-out') From 6551dba9dc6ee859b24c842081ef5fbd4586356a Mon Sep 17 00:00:00 2001 From: Kacper Kowalski Date: Fri, 3 Feb 2023 14:59:36 +0100 Subject: [PATCH 10/50] Add config option for inactive background offset --- terminatorlib/config.py | 1 + terminatorlib/prefseditor.py | 15 +++++++++++++++ terminatorlib/terminal.py | 4 +++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 80c29cbd..a4c310e7 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -103,6 +103,7 @@ DEFAULTS = { 'custom_url_handler' : '', 'disable_real_transparency' : False, 'inactive_color_offset': 0.8, + 'inactive_bg_color_offset': 0.8, 'enabled_plugins' : ['LaunchpadBugURLHandler', 'LaunchpadCodeURLHandler', 'APTURLHandler'], diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index a333069f..1bc7b664 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -674,6 +674,10 @@ class PrefsEditor: widget.set_value(float(self.config['inactive_color_offset'])) widget = guiget('inactive_color_offset_value_label') widget.set_text('%d%%' % (int(float(self.config['inactive_color_offset'])*100))) + widget = guiget('inactive_bg_color_offset') + widget.set_value(float(self.config['inactive_bg_color_offset'])) + widget = guiget('inactive_bg_color_offset_value_label') + widget.set_text('%d%%' % (int(float(self.config['inactive_bg_color_offset'])*100))) # Open links with a single click (instead of a Ctrl-left click) widget = guiget('link_single_click') widget.set_active(self.config['link_single_click']) @@ -1294,6 +1298,17 @@ class PrefsEditor: label_widget = guiget('inactive_color_offset_value_label') label_widget.set_text('%d%%' % (int(value * 100))) + def on_inactive_bg_color_offset_value_changed(self, widget): + """Inactive background color offset setting changed""" + value = widget.get_value() # This one is rounded according to the UI. + if value > 1.0: + value = 1.0 + self.config['inactive_bg_color_offset'] = value + self.config.save() + guiget = self.builder.get_object + label_widget = guiget('inactive_bg_color_offset_value_label') + label_widget.set_text('%d%%' % (int(value * 100))) + def on_handlesize_value_changed(self, widget): """Handle size changed""" value = widget.get_value() # This one is rounded according to the UI. diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 936bbc3e..33246410 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -756,7 +756,9 @@ class Terminal(Gtk.VBox): getattr(self.fgcolor_inactive, "green"), getattr(self.fgcolor_inactive, "blue"))) - bg_factor = 0.8 + bg_factor = self.config['inactive_bg_color_offset'] + if bg_factor > 1.0: + bg_factor = 1.0 self.bgcolor_inactive = self.bgcolor.copy() for bit in ['red', 'green', 'blue']: setattr(self.bgcolor_inactive, bit, From 272328c82d597f44c907c0fcf497b85b7e845cee Mon Sep 17 00:00:00 2001 From: Kacper Kowalski Date: Fri, 3 Feb 2023 15:50:33 +0100 Subject: [PATCH 11/50] Add inactive background color adjustment in prefs --- terminatorlib/preferences.glade | 177 +++++++++++++++++++++----------- 1 file changed, 116 insertions(+), 61 deletions(-) diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index 57dc3620..f1a61b7c 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -340,6 +340,11 @@ 0.10 0.20 + + 1 + 0.10 + 0.20 + 1 2 @@ -887,7 +892,7 @@ 36 True - + True False @@ -906,7 +911,7 @@ 0 - 3 + 4 3 @@ -960,7 +965,7 @@ True baseline True - adjustment7 + adjustment8 2 2 False @@ -1030,7 +1035,7 @@ 0 - 5 + 6 @@ -1046,7 +1051,7 @@ 1 - 5 + 6 @@ -1064,7 +1069,7 @@ 2 - 5 + 6 @@ -1081,7 +1086,7 @@ 2 - 4 + 5 @@ -1097,7 +1102,7 @@ 1 - 4 + 5 @@ -1109,7 +1114,52 @@ 0 - 4 + 5 + + + + + True + False + Unfocused terminal background color + 0 + + + 0 + 3 + + + + + True + False + 100% + right + 5 + 5 + 1 + + + 1 + 3 + + + + + 100 + True + True + True + adjustment7 + 2 + 2 + False + bottom + + + + 2 + 3 @@ -3721,12 +3771,12 @@ - + False + True True - False - filter keybindings + filter keybindings False @@ -3734,68 +3784,73 @@ 0 - - - True - True - adjustment4 - never - in - + True True - True - KeybindingsListStore - False - 0 - - - + adjustment4 + never + in - - Name - - - - 0 - + + True + True + True + KeybindingsListStore + False + 0 + + - - - - - Action - - - 1 - - - - - - - Keybinding - - - True - other - - + + Name + + + + 0 + + + + + + + Action + + + + 1 + + + + + + + Keybinding + + + True + other + + + + + 2 + 3 + + - - 2 - 3 - + + True + True + 1 + - - 3 From dd511778c823ea942380a37bd913766157ea6c07 Mon Sep 17 00:00:00 2001 From: Kacper Kowalski Date: Fri, 3 Feb 2023 15:56:46 +0100 Subject: [PATCH 12/50] Add debug messages for the inactive background color change --- terminatorlib/terminal.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 33246410..3c338ab8 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -760,9 +760,16 @@ class Terminal(Gtk.VBox): if bg_factor > 1.0: bg_factor = 1.0 self.bgcolor_inactive = self.bgcolor.copy() + dbg(("bgcolor_inactive set to: RGB(%s,%s,%s)", getattr(self.bgcolor_inactive, "red"), + getattr(self.bgcolor_inactive, "green"), + getattr(self.bgcolor_inactive, "blue"))) + for bit in ['red', 'green', 'blue']: setattr(self.bgcolor_inactive, bit, getattr(self.bgcolor_inactive, bit) * bg_factor) + dbg(("bgcolor_inactive set to: RGB(%s,%s,%s)", getattr(self.bgcolor_inactive, "red"), + getattr(self.bgcolor_inactive, "green"), + getattr(self.bgcolor_inactive, "blue"))) colors = self.config['palette'].split(':') self.palette_active = [] From 39cf34e295f107bd22d81da67f463220d938ad25 Mon Sep 17 00:00:00 2001 From: Kacper Kowalski Date: Fri, 3 Feb 2023 18:26:54 +0100 Subject: [PATCH 13/50] Fix typo --- terminatorlib/preferences.glade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index f1a61b7c..c0e29147 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -1121,7 +1121,7 @@ True False - Unfocused terminal background color + Unfocused terminal background color: 0 From 21529cec6c3de7a6d2fe2a58ef1d72f79c8d304d Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Tue, 1 Nov 2022 10:30:38 +0100 Subject: [PATCH 14/50] Add different background image modes stretch_and_fill, scale_and_fit, scale_and_crop, tiling --- terminatorlib/config.py | 1 + terminatorlib/terminal.py | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 80c29cbd..cdf96846 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -216,6 +216,7 @@ DEFAULTS = { 'background_darkness' : 0.5, 'background_type' : 'solid', 'background_image' : '', + 'background_image_mode' : 'stretch_and_fill', 'backspace_binding' : 'ascii-del', 'delete_binding' : 'escape-sequence', 'color_scheme' : 'grey_on_black', diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 9f633a66..a5b2efda 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1135,17 +1135,35 @@ class Terminal(Gtk.VBox): # save cairo context cr.save() + # draw background image + image_mode = self.config['background_image_mode'] + rect = self.vte.get_allocation() xratio = float(rect.width) / float(self.background_image.get_width()) yratio = float(rect.height) / float(self.background_image.get_height()) - cr.scale(xratio, yratio) + if image_mode == 'stretch_and_fill': + cr.scale(xratio, yratio) + elif image_mode == 'scale_and_fit': + ratio = min(xratio, yratio) + cr.scale(ratio, ratio) + elif image_mode == 'scale_and_crop': + ratio = max(xratio, yratio) + cr.scale(ratio, ratio) + + # TODO add image alignment + cr.set_source_surface(self.background_image) cr.get_source().set_filter(cairo.Filter.FAST) + if image_mode == 'tiling': + cr.get_source().set_extend(cairo.Extend.REPEAT) + cr.paint() + # draw transparent monochrome layer Gdk.cairo_set_source_rgba(cr, self.bgcolor) cr.paint() + # restore cairo context cr.restore() From df8890199cf3f26952816506fb3da7f30b2f7f75 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Tue, 1 Nov 2022 23:27:17 +0100 Subject: [PATCH 15/50] Add background image alignment background_image_align_horiz: left, center, right background_image_align_vert: top, middle, bottom --- terminatorlib/config.py | 2 ++ terminatorlib/terminal.py | 27 ++++++++++++++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index cdf96846..ae156329 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -217,6 +217,8 @@ DEFAULTS = { 'background_type' : 'solid', 'background_image' : '', 'background_image_mode' : 'stretch_and_fill', + 'background_image_align_horiz': 'center', + 'background_image_align_vert' : 'middle', 'backspace_binding' : 'ascii-del', 'delete_binding' : 'escape-sequence', 'color_scheme' : 'grey_on_black', diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index a5b2efda..964b5c40 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1138,22 +1138,39 @@ class Terminal(Gtk.VBox): # draw background image image_mode = self.config['background_image_mode'] + image_align_horiz = self.config['background_image_align_horiz'] + image_align_vert = self.config['background_image_align_vert'] rect = self.vte.get_allocation() xratio = float(rect.width) / float(self.background_image.get_width()) yratio = float(rect.height) / float(self.background_image.get_height()) if image_mode == 'stretch_and_fill': - cr.scale(xratio, yratio) + # keep stretched ratios + xratio = xratio + yratio = yratio elif image_mode == 'scale_and_fit': ratio = min(xratio, yratio) - cr.scale(ratio, ratio) + xratio = yratio = ratio elif image_mode == 'scale_and_crop': ratio = max(xratio, yratio) - cr.scale(ratio, ratio) + xratio = yratio = ratio + else: + xratio = yratio = 1 + cr.scale(xratio, yratio) - # TODO add image alignment + xoffset = 0 + yoffset = 0 + if image_align_horiz == 'center': + xoffset = (rect.width / xratio - self.background_image.get_width()) / 2 + elif image_align_horiz == 'right': + xoffset = rect.width / xratio - self.background_image.get_width() - cr.set_source_surface(self.background_image) + if image_align_vert == 'middle': + yoffset = (rect.height / yratio - self.background_image.get_height()) / 2 + elif image_align_vert == 'bottom': + yoffset = rect.height / yratio - self.background_image.get_height() + + cr.set_source_surface(self.background_image, xoffset, yoffset) cr.get_source().set_filter(cairo.Filter.FAST) if image_mode == 'tiling': cr.get_source().set_extend(cairo.Extend.REPEAT) From 6cc3052ba70f3552ad966b5e3c0dbaf8c363bb94 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Tue, 14 Feb 2023 16:59:59 +0100 Subject: [PATCH 16/50] Add background image's drawing mode and alignment to preferences GUI --- terminatorlib/preferences.glade | 382 +++++++++++++++++++++++++------- terminatorlib/prefseditor.py | 80 ++++++- 2 files changed, 378 insertions(+), 84 deletions(-) diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index 57dc3620..b8ca1749 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -1,5 +1,5 @@ - + @@ -154,6 +154,60 @@ + + + + + + + + Left + + + Center + + + Right + + + + + + + + + + + Top + + + Middle + + + Bottom + + + + + + + + + + + Stretch and Fill + + + Scale and Fit + + + Scale and Crop + + + Tiling + + + @@ -2660,41 +2714,208 @@ - + True False + 12 - + True False - Background Image File: + vertical + + + True + False + + + True + False + Image File: + + + False + True + 5 + 0 + + + + + True + False + Choose file + + + + False + True + end + 1 + + + + + False + True + 0 + + + + + True + False + + + True + False + Drawing mode: + + + False + True + 5 + 0 + + + + + True + False + ImageDrawingModeListStore + 0 + + + + + 0 + + + + + False + True + end + 1 + + + + + False + True + 1 + + + + + True + False + 12 + True + + + True + False + + + True + False + Horizontal alignment: + + + False + True + 5 + 0 + + + + + True + False + ImageAlignHorizListStore + 1 + + + + + 0 + + + + + False + True + end + 1 + + + + + False + True + 0 + + + + + True + False + + + True + False + Vertical alignment: + + + False + True + 5 + 0 + + + + + True + False + ImageAlignVertListStore + 1 + + + + + 0 + + + + + False + True + end + 1 + + + + + False + True + 1 + + + + + False + True + 2 + + - - False - True - 5 - 0 - - - - - True - False - Choose file - - - - False - True - end - 1 - False True - 4 + 3 @@ -2783,7 +3004,7 @@ False True - 4 + 6 @@ -3721,12 +3942,12 @@ - + False + True True - False - filter keybindings + filter keybindings False @@ -3734,68 +3955,73 @@ 0 - - - True - True - adjustment4 - never - in - + True True - True - KeybindingsListStore - False - 0 - - - + adjustment4 + never + in - - Name - - - - 0 - + + True + True + True + KeybindingsListStore + False + 0 + + - - - - - Action - - - 1 - - - - - - - Keybinding - - - True - other - - + + Name + + + + 0 + + + + + + + Action + + + + 1 + + + + + + + Keybinding + + + True + other + + + + + 2 + 3 + + - - 2 - 3 - + + True + True + 1 + - - 3 diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index a333069f..2fc668d3 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -694,11 +694,42 @@ class PrefsEditor: elif self.config['background_type'] == 'image': guiget('image_radiobutton').set_active(True) self.update_background_tab() + # Background image + widget = guiget('background_image_file') + widget.set_filename(self.config['background_image']) + + widget = guiget('background_image_mode_combobox') + if self.config['background_image_mode'] == 'scale_and_fit': + widget.set_active(1) + elif self.config['background_image_mode'] == 'scale_and_crop': + widget.set_active(2) + elif self.config['background_image_mode'] == 'tiling': + widget.set_active(3) + else: + # default to stretch_and_fill + widget.set_active(0) + + widget = guiget('background_image_align_horiz_combobox') + if self.config['background_image_align_horiz'] == 'center': + widget.set_active(1) + elif self.config['background_image_align_horiz'] == 'right': + widget.set_active(2) + else: + # default to left + widget.set_active(0) + + widget = guiget('background_image_align_vert_combobox') + if self.config['background_image_align_vert'] == 'middle': + widget.set_active(1) + elif self.config['background_image_align_vert'] == 'bottom': + widget.set_active(2) + else: + # default to top + widget.set_active(0) + # Background shading widget = guiget('background_darkness_scale') widget.set_value(float(self.config['background_darkness'])) - widget = guiget('background_image_file') - widget.set_filename(self.config['background_image']) ## Scrolling tab # Scrollbar position @@ -999,6 +1030,41 @@ class PrefsEditor: self.config['background_image'] = widget.get_filename() self.config.save() + def on_background_image_mode_changed(self, widget): + selected = widget.get_active() + if selected == 1: + value = 'scale_and_fit' + elif selected == 2: + value = 'scale_and_crop' + elif selected == 3: + value = 'tiling' + else: + value = 'stretch_and_fill' + self.config['background_image_mode'] = value + self.config.save() + + def on_background_image_align_horiz_changed(self, widget): + selected = widget.get_active() + if selected == 1: + value = 'center' + elif selected == 2: + value = 'right' + else: + value = 'left' + self.config['background_image_align_horiz'] = value + self.config.save() + + def on_background_image_align_vert_changed(self, widget): + selected = widget.get_active() + if selected == 1: + value = 'middle' + elif selected == 2: + value = 'bottom' + else: + value = 'top' + self.config['background_image_align_vert'] = value + self.config.save() + def on_darken_background_scale_value_changed(self, widget): """Background darkness setting changed""" value = widget.get_value() # This one is rounded according to the UI. @@ -1603,10 +1669,12 @@ class PrefsEditor: self.config['background_type'] = backtype self.config.save() - if backtype == 'image': - guiget('background_image_file').set_sensitive(True) - else: - guiget('background_image_file').set_sensitive(False) + # toggle sensitivity of widgets related to background image + for element in ('background_image_file', + 'background_image_align_horiz_combobox', + 'background_image_align_vert_combobox', + 'background_image_mode_combobox'): + guiget(element).set_sensitive(backtype == 'image') if backtype in ('transparent', 'image'): guiget('darken_background_scale').set_sensitive(True) From d52fa5a5d425257297a171cb0ae84a755831a8f7 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Wed, 15 Feb 2023 11:44:42 +0100 Subject: [PATCH 17/50] Detachable tabs: reposition the code --- terminatorlib/prefseditor.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 2b1c009d..8217a1e7 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -337,6 +337,9 @@ class PrefsEditor: # DBus Server widget = guiget('dbuscheck') widget.set_active(self.config['dbus']) + # Detachable tabs + widget = guiget('detachable_tabs') + widget.set_active(self.config['detachable_tabs']) #Hide from taskbar widget = guiget('hidefromtaskbcheck') widget.set_active(self.config['hide_from_taskbar']) @@ -770,10 +773,6 @@ class PrefsEditor: else: widget.set_font_name(self.config['title_font']) - # Whether tabs can be detached into their own window by dragging from titlebar - widget = guiget('detachable_tabs') - widget.set_active(self.config['detachable_tabs']) - def set_layout(self, layout_name): """Set a layout""" self.layouteditor.set_layout(layout_name) @@ -805,6 +804,10 @@ class PrefsEditor: self.config['dbus'] = widget.get_active() self.config.save() + def on_detachable_tabs_toggled(self, widget): + self.config['detachable_tabs'] = widget.get_active() + self.config.save() + def on_disable_mousewheel_zoom_toggled(self, widget): """Ctrl+mousewheel zoom setting changed""" self.config['disable_mousewheel_zoom'] = widget.get_active() @@ -1877,10 +1880,6 @@ class PrefsEditor: """Open the fine manual""" self.term.key_help() - def on_detachable_tabs_toggled(self, widget): - self.config['detachable_tabs'] = widget.get_active() - self.config.save() - class LayoutEditor: profile_ids_to_profile = None profile_profile_to_ids = None From c1d9253acc8e29897947037269b17fe7c52080e0 Mon Sep 17 00:00:00 2001 From: Kacper Kowalski Date: Tue, 21 Feb 2023 11:04:37 +0100 Subject: [PATCH 18/50] Make inactive background brightness default 1.0 (100%) --- terminatorlib/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index a4c310e7..90f4a3ad 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -103,7 +103,7 @@ DEFAULTS = { 'custom_url_handler' : '', 'disable_real_transparency' : False, 'inactive_color_offset': 0.8, - 'inactive_bg_color_offset': 0.8, + 'inactive_bg_color_offset': 1.0, 'enabled_plugins' : ['LaunchpadBugURLHandler', 'LaunchpadCodeURLHandler', 'APTURLHandler'], From 066acd779ae14b3914617855159a1c8305eb6e1a Mon Sep 17 00:00:00 2001 From: Matthew Rose Date: Tue, 28 Feb 2023 21:42:29 -0500 Subject: [PATCH 19/50] Remove hack to ensure that focus is set. set_focus() should do the trick according to the docs, so let's just use that, and not go to extraordinary measures. --- terminatorlib/terminator.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 0a3f361b..509a0156 100644 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -346,22 +346,11 @@ class Terminator(Borg): t = 0 window.get_window().focus(t) - # Awful workaround to be sure that the last focused window is actually the one focused. - # Don't ask, don't tell policy on this. Even this is not 100% + # Going by the docs, this should be all that's needed to ensure that the + # last_active_window is focussed. if self.last_active_window: window = self.find_window_by_uuid(self.last_active_window.urn) - count = 0 - while count < 1000 and Gtk.events_pending(): - count += 1 - Gtk.main_iteration_do(False) - window.show() - window.grab_focus() - try: - t = GdkX11.x11_get_server_time(window.get_window()) - except (NameError,TypeError, AttributeError): - t = 0 - window.get_window().focus(t) - + window.set_focus() self.prelayout_windows = None def on_gtk_theme_name_notify(self, settings, prop): From ed763df3310ff64b073efc1bf59494da72d44eae Mon Sep 17 00:00:00 2001 From: Matthew Rose Date: Tue, 28 Feb 2023 22:22:57 -0500 Subject: [PATCH 20/50] Further fix to last_active_window --- terminatorlib/terminator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 509a0156..184bf12f 100644 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -350,6 +350,7 @@ class Terminator(Borg): # last_active_window is focussed. if self.last_active_window: window = self.find_window_by_uuid(self.last_active_window.urn) + window.present_with_time(0) window.set_focus() self.prelayout_windows = None From d6d9cce90cc01c4b1b75ff97f248cb3baab62f47 Mon Sep 17 00:00:00 2001 From: Matthew Rose Date: Tue, 28 Feb 2023 22:32:14 -0500 Subject: [PATCH 21/50] should not commit this late at night. --- terminatorlib/terminator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 184bf12f..0fb65660 100644 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -309,6 +309,7 @@ class Terminator(Borg): """Layout operations have finished, record that fact""" self.doing_layout = False maker = Factory() + t = 0 window_last_active_term_mapping = {} for window in self.windows: @@ -350,7 +351,7 @@ class Terminator(Borg): # last_active_window is focussed. if self.last_active_window: window = self.find_window_by_uuid(self.last_active_window.urn) - window.present_with_time(0) + window.present_with_time(t) window.set_focus() self.prelayout_windows = None From 9eaf0cbd6b9a28601a64127e2047f10dbf49dfa7 Mon Sep 17 00:00:00 2001 From: Matthew Rose Date: Wed, 1 Mar 2023 17:36:20 -0500 Subject: [PATCH 22/50] Release version 2.1.3 --- AUTHORS | 54 +++++++++++++--------- CHANGELOG.md | 79 ++++++++++++++++++++++++++++++--- terminatorlib/preferences.glade | 2 +- terminatorlib/version.py | 2 +- 4 files changed, 107 insertions(+), 30 deletions(-) diff --git a/AUTHORS b/AUTHORS index 5049df0b..952300ad 100644 --- a/AUTHORS +++ b/AUTHORS @@ -5,9 +5,8 @@ This list is generated from the GIT log. * Aaron Faanes * Adrian A * Alexey Sokolov -* amaan khan -* Andrea Corbellini * Andre Hilsendeger +* Andrea Corbellini * Andrew Felske * Antonio Terceiro * Antonio Terceiro @@ -17,11 +16,9 @@ This list is generated from the GIT log. * Brian Murray * Bruno Braga * Bryce Harrington -* caprinux <123jinkai@gmail.com> * Chacal * Chris James * Chris Jones -* coder * Cory Kontros * Daniel Napora * Daniel T Chen @@ -29,7 +26,6 @@ This list is generated from the GIT log. * David Levanon * David Sowder * Dennis Benzinger | SAP Hybris -* dkmvs <67212386+dkmvs@users.noreply.github.com> * Dmitry Soldatov * Douglas Bacon * Edoardo Batini @@ -37,7 +33,6 @@ This list is generated from the GIT log. * Emilien Klein * Emilio Pozuelo Monfort * Emmanuel Bretelle -* evandrocoan * Felix Mölder <56774350+Brambleberry4@users.noreply.github.com> * Fernando Basso * Filip Kilibarda @@ -54,63 +49,78 @@ This list is generated from the GIT log. * Jean-Sebastien Trottier * Joe Peled * Jonas L -* José Augusto * Jose Augusto * Jose I. Monreal -* judgedreads +* José Augusto * Juliano Fischer Naves * Julien Nicoulaud * Julien Thewys +* Kacper Kowalski * Kees Cook -* kocho1984 +* Kian-Meng Ang * Leandro Thimóteo * Lucian Adrian Grijincu * Mackenzie Morgan * Mark Timarev * Markus Frosch * Markus Korn -* Matthew Rose * Matt Rose -* milotype <43657314+milotype@users.noreply.github.com> +* Matthew Rose +* Mihai Babiac * MuhammadJivani * Nathan Handler * Nathaniel M. Beaver * Nathaniel Morck Beaver * Neal Fultz * Nicolas Valcárcel -* nojhan -* ozzdemir * Pavel Khlebovich +* Paweł Kotiuk <45544416+pktiuk@users.noreply.github.com> * Paweł Kotiuk * Peter B. Jørgensen * Peter Bjørn Jørgensen * Peter Lind * Phi -* planet36 * Przemek Wesolek +* R the Troublemaker <5971066+br0kenbuild@users.noreply.github.com> * Rafael Kitover * Roberto Aguilar -* robertoetcheverryr -* R the Troublemaker <5971066+br0kenbuild@users.noreply.github.com> * Ryan Fonnesbeck -* shiraeeshi * Siegfried-Angel Gevatter Pujals * Simeon Simeonov * Stephen Boddy * StephenPeringer -* thebigs * Thomas Hurst * Thomas Meire -* Tomek Sabała +* Tobias Farrenkopf * Tom Yan +* Tomek Sabała * Tony Baker +* Vishweshwar Saran Singh Deo * Vojtech Duchon (Ext) * Vulcalien * Vulcalien -* waldner -* xuezhixin * Yousof * Yusuf Güngör +* amaan khan +* caprinux <123jinkai@gmail.com> +* coder +* dkmvs <67212386+dkmvs@users.noreply.github.com> +* evandrocoan +* flaviosteimacher <39162591+flaviosteimacher@users.noreply.github.com> +* judgedreads +* kocho1984 +* milotype <43657314+milotype@users.noreply.github.com> +* nicbn +* nojhan +* ozzdemir +* planet36 +* robertoetcheverryr +* sabriunal +* shiraeeshi +* thebigs +* transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com> +* waldner +* xuezhixin ## Other contributors @@ -132,5 +142,7 @@ People that contributed to Terminator in other ways. * Maxim Derkach * Mats Henrikson * Nizar Kerkeni +* "Data" * Cristian Grada +* "zhuqin" * and many others. diff --git a/CHANGELOG.md b/CHANGELOG.md index 801befe2..e17cd5e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,70 @@ # Changelog +## [v2.1.3](https://github.com/gnome-terminator/terminator/tree/v2.1.3) (2023-03-01) + +[Full Changelog](https://github.com/gnome-terminator/terminator/compare/v2.1.2...v2.1.3) + +**Implemented enhancements:** + +- Option to set split ratio of terminals [\#708](https://github.com/gnome-terminator/terminator/issues/708) +- Add option to set given terminal to "read only" [\#649](https://github.com/gnome-terminator/terminator/issues/649) +- background image - respect ratio [\#644](https://github.com/gnome-terminator/terminator/issues/644) +- Shortcut for autosplit h/v depending on active terminal size [\#613](https://github.com/gnome-terminator/terminator/issues/613) +- Feature: Insert terminal name to terminal \(for broadcast\) [\#540](https://github.com/gnome-terminator/terminator/issues/540) +- Background image drawing modes and alignment [\#713](https://github.com/gnome-terminator/terminator/pull/713) ([Vulcalien](https://github.com/Vulcalien)) +- Zoom on notebook even if there is only one terminal in the tab + keep tab position and label in notebook rotation [\#589](https://github.com/gnome-terminator/terminator/pull/589) ([Vulcalien](https://github.com/Vulcalien)) + +**Fixed bugs:** + +- Resets the tab title on rotation [\#624](https://github.com/gnome-terminator/terminator/issues/624) +- - bug context menu \(right click\)-\>layouts-\>"Layout Name" always selec… [\#653](https://github.com/gnome-terminator/terminator/pull/653) ([vssdeo](https://github.com/vssdeo)) +- Fix missing icons when started with Ctrl-Alt-T [\#628](https://github.com/gnome-terminator/terminator/pull/628) ([MihaiBabiac](https://github.com/MihaiBabiac)) + +**Closed issues:** + +- Terminator not working with latest version of python-cairo [\#711](https://github.com/gnome-terminator/terminator/issues/711) +- \[Bug\]\[Fedora 36 KDE\]\[terminator v2.1.1\] "broadcast group" sends each terminal input/keystroke depending on the group's members count to everyone in the group [\#704](https://github.com/gnome-terminator/terminator/issues/704) +- reset\_clear doesn't show new prompt [\#703](https://github.com/gnome-terminator/terminator/issues/703) +- `-x`/`--execute` still broken [\#702](https://github.com/gnome-terminator/terminator/issues/702) +- Make unfocused terminal text transparent instead of blacker [\#694](https://github.com/gnome-terminator/terminator/issues/694) +- A translucent separation occurs between terminals [\#687](https://github.com/gnome-terminator/terminator/issues/687) +- \[2.1.2\] Foreground processes started in new window close immediately [\#673](https://github.com/gnome-terminator/terminator/issues/673) +- Is there a official page to maintain a offical/third-part plugin list? [\#668](https://github.com/gnome-terminator/terminator/issues/668) +- What happened to the change terminal titlebar under preferences? [\#664](https://github.com/gnome-terminator/terminator/issues/664) +- \[Feature Request\] - In the Context Menu\(Right-Click\) show keyboard shortcuts / accelarators [\#662](https://github.com/gnome-terminator/terminator/issues/662) +- terminator: error: unrecognized arguments [\#660](https://github.com/gnome-terminator/terminator/issues/660) +- Plugin Submission : SaveLastSessionLayout Uses Layout to Auto-Save Last session and CWD on Terminal Window Close [\#654](https://github.com/gnome-terminator/terminator/issues/654) +- Loading layout loads only the last added layout from context menu \(right click\) [\#652](https://github.com/gnome-terminator/terminator/issues/652) +- When can we expect a new release? [\#650](https://github.com/gnome-terminator/terminator/issues/650) +- Profiles for different Shells - is it possible? how does it work? [\#640](https://github.com/gnome-terminator/terminator/issues/640) +- Double input to broadcasted group [\#623](https://github.com/gnome-terminator/terminator/issues/623) +- background images only displaying on default profile [\#595](https://github.com/gnome-terminator/terminator/issues/595) +- The repository 'https://ppa.launchpadcontent.net/mattrose/terminator/ubuntu jammy Release' does not have a Release file. [\#594](https://github.com/gnome-terminator/terminator/issues/594) +- Increase the usage of augmented assignment statements [\#555](https://github.com/gnome-terminator/terminator/issues/555) + +**Merged pull requests:** + +- Better distinguishing of inactive windows from the active one, by changing the background brightness [\#709](https://github.com/gnome-terminator/terminator/pull/709) ([KKoovalsky](https://github.com/KKoovalsky)) +- Ctrl+Click on group button automatically creates groups whenever needed [\#691](https://github.com/gnome-terminator/terminator/pull/691) ([nicbn](https://github.com/nicbn)) +- \[bug 680\] Open up keybindings page on keypress \#680 [\#686](https://github.com/gnome-terminator/terminator/pull/686) ([vssdeo](https://github.com/vssdeo)) +- Translate '/po/terminator.pot' in 'pt\_BR' [\#684](https://github.com/gnome-terminator/terminator/pull/684) ([transifex-integration[bot]](https://github.com/apps/transifex-integration)) +- Plugin and Group menu item that inserts the name of the terminal. [\#683](https://github.com/gnome-terminator/terminator/pull/683) ([mattrose](https://github.com/mattrose)) +- Add Readonly toggle to popup menu [\#679](https://github.com/gnome-terminator/terminator/pull/679) ([mattrose](https://github.com/mattrose)) +- Fix argument handling of the --execute flag [\#678](https://github.com/gnome-terminator/terminator/pull/678) ([shawn-ogg](https://github.com/shawn-ogg)) +- Remove all ibus workarounds [\#674](https://github.com/gnome-terminator/terminator/pull/674) ([mattrose](https://github.com/mattrose)) +- \[bug 613\] - Shortcut for autosplit h/v depending on active terminal … [\#671](https://github.com/gnome-terminator/terminator/pull/671) ([vssdeo](https://github.com/vssdeo)) +- \[bug 662\] \[Feature Request\] - In the Context Menu\(Right-Click\) show k… [\#666](https://github.com/gnome-terminator/terminator/pull/666) ([vssdeo](https://github.com/vssdeo)) +- \[bug 559\] Add menu autocomplete \#559 [\#665](https://github.com/gnome-terminator/terminator/pull/665) ([vssdeo](https://github.com/vssdeo)) +- \[bug 662\] \[Feature Request\] - In the Context Menu\(Right-Click\) show k… [\#663](https://github.com/gnome-terminator/terminator/pull/663) ([vssdeo](https://github.com/vssdeo)) +- \[bug 654\] - Plugin Submission : SaveLastSessionLayout Uses Layout to … [\#661](https://github.com/gnome-terminator/terminator/pull/661) ([vssdeo](https://github.com/vssdeo)) +- Update terminal.py [\#659](https://github.com/gnome-terminator/terminator/pull/659) ([flaviosteimacher](https://github.com/flaviosteimacher)) +- docs: Change number of columns in repology badge [\#657](https://github.com/gnome-terminator/terminator/pull/657) ([pktiuk](https://github.com/pktiuk)) +- Plugin Submission : SaveLastSessionLayout Uses Layout to Auto-Save Last session and CWD [\#655](https://github.com/gnome-terminator/terminator/pull/655) ([vssdeo](https://github.com/vssdeo)) +- Fix typos [\#651](https://github.com/gnome-terminator/terminator/pull/651) ([kianmeng](https://github.com/kianmeng)) +- data: Remove GNOME branding [\#647](https://github.com/gnome-terminator/terminator/pull/647) ([sabriunal](https://github.com/sabriunal)) +- this line has an extra ';' symbol [\#632](https://github.com/gnome-terminator/terminator/pull/632) ([xuezhixin](https://github.com/xuezhixin)) +- Use the term 'zero padded' instead of 'padded'. [\#189](https://github.com/gnome-terminator/terminator/pull/189) ([phidebian](https://github.com/phidebian)) + ## [v2.1.2](https://github.com/gnome-terminator/terminator/tree/v2.1.2) (2022-10-19) [Full Changelog](https://github.com/gnome-terminator/terminator/compare/v2.1.1...v2.1.2) @@ -67,7 +132,7 @@ - Fix Keyboard Input [\#533](https://github.com/gnome-terminator/terminator/issues/533) - group broadcasting switched on/off for all groups [\#532](https://github.com/gnome-terminator/terminator/issues/532) - Drop a file from nautilus onto terminator window no longer works \(it used to paste the path a la gnome terminal\) [\#530](https://github.com/gnome-terminator/terminator/issues/530) -- Crash every time after encoding is changed to TCVN [\#529](https://github.com/gnome-terminator/terminator/issues/529) +- Crash everytime after encoding is changed to TCVN [\#529](https://github.com/gnome-terminator/terminator/issues/529) - Change the color of the current tab to highlight it better [\#522](https://github.com/gnome-terminator/terminator/issues/522) - Feature: Configuration to colorize split screens from default grey colour, Issue: Remove ability to select 0 and 1 handle\_size from configuration gui [\#518](https://github.com/gnome-terminator/terminator/issues/518) - Error when using "Insert Terminal Number" \(Solved?\) [\#517](https://github.com/gnome-terminator/terminator/issues/517) @@ -79,7 +144,7 @@ - terminator failing to open on ubuntu 21.04 [\#502](https://github.com/gnome-terminator/terminator/issues/502) - Monospace Bold isn't working [\#497](https://github.com/gnome-terminator/terminator/issues/497) - No prompt when closing terminator now, despite say vim running in terminal [\#496](https://github.com/gnome-terminator/terminator/issues/496) -- support for sixel graphics [\#492](https://github.com/gnome-terminator/terminator/issues/492) +- suppor for sixel graphics [\#492](https://github.com/gnome-terminator/terminator/issues/492) - which is deprecated and should not be used [\#488](https://github.com/gnome-terminator/terminator/issues/488) - could tmux Key bindings using in terminator? [\#474](https://github.com/gnome-terminator/terminator/issues/474) - Support OpenType font features [\#473](https://github.com/gnome-terminator/terminator/issues/473) @@ -148,7 +213,7 @@ - add parameters to remotinator split commands [\#472](https://github.com/gnome-terminator/terminator/pull/472) ([mattrose](https://github.com/mattrose)) - add switch\_profile\_all command to remotinator [\#471](https://github.com/gnome-terminator/terminator/pull/471) ([mattrose](https://github.com/mattrose)) - Set CAN\_FOCUS to False for notebook widgets [\#470](https://github.com/gnome-terminator/terminator/pull/470) ([marktimarev](https://github.com/marktimarev)) -- tell titlebar to start focused out if it does not have focus [\#462](https://github.com/gnome-terminator/terminator/pull/462) ([mattrose](https://github.com/mattrose)) +- tell titlebar to start focussed out if it does not have focus [\#462](https://github.com/gnome-terminator/terminator/pull/462) ([mattrose](https://github.com/mattrose)) - Update translation [\#460](https://github.com/gnome-terminator/terminator/pull/460) ([pktiuk](https://github.com/pktiuk)) - Add new plugin for opening current directory using right mouse button [\#459](https://github.com/gnome-terminator/terminator/pull/459) ([pktiuk](https://github.com/pktiuk)) - Fixed Issue \#425 \(hide\_window will try to show a destroyed window\) [\#456](https://github.com/gnome-terminator/terminator/pull/456) ([Vulcalien](https://github.com/Vulcalien)) @@ -199,7 +264,7 @@ - Background image not showing up on Xubuntu 20.04 [\#364](https://github.com/gnome-terminator/terminator/issues/364) - Pasted text is highlighted [\#363](https://github.com/gnome-terminator/terminator/issues/363) - \[FR\] Option to elide terminal title from the left [\#362](https://github.com/gnome-terminator/terminator/issues/362) -- Windows title are not updated after ssh session disconnected [\#359](https://github.com/gnome-terminator/terminator/issues/359) +- Windows title are not udpated after ssh session disconnected [\#359](https://github.com/gnome-terminator/terminator/issues/359) - No broadcast menu in sway [\#357](https://github.com/gnome-terminator/terminator/issues/357) - Remove spaces between tabs [\#331](https://github.com/gnome-terminator/terminator/issues/331) - Enhancement: Stjerm Layout Like Functionality [\#298](https://github.com/gnome-terminator/terminator/issues/298) @@ -244,7 +309,7 @@ - The Alt+L layout chooser is too small [\#345](https://github.com/gnome-terminator/terminator/issues/345) - Open in Previous Location [\#337](https://github.com/gnome-terminator/terminator/issues/337) - How to install terminator without root privilege? [\#332](https://github.com/gnome-terminator/terminator/issues/332) -- Improve separator between split terminals [\#329](https://github.com/gnome-terminator/terminator/issues/329) +- Improve separator between splitted terminals [\#329](https://github.com/gnome-terminator/terminator/issues/329) - Using shift+Super+} for next\_tab key binding doesn't work [\#326](https://github.com/gnome-terminator/terminator/issues/326) - "Copy email address" actually doesn't quite do that [\#323](https://github.com/gnome-terminator/terminator/issues/323) - Can`t disable key binding [\#322](https://github.com/gnome-terminator/terminator/issues/322) @@ -354,7 +419,7 @@ With pull request #70, we removed the need for gettext binaries and switched to **Closed issues:** -- Feature Suggestion: Split screen shells based on parent [\#230](https://github.com/gnome-terminator/terminator/issues/230) +- Feature Suggestion: Splitted screen shells based on parent [\#230](https://github.com/gnome-terminator/terminator/issues/230) - Release 2.0 does not have signed assets [\#228](https://github.com/gnome-terminator/terminator/issues/228) - Some files install to the wrong location [\#227](https://github.com/gnome-terminator/terminator/issues/227) - Multi tab breaks transparent background [\#225](https://github.com/gnome-terminator/terminator/issues/225) @@ -423,7 +488,7 @@ With pull request #70, we removed the need for gettext binaries and switched to - Selecting first char of a line for copy-paste is impossible [\#191](https://github.com/gnome-terminator/terminator/issues/191) - Duplicate Key Bindings are Allowed in `Preferences > Keybindings` [\#190](https://github.com/gnome-terminator/terminator/issues/190) - Cannot open terminator windows with different configs [\#184](https://github.com/gnome-terminator/terminator/issues/184) -- Feature request: re-enable broadcast keybindings and warn on their first use instead [\#183](https://github.com/gnome-terminator/terminator/issues/183) +- Feature request: reenable broadcast keybindings and warn on their first use instead [\#183](https://github.com/gnome-terminator/terminator/issues/183) - Add Terminator version in About screen [\#169](https://github.com/gnome-terminator/terminator/issues/169) - Feature Request: Add hyperlink support [\#164](https://github.com/gnome-terminator/terminator/issues/164) - ctrl-alt-a activates even when terminal has no focus [\#163](https://github.com/gnome-terminator/terminator/issues/163) diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index 8f9a33e2..04a8adce 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -4248,7 +4248,7 @@ True False - Version: 2.1.2 + Version: 2.1.3 False diff --git a/terminatorlib/version.py b/terminatorlib/version.py index c26d916a..e0aa5fcb 100644 --- a/terminatorlib/version.py +++ b/terminatorlib/version.py @@ -20,4 +20,4 @@ TerminatorVersion supplies our version number. """ APP_NAME = 'terminator' -APP_VERSION = '2.1.2' +APP_VERSION = '2.1.3' From 599b9b8bf4bf5480e2d63285b7a246bb9a590591 Mon Sep 17 00:00:00 2001 From: PF Date: Mon, 6 Mar 2023 22:25:27 -0400 Subject: [PATCH 23/50] Capitalize the first letter for "Read only" --- terminatorlib/terminal_popup_menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminal_popup_menu.py b/terminatorlib/terminal_popup_menu.py index 34e6a3fe..5f80d50c 100644 --- a/terminatorlib/terminal_popup_menu.py +++ b/terminatorlib/terminal_popup_menu.py @@ -262,7 +262,7 @@ class TerminalPopupMenu(object): menu.append(item) menu.append(Gtk.SeparatorMenuItem()) - item = self.menu_item(Gtk.CheckMenuItem, 'toggle_readonly', '_read only') + item = self.menu_item(Gtk.CheckMenuItem, 'toggle_readonly', '_Read only') item.set_active(not(terminal.vte.get_input_enabled())) item.connect('toggled', lambda x: terminal.do_readonly_toggle()) menu.append(item) From bb1ddf3ee5d37b328feb589691807d7c8995e23c Mon Sep 17 00:00:00 2001 From: magical-heyrovsky <101060148+magical-heyrovsky@users.noreply.github.com> Date: Tue, 7 Mar 2023 10:16:49 +0100 Subject: [PATCH 24/50] Fix typo in man page --- doc/terminator.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/terminator.1 b/doc/terminator.1 index 5d27afaa..1d716d9b 100644 --- a/doc/terminator.1 +++ b/doc/terminator.1 @@ -13,7 +13,7 @@ arrangements of GNOME terminals. It is aimed at those who normally arrange lots of terminals near each other, but don't want to use a frame based window manager. .SH "OPTIONS" -This program follow the usual GNU command line syntax, with long +This program follows the usual GNU command line syntax, with long options starting with two dashes (`\-'). A summary of options is included below. .TP From e4be854668d9554ab5ffdba1d0c75a35388b265c Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Wed, 8 Mar 2023 17:17:57 -0500 Subject: [PATCH 25/50] Fix context menu keybinding reading. When the keybinding for an action that also appears in the context menu is None, python can't do it's usual string tricks and throws a backtrace, and doesn't display the menu. --- terminatorlib/terminal_popup_menu.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminatorlib/terminal_popup_menu.py b/terminatorlib/terminal_popup_menu.py index 34e6a3fe..581a9ae1 100644 --- a/terminatorlib/terminal_popup_menu.py +++ b/terminatorlib/terminal_popup_menu.py @@ -30,6 +30,8 @@ class TerminalPopupMenu(object): def get_menu_item_mask(self, maskstr): mask = 0 + if maskstr is None: + return mask maskstr = maskstr.lower() if maskstr.find(''.lower()) >= 0: mask = mask | Gdk.ModifierType.SHIFT_MASK From d8852f1e5447c1dfe53b049bbb1f058ec988e819 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Sat, 11 Mar 2023 12:48:20 +0100 Subject: [PATCH 26/50] Do not remove focus from the last_active_window This caused all the new windows to be unfocused, forcing the user to manually focus one. The 'last_active_window' feature might be broken anyway. --- terminatorlib/terminator.py | 1 - 1 file changed, 1 deletion(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index bf0a4535..db3f465f 100644 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -355,7 +355,6 @@ class Terminator(Borg): if self.last_active_window: window = self.find_window_by_uuid(self.last_active_window.urn) window.present_with_time(t) - window.set_focus() self.prelayout_windows = None def on_gtk_theme_name_notify(self, settings, prop): From 41c9d344b4a598c7788828976573f3f9dd7c417b Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Wed, 22 Mar 2023 17:43:04 -0400 Subject: [PATCH 27/50] fix drag and drop --- terminatorlib/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 5add381b..914d69d7 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1694,7 +1694,7 @@ class Terminal(Gtk.VBox): def feed(self, text): """Feed the supplied text to VTE""" - self.vte.feed_child(text.encode()) + self.vte.feed_child(text) def zoom_in(self): """Increase the font size""" From cac4c9e45806fe67d97c6bd95ee46d4dc280b8ee Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Wed, 29 Mar 2023 23:59:38 +0200 Subject: [PATCH 28/50] Rewrite terminator.1 man page in AsciiDoc format --- doc/terminator.adoc | 310 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 310 insertions(+) create mode 100644 doc/terminator.adoc diff --git a/doc/terminator.adoc b/doc/terminator.adoc new file mode 100644 index 00000000..8f9dbf27 --- /dev/null +++ b/doc/terminator.adoc @@ -0,0 +1,310 @@ += Terminator(1) +:doctype: manpage +:manmanual: Manual for Terminator +:mansource: Terminator +:revdate: 2023-03-29 +:docdate: {revdate} + +== NAME +terminator - Multiple GNOME terminals in one window + +== SYNOPSIS +*terminator* [_options_] + +== DESCRIPTION +This manual page documents *Terminator*, a terminal emulator application. + +*Terminator* is a program that allows users to set up flexible +arrangements of GNOME terminals. It is aimed at those who normally +arrange lots of terminals near each other, but don't want to use a +frame based window manager. + +== OPTIONS +This program follows the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. + +*-h*, *--help*:: +Show summary of options. + +*-v*, *--version*:: +Show the version of the Terminator installation. + +*-m*, *-M*, *--maximise*, *--maximize*:: +Start with a maximised window. + +*-f*, *--fullscreen*:: +Start with a fullscreen window. + +*-b*, *--borderless*:: +Instruct the window manager not to render borders/decoration on the +Terminator window (this works well with --maximise). + +*-H*, *--hidden*:: +Hide the Terminator window by default. Its visibility can be toggled +with the *hide_window* keyboard shortcut (Ctrl+Shift+Alt+A by default). + +*-T* _FORCEDTITLE_, **--title**=__FORCEDTITLE__:: +Force the Terminator window to use a specific name rather than updating +it dynamically based on the wishes of the child shell. + +**--geometry**=__GEOMETRY__:: +Specify the preferred size and position of Terminator's window; +see *X*(7). + +*-e* _COMMAND_, **--command**=__COMMAND__:: +Run the specified command instead of the default shell or profile +specified command. + +Note: if Terminator is launched as x-terminal-emulator -e behaves like +-x, and the longform becomes --execute2=COMMAND. + +*-x* _COMMAND_ [__ARGS__], **--execute**=__COMMAND__ [__ARGS__]:: +Run *the rest of the command line* instead of the default shell or +profile specified command. + +**--working-directory**=__DIR__:: +Set the terminal's working directory. + +*-g* _FILE_, **--config**=__FILE__:: +Use the specified file for configuration. + +// TODO --config-json option + +*-r* _ROLE_, **--role**=__ROLE__:: +Set a custom WM_WINDOW_ROLE property on the window. + +*-l* _LAYOUT_, **--layout**=__LAYOUT__:: +Start Terminator with a specific layout. The argument here is the name +of a saved layout. + +*-s* _LAYOUT_, **--select-layout**=__LAYOUT__:: +Open the layout launcher window instead of the normal terminal. + +*-p*, **--profile**=__PROFILE__:: +Use a different profile as the default. + +*-i*, **--icon**=__FORCEDICON__:: +Set a custom icon for the window (by file or name) + +*-u*, *--no-dbus*:: +Disable DBus. +// Could 'Start Terminator with DBus disabled.' be better? + +*-d*, *--debug*:: +Enable debugging output (please use this when reporting bugs). This can +be specified twice to enable a built-in python debugging server. + +**--debug-classes**=__DEBUG_CLASSES__:: +If this is specified as a comma separated list, debugging output will +only be printed from the specified classes. + +**--debug-methods**=__DEBUG_METHODS__:: +If this is specified as a comma separated list, debugging output will +only be printed from the specified functions. If this is specified in +addition to --debug-classes, only the intersection of the two lists will +be displayed. + +*--new-tab*:: +If this is specified and Terminator is already running, DBus will be +used to spawn a new tab in the first Terminator window. + +== KEYBINDINGS +The following default keybindings can be used to control Terminator. +Most of these keybindings can be changed in the Preferences. + +*F1*:: +Launches the full HTML manual. + +=== Creation & Destruction +The following items relate to creating and destroying terminals. + +*Ctrl+Shift+O*:: +Split terminals H__o__rizontally. + +*Ctrl+Shift+E*:: +Split terminals V__e__rtically. + +*Ctrl+Shift+T*:: +Open new __t__ab. + +*Ctrl+Shift+I*:: +Open a new window. + +(Note: unlike in previous releases, this window is part of the same +Terminator process.) + +*Super+I*:: +Spawn a new Terminator process. + +*Alt+L*:: +Open __l__ayout launcher. + +*Ctrl+Shift+W*:: +Close the current terminal. + +*Ctrl+Shift+Q*:: +Close the current window. + +=== Navigation +The following items relate to moving between and around terminals. + +*Alt+Up*:: +Move to the terminal *above* the current one. + +*Alt+Down*:: +Move to the terminal *below* the current one. + +*Alt+Left*:: +Move to the terminal *left of* the current one. + +*Alt+Right*:: +Move to the terminal *right of* the current one. + +*Ctrl+PageDown*:: +Move to next Tab. + +*Ctrl+PageUp*:: +Move to previous Tab. + +*Ctrl+Shift+N* or *Ctrl+Tab*:: +Move to the __n__ext terminal within the same tab. + +If *cycle_term_tab* is *False*, cycle within the same tab will be +disabled. + +*Ctrl+Shift+P* or *Ctrl+Shift+Tab*:: +Move to the __p__revious terminal within the same tab. + +If *cycle_term_tab* is *False*, cycle within the same tab will be +disabled. + +=== Organisation +The following items relate to arranging and resizing terminals. + +*Ctrl+Shift+Right*:: +Move parent dragbar *Right*. + +*Ctrl+Shift+Left*:: +Move parent dragbar *Left*. + +*Ctrl+Shift+Up*:: +Move parent dragbar *Up*. + +*Ctrl+Shift+Down*:: +Move parent dragbar *Down*. + +*Super+R*:: +__R__otate terminals clockwise. + +*Super+Shift+R*:: +__R__otate terminals counter-clockwise. + +*Ctrl+Shift+PageDown*:: +Swap tab position with next Tab. + +*Ctrl+Shift+PageUp*:: +Swap tab position with previous Tab. + +*Drag and Drop*:: +The layout can be modified by moving terminals with Drag and Drop. +To start dragging a terminal, click and hold on its titlebar. +Alternatively, hold down *Ctrl*, click and hold the *right* mouse button. +Then, *+**Release Ctrl**+*. You can now drag the terminal to the point +in the layout you would like it to be. The zone where the terminal would +be inserted will be highlighted. + +=== Focus +The following items relate to helping to focus on a specific terminal. + +*F11*:: +Toggle window to fullscreen. + +*Ctrl+Shift+X*:: +Toggle between showing all terminals and only showing the current one +(maximise). + +*Ctrl+Shift+Z*:: +Toggle between showing all terminals and only showing a scaled version +of the current one (zoom). + +*Ctrl+Shift+Alt+A*:: +Hide the initial window. Note that this is a global binding, and can +only be bound once. + +=== Grouping & Broadcasting +The following items relate to grouping and broadcasting. + +*Super+T*:: +Group all terminals in the current tab so that any input sent to one of +them goes to all of them. + +*Super+Shift+T*:: +Remove grouping from all terminals in the current tab. + +*Super+G*:: +Group all terminals so that any input sent to one of them goes to all of +them. + +*Super+Shift+G*:: +Remove grouping from all terminals. + +*Alt+A*:: +Broadcast to __a__ll terminals. + +*Alt+G*:: +Broadcast to __g__rouped terminals. + +*Alt+O*:: +Broadcast __o__ff. + +=== Miscellaneous +The following items relate to miscellaneous terminal related functions. + +*Ctrl+Shift+C*:: +Copy selected text to clipboard. + +*Ctrl+Shift+V*:: +Paste clipboard text. + +*Ctrl+Shift+S*:: +Hide/Show __S__crollbar. + +*Ctrl+Shift+F*:: +Search within terminal scrollback. + +*Ctrl+Shift+R*:: +Reset terminal state. + +*Ctrl+Shift+G*:: +Reset terminal state and clear window. + +*Ctrl+Plus (+)*:: +Increase font size. + +Note: this may require you to press shift, depending on your keyboard. + +*Ctrl+Minus (-)*:: +Decrease font size. + +Note: this may require you to press shift, depending on your keyboard. + +*Ctrl+Zero (0)*:: +Restore font size to original setting. + +*Ctrl+Alt+W*:: +Rename window title. + +*Ctrl+Alt+A*:: +Rename tab title. + +*Ctrl+Alt+X*:: +Rename terminal title. + +*Super+1*:: +Insert terminal number, i.e. 1 to 12. + +*Super+0*:: +Insert padded terminal number, i.e. 01 to 12. + +== SEE ALSO +*terminator_config*(5) + +== AUTHOR +Terminator was written by Chris Jones <\cmsj@tenshu.net> and others. + +This manual page was written by Chris Jones <\cmsj@tenshu.net> and others. From dd075a243dac17addbe735f0ca5a6a33e831d671 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Fri, 31 Mar 2023 01:04:51 +0200 Subject: [PATCH 29/50] Minor improvements to terminator.adoc 1. Decapitalize some words 2. Replace 'Hide/Show' with 'Toggle' 3. Replace 'AUTHOR' with 'AUTHORS' 4. Move the 'SEE ALSO' section to the bottom --- doc/terminator.adoc | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/doc/terminator.adoc b/doc/terminator.adoc index 8f9dbf27..806c3649 100644 --- a/doc/terminator.adoc +++ b/doc/terminator.adoc @@ -2,11 +2,11 @@ :doctype: manpage :manmanual: Manual for Terminator :mansource: Terminator -:revdate: 2023-03-29 +:revdate: 2023-03-30 :docdate: {revdate} == NAME -terminator - Multiple GNOME terminals in one window +terminator - multiple GNOME terminals in one window == SYNOPSIS *terminator* [_options_] @@ -160,10 +160,10 @@ Move to the terminal *left of* the current one. Move to the terminal *right of* the current one. *Ctrl+PageDown*:: -Move to next Tab. +Move to next tab. *Ctrl+PageUp*:: -Move to previous Tab. +Move to previous tab. *Ctrl+Shift+N* or *Ctrl+Tab*:: Move to the __n__ext terminal within the same tab. + @@ -179,16 +179,16 @@ disabled. The following items relate to arranging and resizing terminals. *Ctrl+Shift+Right*:: -Move parent dragbar *Right*. +Move parent dragbar *right*. *Ctrl+Shift+Left*:: -Move parent dragbar *Left*. +Move parent dragbar *left*. *Ctrl+Shift+Up*:: -Move parent dragbar *Up*. +Move parent dragbar *up*. *Ctrl+Shift+Down*:: -Move parent dragbar *Down*. +Move parent dragbar *down*. *Super+R*:: __R__otate terminals clockwise. @@ -197,16 +197,16 @@ __R__otate terminals clockwise. __R__otate terminals counter-clockwise. *Ctrl+Shift+PageDown*:: -Swap tab position with next Tab. +Swap tab position with next tab. *Ctrl+Shift+PageUp*:: -Swap tab position with previous Tab. +Swap tab position with previous tab. *Drag and Drop*:: The layout can be modified by moving terminals with Drag and Drop. To start dragging a terminal, click and hold on its titlebar. Alternatively, hold down *Ctrl*, click and hold the *right* mouse button. -Then, *+**Release Ctrl**+*. You can now drag the terminal to the point +Then, *+**release Ctrl**+*. You can now drag the terminal to the point in the layout you would like it to be. The zone where the terminal would be inserted will be highlighted. @@ -264,7 +264,7 @@ Copy selected text to clipboard. Paste clipboard text. *Ctrl+Shift+S*:: -Hide/Show __S__crollbar. +Toggle __s__crollbar. *Ctrl+Shift+F*:: Search within terminal scrollback. @@ -301,10 +301,10 @@ Insert terminal number, i.e. 1 to 12. *Super+0*:: Insert padded terminal number, i.e. 01 to 12. -== SEE ALSO -*terminator_config*(5) - -== AUTHOR +== AUTHORS Terminator was written by Chris Jones <\cmsj@tenshu.net> and others. This manual page was written by Chris Jones <\cmsj@tenshu.net> and others. + +== SEE ALSO +*terminator_config*(5) From 1ce3d500695183e92ab230a159c74bbd1eda9781 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Fri, 31 Mar 2023 01:17:22 +0200 Subject: [PATCH 30/50] Generate terminator.1 from terminator.adoc using asciidoctor --- doc/terminator.1 | 689 ++++++++++++++++++++++++++++++----------------- 1 file changed, 442 insertions(+), 247 deletions(-) diff --git a/doc/terminator.1 b/doc/terminator.1 index 1d716d9b..4d3591fe 100644 --- a/doc/terminator.1 +++ b/doc/terminator.1 @@ -1,286 +1,481 @@ -.TH "TERMINATOR" "1" "Jan 5, 2008" "" "" +'\" t +.\" Title: terminator +.\" Author: [see the "AUTHOR(S)" section] +.\" Generator: Asciidoctor 2.0.18 +.\" Date: 2023-03-30 +.\" Manual: Manual for Terminator +.\" Source: Terminator +.\" Language: English +.\" +.TH "TERMINATOR" "1" "2023-03-30" "Terminator" "Manual for Terminator" +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.ss \n[.ss] 0 +.nh +.ad l +.de URL +\fI\\$2\fP <\\$1>\\$3 +.. +.als MTO URL +.if \n[.g] \{\ +. mso www.tmac +. am URL +. ad l +. . +. am MTO +. ad l +. . +. LINKSTYLE blue R < > +.\} .SH "NAME" -Terminator \- Multiple GNOME terminals in one window +terminator \- multiple GNOME terminals in one window .SH "SYNOPSIS" -.B terminator -.RI [ options ] -.br +.sp +\fBterminator\fP [\fIoptions\fP] .SH "DESCRIPTION" +.sp This manual page documents \fBTerminator\fP, a terminal emulator application. -.PP +.sp \fBTerminator\fP is a program that allows users to set up flexible arrangements of GNOME terminals. It is aimed at those who normally -arrange lots of terminals near each other, but don't want to use a +arrange lots of terminals near each other, but don\(cqt want to use a frame based window manager. .SH "OPTIONS" +.sp This program follows the usual GNU command line syntax, with long -options starting with two dashes (`\-'). +options starting with two dashes (`\-\*(Aq). A summary of options is included below. -.TP -.B \-h, \-\-help -Show summary of options -.TP -.B \-v, \-\-version -Show the version of the Terminator installation -.TP -.B \-m, \-\-maximise -Start with a maximised window -.B \-M, \-\-maximize -Start with a maximized window -.TP -.B \-f, \-\-fullscreen -Start with a fullscreen window -.TP -.B \-b, \-\-borderless +.sp +\fB\-h\fP, \fB\-\-help\fP +.RS 4 +Show summary of options. +.RE +.sp +\fB\-v\fP, \fB\-\-version\fP +.RS 4 +Show the version of the Terminator installation. +.RE +.sp +\fB\-m\fP, \fB\-M\fP, \fB\-\-maximise\fP, \fB\-\-maximize\fP +.RS 4 +Start with a maximised window. +.RE +.sp +\fB\-f\fP, \fB\-\-fullscreen\fP +.RS 4 +Start with a fullscreen window. +.RE +.sp +\fB\-b\fP, \fB\-\-borderless\fP +.RS 4 Instruct the window manager not to render borders/decoration on the -Terminator window (this works well with \-m) -.TP -.B \-H, \-\-hidden +Terminator window (this works well with \-\-maximise). +.RE +.sp +\fB\-H\fP, \fB\-\-hidden\fP +.RS 4 Hide the Terminator window by default. Its visibility can be toggled -with the \fBhide_window\fR keyboard shortcut (Ctrl-Shift-Alt-a by default) -.TP -.B \-T, \-\-title -Force the Terminator window to use a specific name rather than updating it dynamically -based on the wishes of the child shell. -.TP -.B \-\-geometry=GEOMETRY -Specifies the preferred size and position of Terminator's window; see X(7). -.TP -.B \-e, \-\-command=COMMAND -Runs the specified command instead of your default shell or profile specified command. Note: if -Terminator is launched as x-terminal-emulator \-e behaves like \-x, and the longform becomes -\-\-execute2=COMMAND -.TP -.B \-x, \-\-execute COMMAND [ARGS] -Runs \fBthe rest of the command line\fR instead of your default shell or profile specified command. -.TP -.B \-\-working\-directory=DIR -Set the terminal's working directory -.TP -.B \-g, \-\-config FILE -Use the specified FILE for configuration -.TP -.B \-r, \-\-role=ROLE -Set a custom WM_WINDOW_ROLE property on the window -.TP -.B \-l, \-\-layout=LAYOUT +with the \fBhide_window\fP keyboard shortcut (Ctrl+Shift+Alt+A by default). +.RE +.sp +\fB\-T\fP \fIFORCEDTITLE\fP, \fB\-\-title\fP=\fIFORCEDTITLE\fP +.RS 4 +Force the Terminator window to use a specific name rather than updating +it dynamically based on the wishes of the child shell. +.RE +.sp +\fB\-\-geometry\fP=\fIGEOMETRY\fP +.RS 4 +Specify the preferred size and position of Terminator\(cqs window; +see \fBX\fP(7). +.RE +.sp +\fB\-e\fP \fICOMMAND\fP, \fB\-\-command\fP=\fICOMMAND\fP +.RS 4 +Run the specified command instead of the default shell or profile +specified command. +.br +Note: if Terminator is launched as x\-terminal\-emulator \-e behaves like +\-x, and the longform becomes \-\-execute2=COMMAND. +.RE +.sp +\fB\-x\fP \fICOMMAND\fP [\fIARGS\fP], \fB\-\-execute\fP=\fICOMMAND\fP [\fIARGS\fP] +.RS 4 +Run \fBthe rest of the command line\fP instead of the default shell or +profile specified command. +.RE +.sp +\fB\-\-working\-directory\fP=\fIDIR\fP +.RS 4 +Set the terminal\(cqs working directory. +.RE +.sp +\fB\-g\fP \fIFILE\fP, \fB\-\-config\fP=\fIFILE\fP +.RS 4 +Use the specified file for configuration. +.RE +.sp +\fB\-r\fP \fIROLE\fP, \fB\-\-role\fP=\fIROLE\fP +.RS 4 +Set a custom WM_WINDOW_ROLE property on the window. +.RE +.sp +\fB\-l\fP \fILAYOUT\fP, \fB\-\-layout\fP=\fILAYOUT\fP +.RS 4 Start Terminator with a specific layout. The argument here is the name of a saved layout. -.TP -.B \-s, \-\-select-layout=LAYOUT +.RE +.sp +\fB\-s\fP \fILAYOUT\fP, \fB\-\-select\-layout\fP=\fILAYOUT\fP +.RS 4 Open the layout launcher window instead of the normal terminal. -.TP -.B \-p, \-\-profile=PROFILE -Use a different profile as the default -.TP -.B \-i, \-\-icon=FORCEDICON +.RE +.sp +\fB\-p\fP, \fB\-\-profile\fP=\fIPROFILE\fP +.RS 4 +Use a different profile as the default. +.RE +.sp +\fB\-i\fP, \fB\-\-icon\fP=\fIFORCEDICON\fP +.RS 4 Set a custom icon for the window (by file or name) -.TP -.B \-u, \-\-no-dbus -Disable DBus -.TP -.B \-d, \-\-debug -Enable debugging output (please use this when reporting bugs). This -can be specified twice to enable a built-in python debugging server. -.TP -.B \-\-debug\-classes=DEBUG_CLASSES +.RE +.sp +\fB\-u\fP, \fB\-\-no\-dbus\fP +.RS 4 +Disable DBus. +.RE +.sp +\fB\-d\fP, \fB\-\-debug\fP +.RS 4 +Enable debugging output (please use this when reporting bugs). This can +be specified twice to enable a built\-in python debugging server. +.RE +.sp +\fB\-\-debug\-classes\fP=\fIDEBUG_CLASSES\fP +.RS 4 If this is specified as a comma separated list, debugging output will only be printed from the specified classes. -.TP -.B \-\-debug\-methods=DEBUG_METHODS +.RE +.sp +\fB\-\-debug\-methods\fP=\fIDEBUG_METHODS\fP +.RS 4 If this is specified as a comma separated list, debugging output will only be printed from the specified functions. If this is specified in -addition to \-\-debug-classes, only the intersection of the two lists -will be displayed -.TP -.B \-\-new-tab +addition to \-\-debug\-classes, only the intersection of the two lists will +be displayed. +.RE +.sp +\fB\-\-new\-tab\fP +.RS 4 If this is specified and Terminator is already running, DBus will be used to spawn a new tab in the first Terminator window. +.RE .SH "KEYBINDINGS" -The following default keybindings can be used to control Terminator: -.TP -.B F1 +.sp +The following default keybindings can be used to control Terminator. +Most of these keybindings can be changed in the Preferences. +.sp +\fBF1\fP +.RS 4 Launches the full HTML manual. -.SS Creation & Destruction -.PP +.RE +.SS "Creation & Destruction" +.sp The following items relate to creating and destroying terminals. -.TP -.B Ctrl+Shift+O -Split terminals H\fBo\fRrizontally. -.TP -.B Ctrl+Shift+E -Split terminals V\fBe\fRrtically. -.TP -.B Ctrl+Shift+T -Open new \fBt\fRab. -.TP -.B Ctrl+Shift+I -Open a new window. (Note: Unlike in previous releases, this window is -part of the same Terminator process.) -.TP -.B Super+I +.sp +\fBCtrl+Shift+O\fP +.RS 4 +Split terminals H\fIo\fPrizontally. +.RE +.sp +\fBCtrl+Shift+E\fP +.RS 4 +Split terminals V\fIe\fPrtically. +.RE +.sp +\fBCtrl+Shift+T\fP +.RS 4 +Open new \fIt\fPab. +.RE +.sp +\fBCtrl+Shift+I\fP +.RS 4 +Open a new window. +.br +(Note: unlike in previous releases, this window is part of the same +Terminator process.) +.RE +.sp +\fBSuper+I\fP +.RS 4 Spawn a new Terminator process. -.TP -.B Alt+L -Open \fBl\fRayout launcher. -.TP -.B Ctrl+Shift+W +.RE +.sp +\fBAlt+L\fP +.RS 4 +Open \fIl\fPayout launcher. +.RE +.sp +\fBCtrl+Shift+W\fP +.RS 4 Close the current terminal. -.TP -.B Ctrl+Shift+Q +.RE +.sp +\fBCtrl+Shift+Q\fP +.RS 4 Close the current window. -.SS Navigation -.PP +.RE +.SS "Navigation" +.sp The following items relate to moving between and around terminals. -.TP -.B Alt+Up -Move to the terminal \fBabove\fR the current one. -.TP -.B Alt+Down -Move to the terminal \fBbelow\fR the current one. -.TP -.B Alt+Left -Move to the terminal \fBleft of\fR the current one. -.TP -.B Alt+Right -Move to the terminal \fBright of\fR the current one. -.TP -.B Ctrl+PageDown -Move to next Tab. -.TP -.B Ctrl+PageUp -Move to previous Tab. -.TP -.B Ctrl+Shift+N or Ctrl+Tab -Move to \fBn\fRext terminal within the same tab, use Ctrl+PageDown to move to the next tab. -If \fBcycle_term_tab\fR is \fBFalse\fR, cycle within the same tab will be disabled. -.TP -.B Ctrl+Shift+P or Ctrl+Shift+Tab -Move to \fBp\fRrevious terminal within the same tab, use Ctrl+PageUp to move to the previous tab. -If \fBcycle_term_tab\fR is \fBFalse\fR, cycle within the same tab will be disabled. -.SS Organisation -.PP +.sp +\fBAlt+Up\fP +.RS 4 +Move to the terminal \fBabove\fP the current one. +.RE +.sp +\fBAlt+Down\fP +.RS 4 +Move to the terminal \fBbelow\fP the current one. +.RE +.sp +\fBAlt+Left\fP +.RS 4 +Move to the terminal \fBleft of\fP the current one. +.RE +.sp +\fBAlt+Right\fP +.RS 4 +Move to the terminal \fBright of\fP the current one. +.RE +.sp +\fBCtrl+PageDown\fP +.RS 4 +Move to next tab. +.RE +.sp +\fBCtrl+PageUp\fP +.RS 4 +Move to previous tab. +.RE +.sp +\fBCtrl+Shift+N\fP or \fBCtrl+Tab\fP +.RS 4 +Move to the \fIn\fPext terminal within the same tab. +.br +If \fBcycle_term_tab\fP is \fBFalse\fP, cycle within the same tab will be +disabled. +.RE +.sp +\fBCtrl+Shift+P\fP or \fBCtrl+Shift+Tab\fP +.RS 4 +Move to the \fIp\fPrevious terminal within the same tab. +.br +If \fBcycle_term_tab\fP is \fBFalse\fP, cycle within the same tab will be +disabled. +.RE +.SS "Organisation" +.sp The following items relate to arranging and resizing terminals. -.TP -.B Ctrl+Shift+Right -Move parent dragbar \fBRight\fR. -.TP -.B Ctrl+Shift+Left -Move parent dragbar \fBLeft\fR. -.TP -.B Ctrl+Shift+Up -Move parent dragbar \fBUp\fR. -.TP -.B Ctrl+Shift+Down -Move parent dragbar \fBDown\fR. -.TP -.B Super+R -\fBR\fRotate terminals clockwise. -.TP -.B Super+Shift+R -\fBR\fRotate terminals counter-clockwise. -.TP -.SH "Drag and Drop" +.sp +\fBCtrl+Shift+Right\fP +.RS 4 +Move parent dragbar \fBright\fP. +.RE +.sp +\fBCtrl+Shift+Left\fP +.RS 4 +Move parent dragbar \fBleft\fP. +.RE +.sp +\fBCtrl+Shift+Up\fP +.RS 4 +Move parent dragbar \fBup\fP. +.RE +.sp +\fBCtrl+Shift+Down\fP +.RS 4 +Move parent dragbar \fBdown\fP. +.RE +.sp +\fBSuper+R\fP +.RS 4 +\fIR\fPotate terminals clockwise. +.RE +.sp +\fBSuper+Shift+R\fP +.RS 4 +\fIR\fPotate terminals counter\-clockwise. +.RE +.sp +\fBCtrl+Shift+PageDown\fP +.RS 4 +Swap tab position with next tab. +.RE +.sp +\fBCtrl+Shift+PageUp\fP +.RS 4 +Swap tab position with previous tab. +.RE +.sp +\fBDrag and Drop\fP +.RS 4 The layout can be modified by moving terminals with Drag and Drop. To start dragging a terminal, click and hold on its titlebar. Alternatively, hold down \fBCtrl\fP, click and hold the \fBright\fP mouse button. -Then, \fB**Release Ctrl**\fP. You can now drag the terminal to the point in the layout you would like it to be. -The zone where the terminal would be inserted will be highlighted. -.TP -.B Ctrl+Shift+PageDown -Swap tab position with next Tab. -.TP -.B Ctrl+Shift+PageUp -Swap tab position with previous Tab. -.SS Miscellaneous -.PP -The following items relate to miscellaneous terminal related functions. -.TP -.B Ctrl+Shift+C -Copy selected text to clipboard. -.TP -.B Ctrl+Shift+V -Paste clipboard text. -.TP -.B Ctrl+Shift+S -Hide/Show \fBS\fRcrollbar. -.TP -.B Ctrl+Shift+F -Search within terminal scrollback. -.TP -.B Ctrl+Shift+R -Reset terminal state. -.TP -.B Ctrl+Shift+G -Reset terminal state and clear window. -.TP -.B Ctrl+Plus (+) -Increase font size. \fBNote:\fP This may require you to press shift, depending on your keyboard. -.TP -.B Ctrl+Minus (-) -Decrease font size. \fBNote:\fP This may require you to press shift, depending on your keyboard. -.TP -.B Ctrl+Zero (0) -Restore font size to original setting. -.TP -.B Ctrl+Alt+W -Rename window title. -.TP -.B Ctrl+Alt+A -Rename tab title. -.TP -.B Ctrl+Alt+X -Rename terminal title. -.TP -.B Super+1 -Insert terminal number, i.e. 1 to 12. -.TP -.B Super+0 -Insert padded terminal number, i.e. 01 to 12. -.SS Grouping & Broadcasting -.PP +Then, \fB**release Ctrl**\fP. You can now drag the terminal to the point +in the layout you would like it to be. The zone where the terminal would +be inserted will be highlighted. +.RE +.SS "Focus" +.sp The following items relate to helping to focus on a specific terminal. -.TP -.B F11 +.sp +\fBF11\fP +.RS 4 Toggle window to fullscreen. -.TP -.B Ctrl+Shift+X -Toggle between showing all terminals and only showing the current one (maximise). -.TP -.B Ctrl+Shift+Z -Toggle between showing all terminals and only showing a scaled version of the current one (zoom). -.TP -.B Ctrl+Shift+Alt+A -Hide the initial window. Note that this is a global binding, and can only be bound once. -.PP +.RE +.sp +\fBCtrl+Shift+X\fP +.RS 4 +Toggle between showing all terminals and only showing the current one +(maximise). +.RE +.sp +\fBCtrl+Shift+Z\fP +.RS 4 +Toggle between showing all terminals and only showing a scaled version +of the current one (zoom). +.RE +.sp +\fBCtrl+Shift+Alt+A\fP +.RS 4 +Hide the initial window. Note that this is a global binding, and can +only be bound once. +.RE +.SS "Grouping & Broadcasting" +.sp The following items relate to grouping and broadcasting. -.TP -.B Super+T -Group all terminals in the current tab so input sent to one of them, goes to all terminals in the current tab. -.TP -.B Super+Shift+T +.sp +\fBSuper+T\fP +.RS 4 +Group all terminals in the current tab so that any input sent to one of +them goes to all of them. +.RE +.sp +\fBSuper+Shift+T\fP +.RS 4 Remove grouping from all terminals in the current tab. -.TP -.B Super+G -Group all terminals so that any input sent to one of them, goes to all of them. -.TP -.B Super+Shift+G +.RE +.sp +\fBSuper+G\fP +.RS 4 +Group all terminals so that any input sent to one of them goes to all of +them. +.RE +.sp +\fBSuper+Shift+G\fP +.RS 4 Remove grouping from all terminals. -.TP -.B Alt+A -Broadcast to All terminals. -.TP -.B Alt+G -Broadcast to Grouped terminals. -.TP -.B Alt+O -Broadcast Off. -.PP -Most of these keybindings are changeable in the Preferences. -.SH "SEE ALSO" -.BR terminator_config(5) -.SH "AUTHOR" +.RE +.sp +\fBAlt+A\fP +.RS 4 +Broadcast to \fIa\fPll terminals. +.RE +.sp +\fBAlt+G\fP +.RS 4 +Broadcast to \fIg\fProuped terminals. +.RE +.sp +\fBAlt+O\fP +.RS 4 +Broadcast \fIo\fPff. +.RE +.SS "Miscellaneous" +.sp +The following items relate to miscellaneous terminal related functions. +.sp +\fBCtrl+Shift+C\fP +.RS 4 +Copy selected text to clipboard. +.RE +.sp +\fBCtrl+Shift+V\fP +.RS 4 +Paste clipboard text. +.RE +.sp +\fBCtrl+Shift+S\fP +.RS 4 +Toggle \fIs\fPcrollbar. +.RE +.sp +\fBCtrl+Shift+F\fP +.RS 4 +Search within terminal scrollback. +.RE +.sp +\fBCtrl+Shift+R\fP +.RS 4 +Reset terminal state. +.RE +.sp +\fBCtrl+Shift+G\fP +.RS 4 +Reset terminal state and clear window. +.RE +.sp +\fBCtrl+Plus (+)\fP +.RS 4 +Increase font size. +.br +Note: this may require you to press shift, depending on your keyboard. +.RE +.sp +\fBCtrl+Minus (\-)\fP +.RS 4 +Decrease font size. +.br +Note: this may require you to press shift, depending on your keyboard. +.RE +.sp +\fBCtrl+Zero (0)\fP +.RS 4 +Restore font size to original setting. +.RE +.sp +\fBCtrl+Alt+W\fP +.RS 4 +Rename window title. +.RE +.sp +\fBCtrl+Alt+A\fP +.RS 4 +Rename tab title. +.RE +.sp +\fBCtrl+Alt+X\fP +.RS 4 +Rename terminal title. +.RE +.sp +\fBSuper+1\fP +.RS 4 +Insert terminal number, i.e. 1 to 12. +.RE +.sp +\fBSuper+0\fP +.RS 4 +Insert padded terminal number, i.e. 01 to 12. +.RE +.SH "AUTHORS" +.sp Terminator was written by Chris Jones and others. -.PP -This manual page was written by Chris Jones -and others. +.sp +This manual page was written by Chris Jones and others. +.SH "SEE ALSO" +.sp +\fBterminator_config\fP(5) \ No newline at end of file From 8847d635f6ae16b72fe19a2bc48fbea65ace2a97 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Fri, 31 Mar 2023 16:58:52 +0200 Subject: [PATCH 31/50] Begin working on terminator_config.adoc --- doc/terminator_config.adoc | 228 +++++++++++++++++++++++++++++++++++++ 1 file changed, 228 insertions(+) create mode 100644 doc/terminator_config.adoc diff --git a/doc/terminator_config.adoc b/doc/terminator_config.adoc new file mode 100644 index 00000000..70ba3fd8 --- /dev/null +++ b/doc/terminator_config.adoc @@ -0,0 +1,228 @@ += Terminator_config(5) +:doctype: manpage +:manmanual: Manual for Terminator +:mansource: Terminator +:revdate: 2023-03-31 +:docdate: {revdate} + +== NAME +// ~/.config/terminator/config - the config file for Terminator terminal emulator +config - TODO + +== DESCRIPTION +This file contains the configuration for *terminator*(1). +Terminator manages its configuration file via the ConfigObj library to +combine flexibility with clear, human editable files. + +Terminator offers a full GUI preferences editor which automatically +saves its config file so you don't need to write a config file by hand. + +== FILE LOCATION +Normally the config file will be *~/.config/terminator/config*, but it +may be overridden with *$XDG_CONFIG_HOME* (in which case it will be +*$XDG_CONFIG_HOME/terminator/config*). + +== FILE FORMAT +This is what a Terminator config file should look like: + +TODO + +== global_config +These are the options Terminator currently supports in the +*global_config* section: + +=== Window Behavior & Appearance + +// --- Window behavior --- + +*window_state* = _string_:: +Default value: *normal* + +Control how the Terminator window opens. +'normal' means it opens normally. +'maximise' means it opens in a maximised state. +'fullscreen' means it opens in a fullscreen state. +'hidden' means it stays hidden. + +*always_on_top* = _boolean_:: +Default value: *False* + +TODO + +*sticky* = _boolean_:: +Default value: *False* + +TODO + +*hide_on_lose_focus* = _boolean_:: +Default value: *False* + +TODO + +*hide_from_taskbar* = _boolean_:: +Default value: *False* + +TODO + +*geometry_hinting* = _boolean_:: +Default value: *False* + +If True the window will resize in step with font sizes, if False it will +follow pixels. + +*suppress_multiple_term_dialog* = _boolean_:: +Default value: *False* + +TODO + +// --- Window appearance --- + +*borderless* = _boolean_:: +Default value: *False* + +Control whether the Terminator window will be started without window +borders. + +=== Tab Behavior & Appearance + +*tab_position* = _string_:: +Default value: *top* + +Specify where tabs are placed. +Can be any of: 'top', 'left', 'right', 'bottom', 'hidden'. +If this is set to 'hidden', the tab bar will not be shown. Hiding the +tab is not recommended, as it can be very confusing. + +*close_button_on_tab* = _boolean_:: +Default value: : *True* + +If set to True, tabs will have a close button on them. + +// what is this??? +*scroll_tabbar* = _boolean_:: +Default value: *False* + +If set to True, the tab bar will not fill the width of the window. +The titlebars of the tabs will only take as much space as is necessary +for the text they contain. Except, that is, if the tabs no longer fit +the width of the window - in that case scroll buttons will appear to +move through the tabs. + +*homogeneous_tabbar* = _boolean_:: +Default value: *True* + +TODO + +=== Terminal Behavior & Appearance + +// --- Terminal behavior --- + +*focus* = _string_:: +Default value: *click* + +Control how focus is given to terminals. +'click' means the focus only moves to a terminal after you click in it. +'sloppy' means the focus will follow the mouse pointer. +'system' means the focus will match that used by a GNOME window manager. + +*always_split_with_profile* = _boolean_:: +Default value: *False* + +Control whether splits/tabs will continue to use the profile of their +peer terminal. If set to False, they will always use the default profile. + +*link_single_click* = _boolean_:: +Default value: *False* + +TODO + +// --- Copy & Paste behavior --- + +*putty_paste_style* = _boolean_:: +Default value: *False* + +If set to True, right-click will paste the Primary selection, +while middle-click will popup the context menu. + +*putty_paste_style_source_clipboard* = _boolean_:: +Default value: *False* + +TODO + +*disable_mouse_paste* = _boolean_:: +Default value: *False* + +TODO + +*smart_copy* = _boolean_:: +Default value: *True* + +If set to True, and there is no selection, the shortcut is allowed to +pass through. This is useful for overloading Ctrl-C to copy a selection, +or send the SIGINT to the current process if there is no selection. +If False, the shortcut does not pass through at all, and the SIGINT does +not get sent. + +*clear_select_on_copy* = _boolean_:: +Default value: *False* + +TODO + +// --- Terminal appearance --- + +*handle_size* = _integer_:: +Default value: *1* + +Control the width of the separator between terminals. +Anything outside the range 0-20 (inclusive) will be ignored and use your +default theme value. + +*inactive_color_offset* = _float_:: +Default value: *0.8* + +Specify how much to reduce the color values of fonts in terminals that +do not have focus. + +*inactive_bg_color_offset* = _float_:: +Default value: *1.0* + +Specify how much to reduce the color values of the background in +terminals that do not have focus. + +*cell_width* = _float_:: +Default value: *1.0* + +TODO + +*cell_height* = _float_:: +Default value: *1.0* + +TODO + +*title_at_bottom* = _boolean_:: +Default value: *False* + +TODO + +=== Miscellaneous + +*dbus* = _boolean_:: +Default value: *True* + +Control whether or not Terminator will load its DBus server. +When this server is loaded, running Terminator multiple times will cause +the first Terminator process to open additional windows. +If this configuration item is set to False, or the python dbus module is +unavailable, running Terminator multiple times will run a separate +Terminator process for each invocation. + +*extra_styling* = _boolean_:: +Default value: *True* + +TODO + +*broadcast_default* = _string_:: +Default value: *group* + +Specify default broadcast behavior. +Can be any of: 'all', 'group', 'off'. + +// try_posix_regexp ??? + +*use_custom_url_handler* = _boolean_:: +Default value: *False* + +If set to True, URL handling will be given over entirely to the program +specified by 'custom_url_handler'. + +*custom_url_handler* = _string_:: +Path to a program which accepts a URI as an argument and does something +relevant with it. This option is ignored unless 'use_custom_url_handler' +is set to True. + +*case_sensitive* = _boolean_:: +Default value: *True* + +TODO + +*invert_search* = _boolean_:: +Default value: *False* + +TODO + +*enabled_plugins* = _list of strings_:: +Default value: *['LaunchpadBugURLHandler', 'LaunchpadCodeURLHandler', 'APTURLHandler']* + +A list of plugins which should be loaded by default. All other plugin +classes will be ignored. + +== profiles +These are the options Terminator currently supports in the *profiles* +section. Each profile should be its own subsection with a header in the +format *+[[name]]+*. From 3f30aa58f76ad075cec624450eee3ce103c0c332 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Fri, 31 Mar 2023 17:14:27 +0200 Subject: [PATCH 32/50] Remove settings 'hide_tabbar' and 'disable_real_transparency' 'disable_real_transparency' is already completely unused, 'hide_tabbar' was replaced by 'tab_position' = 'hidden' and marked as deprecated in 2010. --- terminatorlib/config.py | 2 -- terminatorlib/notebook.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 0d239024..fbca71af 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -92,7 +92,6 @@ DEFAULTS = { 'tab_position' : 'top', 'broadcast_default' : 'group', 'close_button_on_tab' : True, - 'hide_tabbar' : False, 'scroll_tabbar' : False, 'homogeneous_tabbar' : True, 'hide_from_taskbar' : False, @@ -101,7 +100,6 @@ DEFAULTS = { 'sticky' : False, 'use_custom_url_handler': False, 'custom_url_handler' : '', - 'disable_real_transparency' : False, 'inactive_color_offset': 0.8, 'inactive_bg_color_offset': 1.0, 'enabled_plugins' : ['LaunchpadBugURLHandler', diff --git a/terminatorlib/notebook.py b/terminatorlib/notebook.py index f43b88f4..dc0ff555 100644 --- a/terminatorlib/notebook.py +++ b/terminatorlib/notebook.py @@ -61,7 +61,7 @@ class Notebook(Container, Gtk.Notebook): #self.connect('page-reordered', self.on_page_reordered) self.set_scrollable(self.config['scroll_tabbar']) - if self.config['tab_position'] == 'hidden' or self.config['hide_tabbar']: + if self.config['tab_position'] == 'hidden': self.set_show_tabs(False) else: self.set_show_tabs(True) From aadb6ebaf945ff317cb52fe1e7520a3433af9cc6 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Sat, 1 Apr 2023 19:20:18 +0200 Subject: [PATCH 33/50] terminator_config.adoc: add text for the 'FILE FORMAT' section + add a descriptions to some of the new settings --- doc/terminator_config.adoc | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/doc/terminator_config.adoc b/doc/terminator_config.adoc index 70ba3fd8..7392980e 100644 --- a/doc/terminator_config.adoc +++ b/doc/terminator_config.adoc @@ -24,7 +24,23 @@ may be overridden with *$XDG_CONFIG_HOME* (in which case it will be == FILE FORMAT This is what a Terminator config file should look like: -TODO +---- +# This is a comment +[global_config] + focus = system + +[keybindings] + full_screen = F11 + +[profiles] + [[default]] + font = Fixed 10 + background_color = "#000000" # A comment + foreground_color = "#FFFFFF" # Note that hex colour values must be quoted + scrollback_lines = '500' #More comment. Single quotes are valid too + cursor_blink = True + custom_command = "echo \"foo#bar\"" #Final comment - this will work as expected. +---- == global_config These are the options Terminator currently supports in the @@ -44,7 +60,7 @@ Control how the Terminator window opens. *always_on_top* = _boolean_:: Default value: *False* + -TODO +If set to True, the window will always stay on top of other windows. *sticky* = _boolean_:: Default value: *False* + @@ -60,12 +76,12 @@ TODO *geometry_hinting* = _boolean_:: Default value: *False* + -If True the window will resize in step with font sizes, if False it will -follow pixels. +If set to True, the window will resize in step with font sizes. *suppress_multiple_term_dialog* = _boolean_:: Default value: *False* + -TODO +Specify whether or not Terminator will ask for confirmation when closing +multiple terminals. // --- Window appearance --- @@ -84,7 +100,7 @@ If this is set to 'hidden', the tab bar will not be shown. Hiding the tab is not recommended, as it can be very confusing. *close_button_on_tab* = _boolean_:: -Default value: : *True* + +Default value: *True* + If set to True, tabs will have a close button on them. // what is this??? @@ -118,7 +134,8 @@ peer terminal. If set to False, they will always use the default profile. *link_single_click* = _boolean_:: Default value: *False* + -TODO +If set to True, clicking a link will open it even if *Ctrl* is not +pressed. // --- Copy & Paste behavior --- @@ -133,7 +150,7 @@ TODO *disable_mouse_paste* = _boolean_:: Default value: *False* + -TODO +If set to True, mouse pasting will be disabled. *smart_copy* = _boolean_:: Default value: *True* + From a9c5e1836538d074f4365c67388e292a92ca34f8 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Sat, 1 Apr 2023 21:44:28 +0200 Subject: [PATCH 34/50] Remove more unused settings and update the docs accordingly Removed settings: scroll_background, focus_on_close, cycle_term_tab, ignore_hosts. --- doc/terminator.1 | 8 ++------ doc/terminator.adoc | 6 +----- terminatorlib/config.py | 4 ---- terminatorlib/prefseditor.py | 5 ----- 4 files changed, 3 insertions(+), 20 deletions(-) diff --git a/doc/terminator.1 b/doc/terminator.1 index 4d3591fe..a224b530 100644 --- a/doc/terminator.1 +++ b/doc/terminator.1 @@ -2,12 +2,12 @@ .\" Title: terminator .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.18 -.\" Date: 2023-03-30 +.\" Date: 2023-04-01 .\" Manual: Manual for Terminator .\" Source: Terminator .\" Language: English .\" -.TH "TERMINATOR" "1" "2023-03-30" "Terminator" "Manual for Terminator" +.TH "TERMINATOR" "1" "2023-04-01" "Terminator" "Manual for Terminator" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 @@ -264,16 +264,12 @@ Move to previous tab. .RS 4 Move to the \fIn\fPext terminal within the same tab. .br -If \fBcycle_term_tab\fP is \fBFalse\fP, cycle within the same tab will be -disabled. .RE .sp \fBCtrl+Shift+P\fP or \fBCtrl+Shift+Tab\fP .RS 4 Move to the \fIp\fPrevious terminal within the same tab. .br -If \fBcycle_term_tab\fP is \fBFalse\fP, cycle within the same tab will be -disabled. .RE .SS "Organisation" .sp diff --git a/doc/terminator.adoc b/doc/terminator.adoc index 806c3649..92408f13 100644 --- a/doc/terminator.adoc +++ b/doc/terminator.adoc @@ -2,7 +2,7 @@ :doctype: manpage :manmanual: Manual for Terminator :mansource: Terminator -:revdate: 2023-03-30 +:revdate: 2023-04-01 :docdate: {revdate} == NAME @@ -167,13 +167,9 @@ Move to previous tab. *Ctrl+Shift+N* or *Ctrl+Tab*:: Move to the __n__ext terminal within the same tab. + -If *cycle_term_tab* is *False*, cycle within the same tab will be -disabled. *Ctrl+Shift+P* or *Ctrl+Shift+Tab*:: Move to the __p__revious terminal within the same tab. + -If *cycle_term_tab* is *False*, cycle within the same tab will be -disabled. === Organisation The following items relate to arranging and resizing terminals. diff --git a/terminatorlib/config.py b/terminatorlib/config.py index fbca71af..42780afe 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -232,7 +232,6 @@ DEFAULTS = { 'foreground_color' : '#aaaaaa', 'show_titlebar' : True, 'scrollbar_position' : "right", - 'scroll_background' : True, 'scroll_on_keystroke' : True, 'scroll_on_output' : False, 'scrollback_lines' : 500, @@ -252,14 +251,11 @@ DEFAULTS = { 'bold_is_bright' : False, 'cell_height' : 1.0, 'cell_width' : 1.0, - 'focus_on_close' : 'auto', 'force_no_bell' : False, - 'cycle_term_tab' : True, 'copy_on_selection' : False, 'split_to_group' : False, 'autoclean_groups' : True, 'http_proxy' : '', - 'ignore_hosts' : ['localhost','127.0.0.0/8','*.local'], # Titlebar 'title_hide_sizetext' : False, 'title_transmit_fg_color' : '#ffffff', diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index f805c8c6..ddf49694 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -958,11 +958,6 @@ class PrefsEditor: self.config['login_shell'] = widget.get_active() self.config.save() - def on_scroll_background_checkbutton_toggled(self, widget): - """Scroll background setting changed""" - self.config['scroll_background'] = widget.get_active() - self.config.save() - def on_scroll_on_keystroke_checkbutton_toggled(self, widget): """Scroll on keystrong setting changed""" self.config['scroll_on_keystroke'] = widget.get_active() From 0570307ecb9fcd3b60e5f1ea58268ffeb4d26f2b Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Sun, 2 Apr 2023 17:26:24 +0200 Subject: [PATCH 35/50] Remove unused 'color_scheme' setting The color scheme in use is determined by checking the 'foreground_color' and 'background_color' settings. --- terminatorlib/config.py | 1 - 1 file changed, 1 deletion(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 42780afe..415533f7 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -220,7 +220,6 @@ DEFAULTS = { 'background_image_align_vert' : 'middle', 'backspace_binding' : 'ascii-del', 'delete_binding' : 'escape-sequence', - 'color_scheme' : 'grey_on_black', 'cursor_blink' : True, 'cursor_shape' : 'block', 'cursor_fg_color' : '', From 9b93abb8fe448cb6f20357f837d85a61480d1fca Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Tue, 4 Apr 2023 00:55:50 +0200 Subject: [PATCH 36/50] terminator_config: add profile settings --- doc/gen_manpages.sh | 4 + doc/terminator_config.adoc | 347 +++++++++++++++++++++++++++++++++++-- 2 files changed, 333 insertions(+), 18 deletions(-) create mode 100755 doc/gen_manpages.sh diff --git a/doc/gen_manpages.sh b/doc/gen_manpages.sh new file mode 100755 index 00000000..49c6df1e --- /dev/null +++ b/doc/gen_manpages.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +asciidoctor -b manpage terminator.adoc +asciidoctor -b manpage terminator_config.adoc diff --git a/doc/terminator_config.adoc b/doc/terminator_config.adoc index 7392980e..bcd9c1da 100644 --- a/doc/terminator_config.adoc +++ b/doc/terminator_config.adoc @@ -44,7 +44,7 @@ This is what a Terminator config file should look like: == global_config These are the options Terminator currently supports in the -*global_config* section: +*global_config* section. === Window Behavior & Appearance @@ -80,15 +80,14 @@ If set to True, the window will resize in step with font sizes. *suppress_multiple_term_dialog* = _boolean_:: Default value: *False* + -Specify whether or not Terminator will ask for confirmation when closing +If set to True, Terminator will ask for confirmation when closing multiple terminals. // --- Window appearance --- *borderless* = _boolean_:: Default value: *False* + -Control whether the Terminator window will be started without window -borders. +If set to True, the window will be started without window borders. === Tab Behavior & Appearance @@ -96,8 +95,8 @@ borders. Default value: *top* + Specify where tabs are placed. Can be any of: 'top', 'left', 'right', 'bottom', 'hidden'. -If this is set to 'hidden', the tab bar will not be shown. Hiding the -tab is not recommended, as it can be very confusing. +If set to 'hidden', the tab bar will not be shown. Hiding the tab is not +recommended, as it can be very confusing. *close_button_on_tab* = _boolean_:: Default value: *True* + @@ -122,14 +121,14 @@ TODO *focus* = _string_:: Default value: *click* + -Control how focus is given to terminals. +Specify how focus is given to terminals. 'click' means the focus only moves to a terminal after you click in it. 'sloppy' means the focus will follow the mouse pointer. 'system' means the focus will match that used by a GNOME window manager. *always_split_with_profile* = _boolean_:: Default value: *False* + -Control whether splits/tabs will continue to use the profile of their +Specify whether splits/tabs will continue to use the profile of their peer terminal. If set to False, they will always use the default profile. *link_single_click* = _boolean_:: @@ -168,7 +167,7 @@ TODO *handle_size* = _integer_:: Default value: *1* + -Control the width of the separator between terminals. +Specify the width of the separator between terminals. Anything outside the range 0-20 (inclusive) will be ignored and use your default theme value. @@ -192,13 +191,14 @@ TODO *title_at_bottom* = _boolean_:: Default value: *False* + -TODO +If set to True, the terminal's titlebar will be drawn at the bottom +instead of the top. === Miscellaneous *dbus* = _boolean_:: Default value: *True* + -Control whether or not Terminator will load its DBus server. +Specify whether Terminator will load its DBus server. When this server is loaded, running Terminator multiple times will cause the first Terminator process to open additional windows. If this configuration item is set to False, or the python dbus module is @@ -211,20 +211,18 @@ TODO *broadcast_default* = _string_:: Default value: *group* + -Specify default broadcast behavior. +Specify the default broadcast behavior. Can be any of: 'all', 'group', 'off'. -// try_posix_regexp ??? - *use_custom_url_handler* = _boolean_:: Default value: *False* + If set to True, URL handling will be given over entirely to the program specified by 'custom_url_handler'. *custom_url_handler* = _string_:: -Path to a program which accepts a URI as an argument and does something -relevant with it. This option is ignored unless 'use_custom_url_handler' -is set to True. +Specify the path to a program which accepts a URI as an argument and +does something relevant with it. +This option is ignored unless *use_custom_url_handler* is set to True. *case_sensitive* = _boolean_:: Default value: *True* + @@ -236,10 +234,323 @@ TODO *enabled_plugins* = _list of strings_:: Default value: *['LaunchpadBugURLHandler', 'LaunchpadCodeURLHandler', 'APTURLHandler']* + -A list of plugins which should be loaded by default. All other plugin +Specify which plugins will be loaded by default. All other plugin classes will be ignored. +== keybindings +These are the options Terminator currently supports in the *keybindings* +section. + +TODO + == profiles These are the options Terminator currently supports in the *profiles* section. Each profile should be its own subsection with a header in the format *+[[name]]+*. + +=== General + +*allow_bold* = _boolean_:: +Default value: *True* + +If set to True, text in the terminal can displayed in bold. + +*copy_on_selection* = _boolean_:: +Default value: *False* + +TODO + +*disable_mousewheel_zoom* = _boolean_:: +Default value: *False* + +If set to True, Ctrl+mouse_wheel will not zoom or unzoom the terminal. + +*word_chars* = _string_:: +Default value: **-,./?%&#:_** + +TODO + +*cell_width* = _float_:: +Default value: *1.0* + +TODO + +*cell_height* = _float_:: +Default value: *1.0* + +TODO + +*mouse_autohide* = _boolean_:: +Default value: *True* + +If set to True, the mouse pointer will be hidden when typing. + +*term* = _string_:: +Default value: *xterm-256color* + +TODO + +*colorterm* = _string_:: +Default value: *truecolor* + +TODO + +*split_to_group* = _boolean_:: +Default value: *False* + +TODO + +*autoclean_groups* = _boolean_:: +Default value: *True* + +TODO + +// --- Font --- + +*use_system_font* = _boolean_:: +Default value: *True* + +If set to True, the system default font will be used for text in the +terminal. Otherwise, the value of *font* will be used. + +*font* = _string_:: +Default value: *Mono 10* + +Specify which font to use for text in the terminal. +This option is ignored unless *use_system_font* is set to False. + +// --- Cursor --- + +*cursor_blink* = _boolean_:: +Default value: *True* + +If set to True, the cursor will blink when not typing. + +*cursor_shape* = _string_:: +Default value: *block* + +Specify the shape of the cursor. +Can be any of: 'block', 'underline', 'ibeam'. + +*cursor_color_default* = _boolean_:: +Default value: *True* + +TODO + +*cursor_fg_color* = _color string_:: +Specify the foreground color to use for the cursor. +This option is ignored unless *cursor_color_default* is set to False. + +*cursor_bg_color* = _color string_:: +Specify the background color to use for the cursor. +This option is ignored unless *cursor_color_default* is set to False. + +// --- Bell --- + +*audible_bell* = _boolean_:: +Default value: *False* + +If set to True, a sound will be played when an application writes the +escape sequence for the terminal bell. + +*visible_bell* = _boolean_:: +Default value: *False* + +If set to True, the terminal will flash when an application writes the +escape sequence for the terminal bell. + +*urgent_bell* = _boolean_:: +Default value: *False* + +TODO + +*icon_bell* = _boolean_:: +Default value: *True* + +If set to True, a small icon will be shown on the terminal titlebar when +an application writes the escape sequence for the terminal bell. + +*force_no_bell* = _boolean_:: +Default value: *False* + +If set to True, the terminal bell will be completely disabled. + +=== Command + +*login_shell* = _boolean_:: +Default value: *False* + +TODO + +*use_custom_command* = _boolean_:: +Default value: *False* + +If set to True, the value of *custom_command* will be used instead of +the default shell. + +*custom_command* = _string_:: +Specify the command to execute instead of the default shell. +This option is ignored unless *use_custom_command* is set to True. + +*exit_action* = _string_:: +Default value: *close* + +Specify the action to perform when the terminal is closed. +'close' means the terminal will be removed. +'restart' means the shell (or the command specified in *custom_command*) +will be restarted. +'hold' means the terminal will be kept open, even if the process in it +has terminated. + +=== Colors + +*use_theme_colors* = _boolean_:: +Default value: *False* + +If set to True, the theme's foreground and background colors will be +used for the terminal. Otherwise, the values of *foreground_color* and +*background_color* will be used. + +*foreground_color* = _color string_:: +Default value: *#AAAAAA* + +Specify the foreground color to use for the terminal. +This option is ignored unless *use_theme_colors* is set to False. + +*background_color* = _color string_:: +Default value: *#000000* + +Specify the background color to use for the terminal. +This option is ignored unless *use_theme_colors* is set to False. + +*palette* = TODO:: +TODO + +*bold_is_bright* = _boolean_:: +Default value: *False* + +If set to True, bold text will have brighter colors. + +=== Background + +*background_darkness* = _float_:: +Default value: *0.5* + +TODO + +*background_type* = _string_:: +Default value: *solid* + +Specify what type of background the terminal will have. +'solid' means the background will be a solid (opaque) color. +'transparent' means the background will be a transparent color, with its +transparency being the value of *background_darkness*. +'image' means the background will be an image, whose path is the value +of *background_image*; the background color will be drawn on top of it, +with its transparenty being the value of *background_darkness*. + +*background_image* = _path string_:: +Specify the path to an image that will be used as background. +This option is ignored unless *background_type* is set to 'image'. + +*background_image_mode* = _string_:: +Default value: *stretch_and_fill* + +Specify how the background image will be drawn. +'stretch_and_fill' means the image will fill the terminal entirely, +without necessarily maintaining aspect ratio. +'scale_and_fit' means the image will fit inside the terminal, eventually +leaving blank bars, while maintaining aspect ratio. +'scale_and_crop' means the image will fill the terminal entirely, +eventually getting cropped, while maintaining aspect ratio. +'tiling' means the image will be repeated as to fill the terminal. +This option is ignored unless *background_type* is set to 'image'. + +*background_image_align_horiz* = _string_:: +Default value: *center* + +Specify the horizontal alignment of the background image. +Can be any of: 'left', 'center', 'right'. +This option is ignored unless *background_type* is set to 'image'. + +*background_image_align_vert* = _string_:: +Default value: *middle* + +Specify the vertical alignment of the background image. +Can be any of: 'top', 'middle', 'bottom'. +This option is ignored unless *background_type* is set to 'image'. + +=== Scrolling + +*scrollbar_position* = _string_:: +Default value: *right* + +Specify where the terminal scrollbar is put. +Can be any of: 'left', 'right', 'hidden'. + +*scroll_on_output* = _boolean_:: +Default value: *False* + +If set to True, the terminall will scroll to the bottom when an +application writes text to it. + +*scroll_on_keystroke* = _boolean_:: +Default value: *True* + +If set to True, the terminal will scroll to the bottom when typing. + +*scrollback_infinite* = _boolean_:: +Default value: *False* + +If set to True, the terminal will keep the entire scrollback history. + +*scrollback_lines* = _integer_:: +Default value: *500* + +Specify how many lines of scrollback history will be kept by the +terminal. Lines that don't fit in the scrollback history will be +discarted. Note that setting large values can slow down rewrapping and +resizing. +This option is ignored unless *scrollback_infinite* is set to False. + +=== Compatibility + +*backspace_binding* = _string_:: +Default value: *ascii-del* + +Specify what code will be generated by the backspace key. +The value can be: +'ascii-del' for the ASCII DEL character; +'control-h' for the ASCII BS character (Ctrl+H); +'escape-sequence' for the escape sequence typically bound to backspace +or delete; +'automatic' for TODO. + +*delete_binding* = _string_:: +Default value: *escape-sequence* + +Specify what code will be generated by the delete key. +The value can be: +'ascii-del' for the ASCII DEL character; +'control-h' for the ASCII BS character (Ctrl+H); +'escape-sequence' for the escape sequence typically bound to backspace +or delete; +'automatic' for TODO. + +=== Titlebar + +*show_titlebar* = _boolean_:: +Default value: *True* + +If set to True, the terminal will have a titlebar showing the current +title of that terminal. + +*title_hide_sizetext* = _boolean_:: +Default value: *False* + +If set to True, the size of the terminal will not be written on its +titlebar. + +*title_use_system_font* = _boolean_:: +Default value: *True* + +If set to True, the system default font will be used for text in the +terminal's titlebar. Otherwise, the value of *title_font* will be used. + +*title_font* = _string_:: +Default value: *Sans 9* + +Specify which font to use for text in the terminal's titlebar. +This option is ignored unless *title_use_system_font* is set to False. + +// --- Titlebar colors --- + +*title_transmit_fg_color* = _color string_:: +Default value: *#ffffff* + +Specify the foreground color to use for the terminal's titlebar in case +the terminal is focused. + +*title_transmit_bg_color* = _color string_:: +Default value: *#c80003* + +Specify the background color to use for the terminal's titlebar in case +the terminal is focused. + +*title_inactive_fg_color* = _color string_:: +Default value: *#000000* + +Specify the foreground color to use for the terminal's titlebar in case +the terminal is unfocused. + +*title_inactive_bg_color* = _color string_:: +Default value: *#c0bebf* + +Specify the background color to use for the terminal's titlebar in case +the terminal is unfocused. + +*title_receive_fg_color* = _color string_:: +Default value: *#ffffff* + +Specify the foreground color to use for the terminal's titlebar in case +the terminal is in a group and is receiving input while unfocused. + +*title_receive_bg_color* = _color string_:: +Default value: *#0076c9* + +Specify the background color to use for the terminal's titlebar in case +the terminal is in a group and is receiving input while unfocused. + +== SEE ALSO +*terminator*(1), http://www.voidspace.org.uk/python/configobj.html +// this link might be dead From beae56f2b8b0d3233c221b1bbfe137efd23b8873 Mon Sep 17 00:00:00 2001 From: Thibault Brocheton <7646137+Thibault-Brocheton@users.noreply.github.com> Date: Tue, 4 Apr 2023 11:01:51 +0200 Subject: [PATCH 37/50] fix: typo in french translation dans = in sans = without --- po/fr.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/fr.po b/po/fr.po index 7c46fc35..46c970ba 100644 --- a/po/fr.po +++ b/po/fr.po @@ -1601,7 +1601,7 @@ msgstr "Supprimer le groupe %s" #: ../terminatorlib/terminal.py:512 msgid "G_roup all in window" -msgstr "Tout g_rouper sans une fenêtre" +msgstr "Tout g_rouper dans une fenêtre" #: ../terminatorlib/terminal.py:517 msgid "Ungro_up all in window" From 9a63671fe8fa255783e32200296b50fa0c70e364 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Fri, 7 Apr 2023 12:43:31 +0200 Subject: [PATCH 38/50] terminator_config: move 'default value' to the end of description --- doc/terminator_config.adoc | 337 ++++++++++++++++++------------------- 1 file changed, 164 insertions(+), 173 deletions(-) diff --git a/doc/terminator_config.adoc b/doc/terminator_config.adoc index bcd9c1da..db6b42a2 100644 --- a/doc/terminator_config.adoc +++ b/doc/terminator_config.adoc @@ -2,12 +2,11 @@ :doctype: manpage :manmanual: Manual for Terminator :mansource: Terminator -:revdate: 2023-03-31 +:revdate: 2023-04-03 :docdate: {revdate} == NAME -// ~/.config/terminator/config - the config file for Terminator terminal emulator -config - TODO +terminator_config - the config file for Terminator terminal emulator == DESCRIPTION This file contains the configuration for *terminator*(1). @@ -51,173 +50,173 @@ These are the options Terminator currently supports in the // --- Window behavior --- *window_state* = _string_:: -Default value: *normal* + Control how the Terminator window opens. 'normal' means it opens normally. 'maximise' means it opens in a maximised state. 'fullscreen' means it opens in a fullscreen state. -'hidden' means it stays hidden. +'hidden' means it stays hidden. + +Default value: *normal* *always_on_top* = _boolean_:: -Default value: *False* + -If set to True, the window will always stay on top of other windows. +If set to True, the window will always stay on top of other windows. + +Default value: *False* *sticky* = _boolean_:: -Default value: *False* + -TODO +TODO + +Default value: *False* *hide_on_lose_focus* = _boolean_:: -Default value: *False* + -TODO +TODO + +Default value: *False* *hide_from_taskbar* = _boolean_:: -Default value: *False* + -TODO +TODO + +Default value: *False* *geometry_hinting* = _boolean_:: -Default value: *False* + -If set to True, the window will resize in step with font sizes. +If set to True, the window will resize in step with font sizes. + +Default value: *False* *suppress_multiple_term_dialog* = _boolean_:: -Default value: *False* + If set to True, Terminator will ask for confirmation when closing -multiple terminals. +multiple terminals. + +Default value: *False* // --- Window appearance --- *borderless* = _boolean_:: -Default value: *False* + -If set to True, the window will be started without window borders. +If set to True, the window will be started without window borders. + +Default value: *False* === Tab Behavior & Appearance *tab_position* = _string_:: -Default value: *top* + Specify where tabs are placed. Can be any of: 'top', 'left', 'right', 'bottom', 'hidden'. If set to 'hidden', the tab bar will not be shown. Hiding the tab is not -recommended, as it can be very confusing. +recommended, as it can be very confusing. + +Default value: *top* *close_button_on_tab* = _boolean_:: -Default value: *True* + -If set to True, tabs will have a close button on them. +If set to True, tabs will have a close button on them. + +Default value: *True* // what is this??? *scroll_tabbar* = _boolean_:: -Default value: *False* + If set to True, the tab bar will not fill the width of the window. The titlebars of the tabs will only take as much space as is necessary for the text they contain. Except, that is, if the tabs no longer fit the width of the window - in that case scroll buttons will appear to -move through the tabs. +move through the tabs. + +Default value: *False* *homogeneous_tabbar* = _boolean_:: -Default value: *True* + -TODO +TODO + +Default value: *True* === Terminal Behavior & Appearance // --- Terminal behavior --- *focus* = _string_:: -Default value: *click* + Specify how focus is given to terminals. 'click' means the focus only moves to a terminal after you click in it. 'sloppy' means the focus will follow the mouse pointer. -'system' means the focus will match that used by a GNOME window manager. +'system' means the focus will match that used by a GNOME window manager. + +Default value: *click* *always_split_with_profile* = _boolean_:: -Default value: *False* + Specify whether splits/tabs will continue to use the profile of their -peer terminal. If set to False, they will always use the default profile. +peer terminal. If set to False, they will always use the default profile. + +Default value: *False* *link_single_click* = _boolean_:: -Default value: *False* + If set to True, clicking a link will open it even if *Ctrl* is not -pressed. +pressed. + +Default value: *False* // --- Copy & Paste behavior --- *putty_paste_style* = _boolean_:: -Default value: *False* + If set to True, right-click will paste the Primary selection, -while middle-click will popup the context menu. +while middle-click will popup the context menu. + +Default value: *False* *putty_paste_style_source_clipboard* = _boolean_:: -Default value: *False* + -TODO +TODO + +Default value: *False* *disable_mouse_paste* = _boolean_:: -Default value: *False* + -If set to True, mouse pasting will be disabled. +If set to True, mouse pasting will be disabled. + +Default value: *False* *smart_copy* = _boolean_:: -Default value: *True* + If set to True, and there is no selection, the shortcut is allowed to pass through. This is useful for overloading Ctrl-C to copy a selection, or send the SIGINT to the current process if there is no selection. If False, the shortcut does not pass through at all, and the SIGINT does -not get sent. +not get sent. + +Default value: *True* *clear_select_on_copy* = _boolean_:: -Default value: *False* + -TODO +TODO + +Default value: *False* // --- Terminal appearance --- *handle_size* = _integer_:: -Default value: *1* + Specify the width of the separator between terminals. Anything outside the range 0-20 (inclusive) will be ignored and use your -default theme value. +default theme value. + +Default value: *1* *inactive_color_offset* = _float_:: -Default value: *0.8* + Specify how much to reduce the color values of fonts in terminals that -do not have focus. +do not have focus. + +Default value: *0.8* *inactive_bg_color_offset* = _float_:: -Default value: *1.0* + Specify how much to reduce the color values of the background in -terminals that do not have focus. +terminals that do not have focus. + +Default value: *1.0* *cell_width* = _float_:: -Default value: *1.0* + -TODO +TODO + +Default value: *1.0* *cell_height* = _float_:: -Default value: *1.0* + -TODO +TODO + +Default value: *1.0* *title_at_bottom* = _boolean_:: -Default value: *False* + If set to True, the terminal's titlebar will be drawn at the bottom -instead of the top. +instead of the top. + +Default value: *False* === Miscellaneous *dbus* = _boolean_:: -Default value: *True* + Specify whether Terminator will load its DBus server. When this server is loaded, running Terminator multiple times will cause the first Terminator process to open additional windows. If this configuration item is set to False, or the python dbus module is unavailable, running Terminator multiple times will run a separate -Terminator process for each invocation. +Terminator process for each invocation. + +Default value: *True* *extra_styling* = _boolean_:: -Default value: *True* + -TODO +TODO + +Default value: *True* *broadcast_default* = _string_:: -Default value: *group* + Specify the default broadcast behavior. -Can be any of: 'all', 'group', 'off'. +Can be any of: 'all', 'group', 'off'. + +Default value: *group* *use_custom_url_handler* = _boolean_:: -Default value: *False* + If set to True, URL handling will be given over entirely to the program -specified by 'custom_url_handler'. +specified by 'custom_url_handler'. + +Default value: *False* *custom_url_handler* = _string_:: Specify the path to a program which accepts a URI as an argument and @@ -225,17 +224,17 @@ does something relevant with it. This option is ignored unless *use_custom_url_handler* is set to True. *case_sensitive* = _boolean_:: -Default value: *True* + -TODO +TODO + +Default value: *True* *invert_search* = _boolean_:: -Default value: *False* + -TODO +TODO + +Default value: *False* *enabled_plugins* = _list of strings_:: -Default value: *['LaunchpadBugURLHandler', 'LaunchpadCodeURLHandler', 'APTURLHandler']* + Specify which plugins will be loaded by default. All other plugin -classes will be ignored. +classes will be ignored. + +Default value: *['LaunchpadBugURLHandler', 'LaunchpadCodeURLHandler', 'APTURLHandler']* == keybindings These are the options Terminator currently supports in the *keybindings* @@ -251,75 +250,67 @@ format *+[[name]]+*. === General *allow_bold* = _boolean_:: -Default value: *True* + -If set to True, text in the terminal can displayed in bold. +If set to True, text in the terminal can displayed in bold. + +Default value: *True* *copy_on_selection* = _boolean_:: -Default value: *False* + -TODO +TODO + +Default value: *False* *disable_mousewheel_zoom* = _boolean_:: -Default value: *False* + -If set to True, Ctrl+mouse_wheel will not zoom or unzoom the terminal. +If set to True, Ctrl+mouse_wheel will not zoom or unzoom the terminal. + +Default value: *False* *word_chars* = _string_:: -Default value: **-,./?%&#:_** + -TODO - -*cell_width* = _float_:: -Default value: *1.0* + -TODO - -*cell_height* = _float_:: -Default value: *1.0* + -TODO +TODO + +Default value: **-,./?%&#:_** *mouse_autohide* = _boolean_:: -Default value: *True* + -If set to True, the mouse pointer will be hidden when typing. +If set to True, the mouse pointer will be hidden when typing. + +Default value: *True* *term* = _string_:: -Default value: *xterm-256color* + -TODO +TODO + +Default value: *xterm-256color* *colorterm* = _string_:: -Default value: *truecolor* + -TODO +TODO + +Default value: *truecolor* *split_to_group* = _boolean_:: -Default value: *False* + -TODO +TODO + +Default value: *False* *autoclean_groups* = _boolean_:: -Default value: *True* + -TODO +TODO + +Default value: *True* // --- Font --- *use_system_font* = _boolean_:: -Default value: *True* + If set to True, the system default font will be used for text in the -terminal. Otherwise, the value of *font* will be used. +terminal. Otherwise, the value of *font* will be used. + +Default value: *True* *font* = _string_:: -Default value: *Mono 10* + Specify which font to use for text in the terminal. -This option is ignored unless *use_system_font* is set to False. +This option is ignored unless *use_system_font* is set to False. + +Default value: *Mono 10* // --- Cursor --- *cursor_blink* = _boolean_:: -Default value: *True* + -If set to True, the cursor will blink when not typing. +If set to True, the cursor will blink when not typing. + +Default value: *True* *cursor_shape* = _string_:: -Default value: *block* + Specify the shape of the cursor. -Can be any of: 'block', 'underline', 'ibeam'. +Can be any of: 'block', 'underline', 'ibeam'. + +Default value: *block* *cursor_color_default* = _boolean_:: -Default value: *True* + -TODO +TODO + +Default value: *True* *cursor_fg_color* = _color string_:: Specify the foreground color to use for the cursor. @@ -332,99 +323,98 @@ This option is ignored unless *cursor_color_default* is set to False. // --- Bell --- *audible_bell* = _boolean_:: -Default value: *False* + If set to True, a sound will be played when an application writes the -escape sequence for the terminal bell. +escape sequence for the terminal bell. + +Default value: *False* *visible_bell* = _boolean_:: -Default value: *False* + If set to True, the terminal will flash when an application writes the -escape sequence for the terminal bell. +escape sequence for the terminal bell. + +Default value: *False* *urgent_bell* = _boolean_:: -Default value: *False* + -TODO +TODO + +Default value: *False* *icon_bell* = _boolean_:: -Default value: *True* + If set to True, a small icon will be shown on the terminal titlebar when -an application writes the escape sequence for the terminal bell. +an application writes the escape sequence for the terminal bell. + +Default value: *True* *force_no_bell* = _boolean_:: -Default value: *False* + -If set to True, the terminal bell will be completely disabled. +If set to True, the terminal bell will be completely disabled. + +Default value: *False* === Command *login_shell* = _boolean_:: -Default value: *False* + -TODO +TODO + +Default value: *False* *use_custom_command* = _boolean_:: -Default value: *False* + If set to True, the value of *custom_command* will be used instead of -the default shell. +the default shell. + +Default value: *False* *custom_command* = _string_:: Specify the command to execute instead of the default shell. This option is ignored unless *use_custom_command* is set to True. *exit_action* = _string_:: -Default value: *close* + Specify the action to perform when the terminal is closed. 'close' means the terminal will be removed. 'restart' means the shell (or the command specified in *custom_command*) will be restarted. 'hold' means the terminal will be kept open, even if the process in it -has terminated. +has terminated. + +Default value: *close* === Colors *use_theme_colors* = _boolean_:: -Default value: *False* + If set to True, the theme's foreground and background colors will be used for the terminal. Otherwise, the values of *foreground_color* and -*background_color* will be used. +*background_color* will be used. + +Default value: *False* *foreground_color* = _color string_:: -Default value: *#AAAAAA* + Specify the foreground color to use for the terminal. -This option is ignored unless *use_theme_colors* is set to False. +This option is ignored unless *use_theme_colors* is set to False. + +Default value: *#AAAAAA* *background_color* = _color string_:: -Default value: *#000000* + Specify the background color to use for the terminal. -This option is ignored unless *use_theme_colors* is set to False. +This option is ignored unless *use_theme_colors* is set to False. + +Default value: *#000000* *palette* = TODO:: TODO *bold_is_bright* = _boolean_:: -Default value: *False* + -If set to True, bold text will have brighter colors. +If set to True, bold text will have brighter colors. + +Default value: *False* === Background *background_darkness* = _float_:: -Default value: *0.5* + -TODO +TODO + +Default value: *0.5* *background_type* = _string_:: -Default value: *solid* + Specify what type of background the terminal will have. 'solid' means the background will be a solid (opaque) color. 'transparent' means the background will be a transparent color, with its transparency being the value of *background_darkness*. 'image' means the background will be an image, whose path is the value of *background_image*; the background color will be drawn on top of it, -with its transparenty being the value of *background_darkness*. +with its transparenty being the value of *background_darkness*. + +Default value: *solid* *background_image* = _path string_:: Specify the path to an image that will be used as background. This option is ignored unless *background_type* is set to 'image'. *background_image_mode* = _string_:: -Default value: *stretch_and_fill* + Specify how the background image will be drawn. 'stretch_and_fill' means the image will fill the terminal entirely, without necessarily maintaining aspect ratio. @@ -433,123 +423,124 @@ leaving blank bars, while maintaining aspect ratio. 'scale_and_crop' means the image will fill the terminal entirely, eventually getting cropped, while maintaining aspect ratio. 'tiling' means the image will be repeated as to fill the terminal. -This option is ignored unless *background_type* is set to 'image'. +This option is ignored unless *background_type* is set to 'image'. + +Default value: *stretch_and_fill* *background_image_align_horiz* = _string_:: -Default value: *center* + Specify the horizontal alignment of the background image. Can be any of: 'left', 'center', 'right'. -This option is ignored unless *background_type* is set to 'image'. +This option is ignored unless *background_type* is set to 'image'. + +Default value: *center* *background_image_align_vert* = _string_:: -Default value: *middle* + Specify the vertical alignment of the background image. Can be any of: 'top', 'middle', 'bottom'. -This option is ignored unless *background_type* is set to 'image'. +This option is ignored unless *background_type* is set to 'image'. + +Default value: *middle* === Scrolling *scrollbar_position* = _string_:: -Default value: *right* + Specify where the terminal scrollbar is put. -Can be any of: 'left', 'right', 'hidden'. +Can be any of: 'left', 'right', 'hidden'. + +Default value: *right* *scroll_on_output* = _boolean_:: -Default value: *False* + If set to True, the terminall will scroll to the bottom when an -application writes text to it. +application writes text to it. + +Default value: *False* *scroll_on_keystroke* = _boolean_:: -Default value: *True* + -If set to True, the terminal will scroll to the bottom when typing. +If set to True, the terminal will scroll to the bottom when typing. + +Default value: *True* *scrollback_infinite* = _boolean_:: -Default value: *False* + -If set to True, the terminal will keep the entire scrollback history. +If set to True, the terminal will keep the entire scrollback history. + +Default value: *False* *scrollback_lines* = _integer_:: -Default value: *500* + Specify how many lines of scrollback history will be kept by the terminal. Lines that don't fit in the scrollback history will be discarted. Note that setting large values can slow down rewrapping and resizing. -This option is ignored unless *scrollback_infinite* is set to False. +This option is ignored unless *scrollback_infinite* is set to False. + +Default value: *500* === Compatibility *backspace_binding* = _string_:: -Default value: *ascii-del* + Specify what code will be generated by the backspace key. The value can be: 'ascii-del' for the ASCII DEL character; 'control-h' for the ASCII BS character (Ctrl+H); 'escape-sequence' for the escape sequence typically bound to backspace or delete; -'automatic' for TODO. +'automatic' for TODO. + +Default value: *ascii-del* *delete_binding* = _string_:: -Default value: *escape-sequence* + Specify what code will be generated by the delete key. The value can be: 'ascii-del' for the ASCII DEL character; 'control-h' for the ASCII BS character (Ctrl+H); 'escape-sequence' for the escape sequence typically bound to backspace or delete; -'automatic' for TODO. +'automatic' for TODO. + +Default value: *escape-sequence* === Titlebar *show_titlebar* = _boolean_:: -Default value: *True* + If set to True, the terminal will have a titlebar showing the current -title of that terminal. +title of that terminal. + +Default value: *True* *title_hide_sizetext* = _boolean_:: -Default value: *False* + If set to True, the size of the terminal will not be written on its -titlebar. +titlebar. + +Default value: *False* *title_use_system_font* = _boolean_:: -Default value: *True* + If set to True, the system default font will be used for text in the -terminal's titlebar. Otherwise, the value of *title_font* will be used. +terminal's titlebar. Otherwise, the value of *title_font* will be used. + +Default value: *True* *title_font* = _string_:: -Default value: *Sans 9* + Specify which font to use for text in the terminal's titlebar. -This option is ignored unless *title_use_system_font* is set to False. +This option is ignored unless *title_use_system_font* is set to False. + +Default value: *Sans 9* // --- Titlebar colors --- *title_transmit_fg_color* = _color string_:: -Default value: *#ffffff* + Specify the foreground color to use for the terminal's titlebar in case -the terminal is focused. +the terminal is focused. + +Default value: *#ffffff* *title_transmit_bg_color* = _color string_:: -Default value: *#c80003* + Specify the background color to use for the terminal's titlebar in case -the terminal is focused. +the terminal is focused. + +Default value: *#c80003* *title_inactive_fg_color* = _color string_:: -Default value: *#000000* + Specify the foreground color to use for the terminal's titlebar in case -the terminal is unfocused. +the terminal is unfocused. + +Default value: *#000000* *title_inactive_bg_color* = _color string_:: -Default value: *#c0bebf* + Specify the background color to use for the terminal's titlebar in case -the terminal is unfocused. +the terminal is unfocused. + +Default value: *#c0bebf* *title_receive_fg_color* = _color string_:: -Default value: *#ffffff* + Specify the foreground color to use for the terminal's titlebar in case -the terminal is in a group and is receiving input while unfocused. +the terminal is in a group and is receiving input while unfocused. + +Default value: *#ffffff* *title_receive_bg_color* = _color string_:: -Default value: *#0076c9* + Specify the background color to use for the terminal's titlebar in case -the terminal is in a group and is receiving input while unfocused. +the terminal is in a group and is receiving input while unfocused. + +Default value: *#0076c9* == SEE ALSO *terminator*(1), http://www.voidspace.org.uk/python/configobj.html From 3a710cd6d61e61638bab61d81e61ea58ebf11b3d Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Fri, 7 Apr 2023 15:44:30 +0200 Subject: [PATCH 39/50] terminator_config: add keybindings --- doc/terminator_config.adoc | 312 ++++++++++++++++++++++++++++++++++++- 1 file changed, 311 insertions(+), 1 deletion(-) diff --git a/doc/terminator_config.adoc b/doc/terminator_config.adoc index db6b42a2..2f29fe6f 100644 --- a/doc/terminator_config.adoc +++ b/doc/terminator_config.adoc @@ -2,7 +2,7 @@ :doctype: manpage :manmanual: Manual for Terminator :mansource: Terminator -:revdate: 2023-04-03 +:revdate: 2023-04-07 :docdate: {revdate} == NAME @@ -41,6 +41,8 @@ This is what a Terminator config file should look like: custom_command = "echo \"foo#bar\"" #Final comment - this will work as expected. ---- +// ================================================================== \\ + == global_config These are the options Terminator currently supports in the *global_config* section. @@ -236,12 +238,315 @@ Specify which plugins will be loaded by default. All other plugin classes will be ignored. + Default value: *['LaunchpadBugURLHandler', 'LaunchpadCodeURLHandler', 'APTURLHandler']* +// ================================================================== \\ + == keybindings These are the options Terminator currently supports in the *keybindings* section. +=== Creation & Destruction + +*split_horiz*:: +Split the current terminal horizontally. + +Default value: *O* + +*split_vert*:: +Split the current terminal vertically. + +Default value: *E* + +*split_auto*:: +Split the current terminal automatically, along the longer side. + +Default value: *A* + +*new_tab*:: +Open a new tab. + +Default value: *T* + +*new_window*:: +Open a new window as part of the existing process. + +Default value: *I* + +*new_terminator*:: +Spawn a new Terminator process. + +Default value: *I* + +*layout_launcher*:: +Open the layout launcher. + +Default value: *L* + +*close_term*:: +Close the current terminal. + +Default value: *W* + +*close_window*:: +Close the current window. + +Default value: *Q* + +=== Navigation + +*cycle_next*:: +Focus the next terminal. This is an alias for *go_next*. + +Default value: *Tab* + +*cycle_prev*:: +Focus the previous terminal. This is an alias for *go_prev*. + +Default value: *Tab* + +*go_next*:: +Focus the next terminal. + +Default value: *N* + +*go_prev*:: +Focus the previous terminal. + +Default value: *P* + +*go_up*:: +Focus the terminal above the current one. + +Default value: *Up* + +*go_down*:: +Focus the terminal below the current one. + +Default value: *Down* + +*go_left*:: +Focus the terminal to the left of the current one. + +Default value: *Left* + +*go_right*:: +Focus the terminal to the right of the current one. + +Default value: *Right* + +// --- Scroll --- + +*page_up*:: +Scroll the terminal up one page. + +*page_down*:: +Scroll the terminal down one page. + +*page_up_half*:: +Scroll the terminal up half a page. + +*page_down_half*:: +Scroll the terminal down half a page. + +*line_up*:: +Scroll the terminal up one line. + +*line_down*:: +Scroll the terminal down one line. + +// --- Tab --- + +*next_tab*:: +Move to the next tab. + +Default value: *Page_Down* + +*prev_tab*:: +Move to the previous tab. + +Default value: *Page_Up* + +*switch_to_tab_1*, *switch_to_tab_2*, ... *switch_to_tab_10*:: +Move to the **N**th tab. +TODO note on switch_to_tab_1? + +=== Organisation + +*resize_up*:: +Move the parent dragbar up. + +Default value: *Up* + +*resize_down*:: +Move the parent dragbar down. + +Default value: *Down* + +*resize_left*:: +Move the parent dragbar left. + +Default value: *Left* + +*resize_right*:: +Move the parent dragbar right. + +Default value: *Right* + +*rotate_cw*:: +Rotate terminals clockwise. + +Default value: *R* + +*rotate_ccw*:: +Rotate terminals counter+clockwise. + +Default value: *R* + +*move_tab_right*:: +Move the current tab to the right by swapping position with the next +tab. + +Default value: *Page_Down* + +*move_tab_left*:: +Move the current tab to the left by swapping position with the previous +tab. + +Default value: *Page_Up* + +=== Focus + +*full_screen*:: +Toggle window to fullscreen. + +Default value: *F11* + +*toggle_zoom*:: +Toggle maximisation of the current terminal. + +Default value: *X* + +*scaled_zoom*:: +Toggle maximisation of the current terminal and scale the font when +maximised. + +Default value: *Z* + +*hide_window*:: +TODO + +Default value: *A* + +=== Grouping & Broadcasting + +*create_group*:: +Create a new group. + +// --- Grouping: All --- + +*group_all*:: +Group all terminals together. + +Default value: *G* + +*ungroup_all*:: +Ungroup all terminals. + +*group_all_toggle*:: +Toggle grouping of all terminals. + +// --- Grouping: Window --- + +*group_win*:: +Group all terminals in the current window together. + +*ungroup_win*:: +Ungroup all terminals in the current window. + +Default value: *W* + +*group_win_toggle*:: +Toggle grouping of all terminals in the current window. + +// --- Grouping: Tab --- + +*group_tab*:: +Group all terminals in the current tab together. + +Default value: *T* + +*ungroup_tab*:: +Ungroup all terminals in the current tab. + +Default value: *T* + +*group_tab_toggle*:: +Toggle grouping of all terminals in the current tab. + +// Broadcasting + +*broadcast_off*:: +Turn broadcasting off. + +*broadcast_group*:: +Broadcast to all terminals in the same group as the current terminal. + +*broadcast_all*:: +Broadcast to all terminals. + +=== Miscellaneous + +*help*:: +Open the full HTML manual in the browser. + +Default value: *F1* + +*preferences*:: +Open the Preferences window. + +*preferences_keybindings*:: +Open the Preferences window and show the Keybindings tab. + +Default value: *K* + +*copy*:: +Copy the selected text to the clipboard. + +Default value: *C* + +*paste*:: +Paste the current contents of the clipboard. + +Default value: *V* + +*paste_selection*:: TODO +*toggle_scrollbar*:: +Toggle the scrollbar. + +Default value: *S* + +*search*:: +Search for text in the terminal scrollback history. + +Default value: *F* + +*reset*:: +Reset the terminal state. + +Default value: *R* + +*reset_clear*:: +Reset the terminal state and clear the terminal window. + +Default value: *G* + +*zoom_in*:: +Increase the font size by one unit. + +Default value: *plus* + +*zoom_out*:: +Decrease the font size by one unit. + +Default value: *minus* + +*zoom_normal*:: +Restore the original font size. + +Default value: *0* + +*zoom_in_all*:: +Increase the font size by one unit for all terminals. + +*zoom_out_all*:: +Decrease the font size by one unit for all terminals. + +*zoom_normal_all*:: +Restore the original font size for all terminals. + +*edit_window_title*:: +Rename the current window. + +Default value: *W* + +*edit_tab_title*:: +Rename the current tab. + +Default value: *A* + +*edit_terminal_title*:: +Rename the current terminal. + +Default value: *X* + +*insert_number*:: +Insert the current terminal's number, i.e. 1 to 12. + +Default value: *1* + +*insert_padded*:: +Insert the current terminal's number, but zero padded, i.e. 01 to 12. + +Default value: *0* + +*next_profile*:: +Switch to the next profile. + +*previous_profile*:: +Switch to the previous profile. + +// ================================================================== \\ + == profiles These are the options Terminator currently supports in the *profiles* section. Each profile should be its own subsection with a header in the @@ -542,6 +847,11 @@ Specify the background color to use for the terminal's titlebar in case the terminal is in a group and is receiving input while unfocused. + Default value: *#0076c9* +// ================================================================== \\ + +TODO layouts section? +TODO plugins section? + == SEE ALSO *terminator*(1), http://www.voidspace.org.uk/python/configobj.html // this link might be dead From b0cb125287964841fb753e32a1ea68729ac91e42 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Fri, 7 Apr 2023 22:15:50 +0200 Subject: [PATCH 40/50] terminator_config: add description to some settings --- doc/terminator_config.adoc | 40 ++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/doc/terminator_config.adoc b/doc/terminator_config.adoc index 2f29fe6f..5842d958 100644 --- a/doc/terminator_config.adoc +++ b/doc/terminator_config.adoc @@ -64,7 +64,7 @@ If set to True, the window will always stay on top of other windows. + Default value: *False* *sticky* = _boolean_:: -TODO + +If set to True, the window will be visible on all workspaces. + Default value: *False* *hide_on_lose_focus* = _boolean_:: @@ -112,10 +112,6 @@ the width of the window - in that case scroll buttons will appear to move through the tabs. + Default value: *False* -*homogeneous_tabbar* = _boolean_:: -TODO + -Default value: *True* - === Terminal Behavior & Appearance // --- Terminal behavior --- @@ -140,12 +136,15 @@ Default value: *False* // --- Copy & Paste behavior --- *putty_paste_style* = _boolean_:: -If set to True, right-click will paste the Primary selection, -while middle-click will popup the context menu. + +If set to True, right-click will paste text, while middle-click will +popup the context menu. The source for the pasted text depends on the +value of *putty_paste_style_source_clipboard*. + Default value: *False* *putty_paste_style_source_clipboard* = _boolean_:: -TODO + +If set to True, the Clipboard will be used as source for pasting in +PuTTY style. Otherwise, the Primary Selection will be used. + +This option is ignored unless *putty_paste_style* is set to True. + Default value: *False* *disable_mouse_paste* = _boolean_:: @@ -183,11 +182,11 @@ terminals that do not have focus. + Default value: *1.0* *cell_width* = _float_:: -TODO + +Specify the horizontal scale of character cells in the terminal. + Default value: *1.0* *cell_height* = _float_:: -TODO + +Specify the vertical scale of character cells in the terminal. + Default value: *1.0* *title_at_bottom* = _boolean_:: @@ -402,7 +401,7 @@ maximised. + Default value: *Z* *hide_window*:: -TODO + +Hide/Show all Terminator windows. + Default value: *A* === Grouping & Broadcasting @@ -575,19 +574,22 @@ If set to True, the mouse pointer will be hidden when typing. + Default value: *True* *term* = _string_:: -TODO + +Specify the value Terminator will assign to the 'TERM' environment +variable. + Default value: *xterm-256color* *colorterm* = _string_:: -TODO + +Specify the value Terminator will assign to the 'COLORTERM' environment +variable. + Default value: *truecolor* *split_to_group* = _boolean_:: -TODO + +If set to True, the terminal created by splitting will be inserted in +the current terminal's group. + Default value: *False* *autoclean_groups* = _boolean_:: -TODO + +If set to True, empty groups will be removed. + Default value: *True* // --- Font --- @@ -702,9 +704,13 @@ Default value: *False* === Background *background_darkness* = _float_:: -TODO + +Specify the transparency of the background color. +The value must be between 0.0 and 1.0. +This option is ignored unless *background_type* is set to 'transparent' +or 'image'. + Default value: *0.5* +// TODO background_type needs improvements *background_type* = _string_:: Specify what type of background the terminal will have. 'solid' means the background will be a solid (opaque) color. @@ -712,7 +718,7 @@ Specify what type of background the terminal will have. transparency being the value of *background_darkness*. 'image' means the background will be an image, whose path is the value of *background_image*; the background color will be drawn on top of it, -with its transparenty being the value of *background_darkness*. + +with its transparency being the value of *background_darkness*. + Default value: *solid* *background_image* = _path string_:: From fec901d09e198a369913e681bcee8eb49998d6cc Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Fri, 21 Apr 2023 16:16:21 +0200 Subject: [PATCH 41/50] terminator_config: add layouts and plugins sections + add description to some settings --- doc/terminator_config.adoc | 80 +++++++++++++++++++++++++++++++------- 1 file changed, 66 insertions(+), 14 deletions(-) diff --git a/doc/terminator_config.adoc b/doc/terminator_config.adoc index 5842d958..3fef4b23 100644 --- a/doc/terminator_config.adoc +++ b/doc/terminator_config.adoc @@ -2,7 +2,7 @@ :doctype: manpage :manmanual: Manual for Terminator :mansource: Terminator -:revdate: 2023-04-07 +:revdate: 2023-04-21 :docdate: {revdate} == NAME @@ -39,6 +39,17 @@ This is what a Terminator config file should look like: scrollback_lines = '500' #More comment. Single quotes are valid too cursor_blink = True custom_command = "echo \"foo#bar\"" #Final comment - this will work as expected. + +[layouts] + [[default]] + [[[window0]]] + type = Window + parent = "" + [[[child1]]] + type = Terminal + parent = window0 + +[plugins] ---- // ================================================================== \\ @@ -68,11 +79,11 @@ If set to True, the window will be visible on all workspaces. + Default value: *False* *hide_on_lose_focus* = _boolean_:: -TODO + +If set to True, the window will be hidden when focus is lost. + Default value: *False* *hide_from_taskbar* = _boolean_:: -TODO + +If set to True, the window will be hidden from the taskbar. + Default value: *False* *geometry_hinting* = _boolean_:: @@ -225,11 +236,13 @@ does something relevant with it. This option is ignored unless *use_custom_url_handler* is set to True. *case_sensitive* = _boolean_:: -TODO + +If set to True, uppercase and lowercase characters will be considered +different when searching text in the terminal. + Default value: *True* *invert_search* = _boolean_:: -TODO + +If set to True, the search direction will be inverted (bottom to top) +when searching text in the terminal. + Default value: *False* *enabled_plugins* = _list of strings_:: @@ -347,7 +360,8 @@ Default value: *Page_Up* *switch_to_tab_1*, *switch_to_tab_2*, ... *switch_to_tab_10*:: Move to the **N**th tab. -TODO note on switch_to_tab_1? +Note that *1* may be provided as *!* or similar, +depending on the keyboard layout. === Organisation @@ -549,7 +563,7 @@ Switch to the previous profile. == profiles These are the options Terminator currently supports in the *profiles* section. Each profile should be its own subsection with a header in the -format *+[[name]]+*. +format *\[[name]]*. === General @@ -640,7 +654,8 @@ escape sequence for the terminal bell. + Default value: *False* *urgent_bell* = _boolean_:: -TODO + +If set to True, the window's urgency hint will be set when an +application writes the escape sequence for the terminal bell. + Default value: *False* *icon_bell* = _boolean_:: @@ -694,8 +709,11 @@ Specify the background color to use for the terminal. This option is ignored unless *use_theme_colors* is set to False. + Default value: *#000000* -*palette* = TODO:: -TODO +*palette* = _string list of colors_:: +Specify the 16-color palette to use for the terminal. +The value must be a string containing a colon-separated list of colors +in hex format. + +For example, "#000000:#cd0000:#00cd00: ... ". *bold_is_bright* = _boolean_:: If set to True, bold text will have brighter colors. + @@ -786,7 +804,8 @@ The value can be: 'control-h' for the ASCII BS character (Ctrl+H); 'escape-sequence' for the escape sequence typically bound to backspace or delete; -'automatic' for TODO. + +'automatic' for letting the terminal automatically decide the character +sequence to use. + Default value: *ascii-del* *delete_binding* = _string_:: @@ -796,7 +815,8 @@ The value can be: 'control-h' for the ASCII BS character (Ctrl+H); 'escape-sequence' for the escape sequence typically bound to backspace or delete; -'automatic' for TODO. + +'automatic' for letting the terminal automatically decide the character +sequence to use. + Default value: *escape-sequence* === Titlebar @@ -855,8 +875,40 @@ Default value: *#0076c9* // ================================================================== \\ -TODO layouts section? -TODO plugins section? +== layouts +The *layouts* section contains all the saved layouts. Each layout should +be its own subsection with a header in the format *\[[name]]*. + +Each object in a layout is a named sub-sub-section with various +properties. + +*type* = _string_:: +Can be any of: 'Window', 'Notebook', 'HPaned', 'VPaned', 'Terminal'. + +*parent* = _string_:: +Specify which object is the parent of the component being defined. +All objects, except those of type Window, must specify a parent. + +This is an example of a *layouts* section containing only the layout +named "default". + +---- +[layouts] + [[default]] + [[[window0]]] + type = Window + parent = "" + [[[child1]]] + type = Terminal + parent = window0 +---- + +// ================================================================== \\ + +== plugins +Terminator plugins can add their own configuration to the config file, +and it will appear as a subsection. Please refer to the documentation of +individual plugins for more information. == SEE ALSO *terminator*(1), http://www.voidspace.org.uk/python/configobj.html From 20ddb134905d3849fcde93bd1d043ff626e1d4d4 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Sat, 22 Apr 2023 14:41:19 +0200 Subject: [PATCH 42/50] terminator_config: add description to all remaining settings + reword some descriptions + fix the link to ConfigObj's documentation --- doc/terminator_config.adoc | 86 ++++++++++++++++++++++---------------- 1 file changed, 49 insertions(+), 37 deletions(-) diff --git a/doc/terminator_config.adoc b/doc/terminator_config.adoc index 3fef4b23..bcca88ff 100644 --- a/doc/terminator_config.adoc +++ b/doc/terminator_config.adoc @@ -2,7 +2,7 @@ :doctype: manpage :manmanual: Manual for Terminator :mansource: Terminator -:revdate: 2023-04-21 +:revdate: 2023-04-22 :docdate: {revdate} == NAME @@ -64,10 +64,10 @@ These are the options Terminator currently supports in the *window_state* = _string_:: Control how the Terminator window opens. -'normal' means it opens normally. -'maximise' means it opens in a maximised state. -'fullscreen' means it opens in a fullscreen state. -'hidden' means it stays hidden. + +'normal' to open normally. +'maximise' to open in a maximised state. +'fullscreen' to open in a fullscreen state. +'hidden' to stay hidden. + Default value: *normal* *always_on_top* = _boolean_:: @@ -171,15 +171,16 @@ not get sent. + Default value: *True* *clear_select_on_copy* = _boolean_:: -TODO + +If set to True, text selection will be cleared after copying using the +*copy* keybinding. + Default value: *False* // --- Terminal appearance --- *handle_size* = _integer_:: Specify the width of the separator between terminals. -Anything outside the range 0-20 (inclusive) will be ignored and use your -default theme value. + +Anything outside the range 0-20 (inclusive) will be ignored and the +default theme value will be used instead. + Default value: *1* *inactive_color_offset* = _float_:: @@ -217,7 +218,8 @@ Terminator process for each invocation. + Default value: *True* *extra_styling* = _boolean_:: -TODO + +If set to True, Terminator may load an additional CSS styling file, +depending on the theme. + Default value: *True* *broadcast_default* = _string_:: @@ -485,15 +487,15 @@ Open the Preferences window and show the Keybindings tab. + Default value: *K* *copy*:: -Copy the selected text to the clipboard. + +Copy the selected text to the Clipboard. + Default value: *C* *paste*:: -Paste the current contents of the clipboard. + +Paste the current contents of the Clipboard. + Default value: *V* *paste_selection*:: -TODO +Paste the current contents of the Primary Selection. *toggle_scrollbar*:: Toggle the scrollbar. + @@ -572,7 +574,8 @@ If set to True, text in the terminal can displayed in bold. + Default value: *True* *copy_on_selection* = _boolean_:: -TODO + +If set to True, text selections will be automatically copied to the +Clipboard, in addition to being copied to the Primary Selection. + Default value: *False* *disable_mousewheel_zoom* = _boolean_:: @@ -580,7 +583,12 @@ If set to True, Ctrl+mouse_wheel will not zoom or unzoom the terminal. + Default value: *False* *word_chars* = _string_:: -TODO + +Specify the characters that will be considered part of a single word +when selecting text by word. +Hyphen and alphanumerics do not need to be specified. +Ranges can be given, e.g. "A-Z". + +For example, if *word_chars* = "," then "foo,bar" is considered a single +word. + Default value: **-,./?%&#:_** *mouse_autohide* = _boolean_:: @@ -630,7 +638,9 @@ Can be any of: 'block', 'underline', 'ibeam'. + Default value: *block* *cursor_color_default* = _boolean_:: -TODO + +If set to True, the background and foreground colors of the terminal +will be used as foreground and background colors for the cursor, +respectively. + Default value: *True* *cursor_fg_color* = _color string_:: @@ -670,7 +680,9 @@ Default value: *False* === Command *login_shell* = _boolean_:: -TODO + +If set to True, the terminal will run the default shell (or the command +specified by *custom_command*) as a login shell. +This means the first argument passed to the shell/command will be '-l'. + Default value: *False* *use_custom_command* = _boolean_:: @@ -684,11 +696,11 @@ This option is ignored unless *use_custom_command* is set to True. *exit_action* = _string_:: Specify the action to perform when the terminal is closed. -'close' means the terminal will be removed. -'restart' means the shell (or the command specified in *custom_command*) -will be restarted. -'hold' means the terminal will be kept open, even if the process in it -has terminated. + +'close' to remove the terminal. +'restart' to restart the shell (or the command specified by +*custom_command*). +'hold' to keep the terminal open, even if the process in it has +terminated. + Default value: *close* === Colors @@ -728,15 +740,16 @@ This option is ignored unless *background_type* is set to 'transparent' or 'image'. + Default value: *0.5* -// TODO background_type needs improvements *background_type* = _string_:: Specify what type of background the terminal will have. -'solid' means the background will be a solid (opaque) color. -'transparent' means the background will be a transparent color, with its -transparency being the value of *background_darkness*. -'image' means the background will be an image, whose path is the value -of *background_image*; the background color will be drawn on top of it, -with its transparency being the value of *background_darkness*. + +'solid' for a solid (opaque) background. +'transparent' for a transparent background. +'image' for a background image. + +If this is set to 'transparent', the transparency of the background will +be the value of *background_darkness*. +If this is set to 'image', the image specified by *background_image* +will be the background; the background color will then be drawn on top +of it, with a transparency specified by *background_darkness*. + Default value: *solid* *background_image* = _path string_:: @@ -745,13 +758,13 @@ This option is ignored unless *background_type* is set to 'image'. *background_image_mode* = _string_:: Specify how the background image will be drawn. -'stretch_and_fill' means the image will fill the terminal entirely, -without necessarily maintaining aspect ratio. -'scale_and_fit' means the image will fit inside the terminal, eventually -leaving blank bars, while maintaining aspect ratio. -'scale_and_crop' means the image will fill the terminal entirely, -eventually getting cropped, while maintaining aspect ratio. -'tiling' means the image will be repeated as to fill the terminal. +'stretch_and_fill' to fill the terminal entirely, without necessarily +maintaining aspect ratio. +'scale_and_fit' to fit the image inside the terminal, eventually leaving +blank bars, while maintaining aspect ratio. +'scale_and_crop' to fill the terminal entirely, eventually cropping the +image, while maintaining aspect ratio. +'tiling' to repeat the image as to fill the terminal. This option is ignored unless *background_type* is set to 'image'. + Default value: *stretch_and_fill* @@ -911,5 +924,4 @@ and it will appear as a subsection. Please refer to the documentation of individual plugins for more information. == SEE ALSO -*terminator*(1), http://www.voidspace.org.uk/python/configobj.html -// this link might be dead +*terminator*(1), https://configobj.readthedocs.io/ From f68f288c331af0996a98066cb874c9f84a352d5d Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Sat, 22 Apr 2023 14:50:45 +0200 Subject: [PATCH 43/50] Update terminator_config.5 This file is now compiled from 'terminator_config.adoc' --- doc/terminator_config.5 | 1858 ++++++++++++++++++++++++++++----------- 1 file changed, 1345 insertions(+), 513 deletions(-) diff --git a/doc/terminator_config.5 b/doc/terminator_config.5 index 8a9b2b4e..04b1e084 100644 --- a/doc/terminator_config.5 +++ b/doc/terminator_config.5 @@ -1,528 +1,1360 @@ -.TH "TERMINATOR_CONFIG" "5" "Feb 22, 2008" "Nicolas Valcarcel " "" +'\" t +.\" Title: terminator_config +.\" Author: [see the "AUTHOR(S)" section] +.\" Generator: Asciidoctor 2.0.18 +.\" Date: 2023-04-22 +.\" Manual: Manual for Terminator +.\" Source: Terminator +.\" Language: English +.\" +.TH "TERMINATOR_CONFIG" "5" "2023-04-22" "Terminator" "Manual for Terminator" +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.ss \n[.ss] 0 +.nh +.ad l +.de URL +\fI\\$2\fP <\\$1>\\$3 +.. +.als MTO URL +.if \n[.g] \{\ +. mso www.tmac +. am URL +. ad l +. . +. am MTO +. ad l +. . +. LINKSTYLE blue R < > +.\} .SH "NAME" -~/.config/terminator/config \- the config file for Terminator terminal emulator. +terminator_config \- the config file for Terminator terminal emulator .SH "DESCRIPTION" -This manual page documents briefly the -.B Terminator -config file. Terminator manages its configuration file via the ConfigObj library to combine flexibility with clear, human editable files. As of version 0.90, Terminator offers a full GUI preferences editor which automatically saves its config file so you don't need to write a config file by hand. -.PP +.sp +This file contains the configuration for \fBterminator\fP(1). +Terminator manages its configuration file via the ConfigObj library to +combine flexibility with clear, human editable files. +.br +Terminator offers a full GUI preferences editor which automatically +saves its config file so you don\(cqt need to write a config file by hand. .SH "FILE LOCATION" -Normally the config file will be ~/.config/terminator/config, but it may be overridden with $XDG_CONFIG_HOME (in which case it will be $XDG_CONFIG_HOME/terminator/config) +.sp +Normally the config file will be \fB~/.config/terminator/config\fP, but it +may be overridden with \fB$XDG_CONFIG_HOME\fP (in which case it will be +\fB$XDG_CONFIG_HOME/terminator/config\fP). .SH "FILE FORMAT" +.sp This is what a Terminator config file should look like: +.sp +.if n .RS 4 +.nf +.fam C +# This is a comment +[global_config] + focus = system - # This is a comment - [global_config] - focus = system +[keybindings] + full_screen = F11 - [keybindings] - full_screen = F11 - - [profiles] - [[default]] - font = Fixed 10 - background_color = "#000000" # A comment - foreground_color = "#FFFFFF" # Note that hex colour values must be quoted - scrollback_lines = '500' #More comment. Single quotes are valid too - cursor_blink = True - custom_command = "echo \\"foo#bar\\"" #Final comment - this will work as expected. - -Below are the individual sections that can exist in the config file: - -.SH "global_config" -These are the options Terminator currently supports in the global_config section: -.TP -.B dbus -Control whether or not Terminator will load its DBus server. When this server is loaded, running Terminator multiple times will cause the first Terminator process to open additional windows. If this configuration item is set to False, or the python dbus module is unavailable, running Terminator multiple times will run a separate Terminator process for each invocation. -Default value: \fBTrue\fR -.TP -.B focus -Control how focus is given to terminals. 'click' means the focus only moves to a terminal after you click in it. 'sloppy' means the focus will follow the mouse pointer. 'system' means the focus will match that used by a GNOME window manager. -Default value: \fBclick\fR -.TP -.B handle_size -Controls the width of the separator between terminals. Anything outside the range 0-20 (inclusive) will be ignored and use your default theme value. -Default value: \fB-1\fR -.TP -.B geometry_hinting -If True the window will resize in step with font sizes, if False it will follow pixels -Default value: \fBFalse\fR -.TP -.B window_state -When set to 'normal' the Terminator window opens normally. 'maximise' opens the window in a maximised state, 'fullscreen' in a fullscreen state and 'hidden' will make it not shown by default. -Default value: \fBnormal\fR -.TP -.B borderless \fR(boolean) -Controls whether the Terminator window will be started without window borders -Default value: \fBFalse\fR -.TP -.B tab_position -Defines where tabs are placed. Can be any of: top, left, right, bottom. -If this is set to "hidden", the tab bar will not be shown. Note that hiding the tab bar is very confusing and not recommended. -Default value: \fBtop\fR -.TP -.B broadcast_default -Defines default broadcast behavior. Can be any of: all, group, off. -Default value: \fBgroup\fR -.TP -.B close_button_on_tab \fR(boolean) -If set to True, tabs will have a close button on them. -Default value: \fBTrue\fR -.TP -.B hide_tabbar \fR(boolean) -If set to True, the tab bar will be hidden. This means there will be no visual indication of either how many tabs there are, or which one you are on. Be warned that this can be very confusing and hard to use. -.B NOTE: THIS OPTION IS DEPRECATED, USE tab_position INSTEAD -Default value: \fBFalse\fR -.TP -.B scroll_tabbar \fR(boolean) -If set to True, the tab bar will not fill the width of the window. The titlebars of the tabs will only take as much space as is necessary for the text they contain. Except, that is, if the tabs no longer fit the width of the window - in that case scroll buttons will appear to move through the tabs. -Default value: \fBFalse\fR -.TP -.B try_posix_regexp \fR(boolean) -If set to True, URL matching regexps will try to use POSIX style first, and fall back on GNU style on failure. If you are on Linux but URL matches don't work, try setting this to True. If you are not on Linux, but you get VTE warnings on startup saying "Error compiling regular expression", set this to False to silence them (they are otherwise harmless). -Default value: \fBFalse\fR on Linux, \fBTrue\fR otherwise. -.TP -.B use_custom_url_handler \fR(boolean) -If set to True, URL handling will be given over entirely to the program specified by 'custom_url_handler'. -Default value: \fBFalse\fR -.TP -.B custom_url_handler \fR(string) -Path to a program which accepts a URI as an argument and does something relevant with it. This option is ignored unless 'use_custom_url_handler' is set to True. -Default value: unset -.TP -.B disable_real_transparency \fR(string) -If this is set to True, Terminator will never try to use 'real' transparency if your windowing environment supports it. Instead it will use 'fake' transparency where a background image is shown, but other windows are not. -Default value: False -.TP -.B title_transmit_fg_color -Sets the colour of the text shown in the titlebar of the active terminal. -Default value: \fB'#FFFFFF'\fR -.TP -.B title_transmit_bg_color -Sets the colour of the background of the titlebar in the active terminal. -Default value: \fB'#C80003'\fR -.TP -.B title_receive_fg_color -Sets the colour of the text shown in the titlebar of any terminal that \fBwill\fR receive input from the active terminal. -Default value: \fB'#FFFFFF'\fR -.TP -.B title_receive_bg_color -Sets the colour of the background of the titlebar of any terminal that \fBwill\fR receive input from the active terminal. -Default value: \fB'#0076C9'\fR -.TP -.B title_inactive_fg_color -Sets the colour of the text shown in the titlebar of any terminal that will \fBnot\fR receive input from the active terminal. -Default value: \fB'#000000'\fR -.TP -.B title_inactive_bg_color -Sets the colour of the background of the titlebar of any terminal that will \fBnot\fR receive input from the active terminal. -Default value: \fB'#C0BEBF'\fR -.TP -.B title_use_system_font \fR(boolean) -Whether or not to use the GNOME default proportional font for titlebars. -Default value: \fBTrue\fR -.TP -.B title_font \fR(string) -An Pango font name. Examples are "Sans 12" or "Monospace Bold 14". -Default value: \fB"Sans 9"\fR -.TP -.B inactive_color_offset -Controls how much to reduce the colour values of fonts in terminals that do not have focus. It is a simple multiplication -factor. A font colour that was RGB(200,200,200) with an inactive_color_offset of 0.5 would set inactive terminals to -RGB(100,100,100). -.TP -.B always_split_with_profile -Controls whether splits/tabs will continue to use the profile of their peer terminal. If set to False, they will always use -the default profile. -Default value: \fBFalse\fR -.TP -.B putty_paste_style \fR(boolean) -If set to True, right-click will paste the Primary selection, middle-click will popup the context menu. -Default value: \fBFalse\fR -.TP -.B smart_copy \fR(boolean) -If set to True, and there is no selection, the shortcut is allowed to pass through. This is useful for overloading Ctrl-C to copy a selection, or send the SIGINT to the current process if there is no selection. If False the shortcut does not pass through at all, and the SIGINT does not get sent. -Default value: \fBTrue\fR -.TP -.B enabled_plugins -A list of plugins which should be loaded by default. All other plugin classes will be ignored. The default value includes two -plugins related to Launchpad, which are enabled by default to provide continuity with earlier releases where these were the -only substantial plugins available, and all plugins were loaded by default. -Default value: \fB"LaunchpadBugURLHandler, LaunchpadCodeURLHandler"\fR - -.SH keybindings -These are the options Terminator currently supports in the keybindings section: -.TP -.B zoom_in -Make font one unit larger. -Default value: \fBplus\fR -.TP -.B zoom_out -Make font one unit smaller. -Default value: \fBminus\fR -.TP -.B zoom_normal -Return font to pre-configured size. -Default value: \fB0\fR -.TP -.B new_tab -Open a new tab. -Default value: \fBT\fR -.TP -.B cycle_next -Cycle forwards through the tabs. -Default value: \fBTab\fR -.TP -.B cycle_prev -Cycle backwards through the tabs. -Default value: \fBTab\fR -.B go_next -Move cursor focus to the next tab. -Default value: \fBN\fR -.TP -.B go_prev -Move cursor focus to the previous tab. -Default value: \fBP\fR -.TP -.B go_up -Move cursor focus to the terminal above. -Default value: \fBUp\fR -.TP -.B go_down -Move cursor focus to the terminal below. -Default value: \fBDown\fR -.TP -.B go_left -Move cursor focus to the terminal to the left. -Default value: \fBLeft\fR -.TP -.B go_right -Move cursor focus to the terminal to the right. -Default value: \fBRight\fR -.TP -.B rotate_cw -Rotate terminals clockwise. -Default value: \fBR\fR -.TP -.B rotate_ccw -Rotate terminals counter-clockwise. -Default value: \fBR\fR -.TP -.B split_horiz -Split the current terminal horizontally. -Default value: \fBO\fR -.TP -.B split_vert -Split the current terminal vertically. -Default value: \fBE\fR -.TP -.B close_term -Close the current terminal. -Default value: \fBW\fR -.TP -.B copy -Copy the currently selected text to the clipboard. -Default value: \fBC\fR -.TP -.B paste -Paste the current contents of the clipboard. -Default value: \fBV\fR -.TP -.B paste_selection -Paste the current contents of the primary selection. -Default value: \fBUnbound\fR -.TP -.B toggle_scrollbar -Show/Hide the scrollbar. -Default value: \fBS\fR -.TP -.B search -Search for text in the terminal scrollback history. -Default value: \fBF\fR -.TP -.B close_window -Quit Terminator. -Default value: \fBQ\fR -.TP -.B resize_up -Move the parent dragbar upwards. -Default value: \fBUp\fR -.TP -.B resize_down -Move the parent dragbar downwards. -Default value: \fBDown\fR -.TP -.B resize_left -Move the parent dragbar left. -Default value: \fBLeft\fR -.TP -.B resize_right -Move the parent dragbar right. -Default value: \fBRight\fR -.TP -.B move_tab_right -Swap the current tab with the one to its right. -Default value: \fBPage_Down\fR -.TP -.B move_tab_left -Swap the current tab with the one to its left. -Default value: \fBPage_Up\fR -.TP -.B toggle_zoom -Zoom/Unzoom the current terminal to fill the window. -Default value: \fBX\fR -.TP -.B scaled_zoom -Zoom/Unzoom the current terminal to fill the window, and scale its font. -Default value: \fBZ\fR -.TP -.B next_tab -Move to the next tab. -Default value: \fBPage_Down\fR -.TP -.B prev_tab -Move to the previous tab. -Default value: \fBPage_Up\fR -.TP -.B switch_to_tab_1 - switch_to_tab_10 -Keys to switch directly to the numbered tab. -Note that 1 may need to be provided as ! or similar, -depending on your keyboard layout. -Default value: \fBUnbound\fR -.TP -.B edit_window_title -Edit the current active window's title -Default value: \fBW\fR -.TP -.B edit_tab_title -Edit the currently active tab's title -Default value: \fBA\fR -.TP -.B edit_terminal_title -Edit the currently active terminal's title -Default value: \fBX\fR -.TP -.B full_screen -Toggle the window to a fullscreen window. -Default value: \fBF11\fR -.TP -.B reset -Reset the terminal state. -Default value: \fBR\fR -.TP -.B reset_clear -Reset the terminal state and clear the terminal window. -Default value: \fBG\fR -.TP -.B hide_window -Toggle visibility of the Terminator window. -Default value: \fBa\fR -.TP -.B group_all -Group all terminals together so input sent to one goes to all of them. -Default value: \fBg\fR -.TP -.B ungroup_all -Remove grouping from all terminals. -Default value: \fBG\fR -.TP -.B group_tab -Group all terminals in the current tab together so input sent to one goes to all of them. -Default value: \fBt\fR -.TP -.B ungroup_tab -Remove grouping from all terminals in the current tab. -Default value: \fBT\fR -.TP -.B new_window -Open a new Terminator window as part of the existing process. -Default value: \fBI\fR -.TP -.B new_terminator -Spawn a new instance of Terminator. -Default value: \fBi\fR - -.SH profiles -These are the options Terminator currently supports in the profiles section. -Each profile should be its own subsection with a header in the format \fB[[name]]\fR - -.B allow_bold\fR (boolean) -If true, allow applications in the terminal to make text boldface. -Default value: \fBTrue\fR -.TP -.B audible_bell\fR (boolean) -If true, make a noise when applications send the escape sequence for the terminal bell. -Default value: \fBFalse\fR -.TP -.B visible_bell\fR (boolean) -If true, flash the terminal when applications send the escape sequence for the terminal bell. -Default value: \fBFalse\fR -.TP -.B urgent_bell\fR (boolean) -If true, set the window manager "urgent" hint when applications send the escale sequence for the terminal bell. Any keypress will cancel the urgent status. -Default value: \fBFalse\fR -.TP -.B icon_bell\fR (boolean) -If true, briefly show a small icon on the terminal title bar for the terminal bell. -Default value: \fBTrue\fR -.TP -.B force_no_bell\fR (boolean) -If true, don't make a noise or flash. All terminal bells will be ignored. -Default value: \fBFalse\fR -.TP -.B use_theme_colors -If true, ignore the configured colours and use values from the theme instead. -Default value: \fBFalse\fR -.TP -.B bold_is_bright -If true, show bold text with increased brightness. If false, then text boldness can be controlled by applications independently from the text brightness. -Default value: \fBFalse\fR -.TP -.B background_color -Default colour of terminal background, as a colour specification (can be HTML-style hex digits, or a colour name such as "red"). \fBNote:\fR You may need to set \fBuse_theme_colors=False\fR to force this setting to take effect. -Default value: \fB'#000000'\fR -.TP -.B background_darkness -A value between 0.0 and 1.0 indicating how much to darken the background image. 0.0 means no darkness, 1.0 means fully dark. If the terminal is set to transparent, this setting controls how transparent it is. 0.0 means fully transparent, 1.0 means fully opaque. -Default value: \fB0.5\fR -.TP -.B background_type -Type of terminal background. May be "solid" for a solid colour or "transparent" for full transparency in compositing window managers. -Default value: \fBsolid\fR -.TP -.B backspace_binding -Sets what code the backspace key generates. Possible values are "ascii-del" for the ASCII DEL character, "control-h" for Control-H (AKA the ASCII BS character), "escape-sequence" for the escape sequence typically bound to backspace or delete. "ascii-del" is normally considered the correct setting for the Backspace key. -Default value: \fBascii\-del\fR -.TP -.B delete_binding -Sets what code the delete key generates. Possible values are "ascii-del" for the ASCII DEL character, "control-h" for Control-H (AKA the ASCII BS character), "escape-sequence" for the escape sequence typically bound to backspace or delete. "escape-sequence" is normally considered the correct setting for the Delete key. -Default value: \fBescape\-sequence\fR -.TP -.B color_scheme \fR(boolean) -If specified this sets foreground_color and background_color to pre-set values. Possible options are 'grey_on_black', 'black_on_yellow', 'black_on_white', 'white_on_black', 'green_on_black', 'orange_on_black', 'ambience', 'solarized_dark', 'solarized_light'. -Default value: \fRgrey_on_black\fR -.TP -.B cursor_blink \fR(boolean) -Controls if the cursor blinks. -Default value: \fBTrue\fR -.TP -.B cursor_color -Default colour of cursor, as a colour specification (can be HTML-style hex digits, or a colour name such as "red"). -Default value: Current value of \fBforeground_color\fR -.TP -.B cursor_shape -Default shape of cursor. Possibilities are "block", "ibeam", and "underline". -Default value: \fBblock\fR -.TP -.B term -This translates into the value that will be set for TERM in the environment of your terminals. -Default value: \fBxterm-256color\fR -.TP -.B colorterm -This translates into the value that will be set for COLORTERM in the environment of your terminals. -Default value: \fBtruecolor\fR -.TP -.B use_system_font -Whether or not to use the GNOME default monospace font for terminals. -Default value: \fBTrue\fR -.TP -.B font -An Pango font name. Examples are "Sans 12" or "Monospace Bold 14". -Default value: \fBMono 10\fR -.TP -.B foreground_color -Default colour of text in the terminal, as a colour specification (can be HTML-style hex digits, or a colour name such as "red"). \fBNote:\fR You may need to set \fBuse_theme_colors=False\fR to force this setting to take effect. -Default value: \fB'#AAAAAA'\fR -.TP -.B scrollbar_position -Where to put the terminal scrollbar. Possibilities are "left", "right", and "disabled". -Default value: \fBright\fR -.TP -.B show_titlebar -If true, a titlebar will be drawn for each terminal which shows the current title of that terminal. -Default value: \fBTrue\fR -.TP -.B scroll_background \fR(boolean) -If true, scroll the background image with the foreground text; if false, keep the image in a fixed position and scroll the text above it. -Default value: \fBTrue\fR -.TP -.B scroll_on_keystroke \fR(boolean) -If true, pressing a key jumps the scrollbar to the bottom. -Default value: \fBTrue\fR -.TP -.B scroll_on_output \fR(boolean) -If true, whenever there's new output the terminal will scroll to the bottom. -Default value: \fBFalse\fR -.TP -.B scrollback_lines -Number of scrollback lines to keep around. You can scroll back in the terminal by this number of lines; lines that don't fit in the scrollback are discarded. Warning: with large values, rewrapping on resize might be slow. -Default value: \fB500\fR -.TP -.B scrollback_infinite -If this is set to True, scrollback_lines will be ignored and VTE will keep the entire scrollback history. -Default value: \fBFalse\fR -.TP -.B focus_on_close -Sets which terminal should get the focus when another terminal is closed. Values can be "prev", "next" or "auto". -Using "auto", if the closed terminal is within a split window, the focus will be on the sibling terminal rather than another tab. -Default value: \fBauto\fR -.TP -.B exit_action -Possible values are "close" to close the terminal, and "restart" to restart the command. -Default value: \fBclose\fR -.TP -.B palette -Terminals have a 16-colour palette that applications inside the terminal can use. This is that palette, in the form of a colon-separated list of colour names. Colour names should be in hex format e.g. "#FF00FF". -.TP -.B word_chars -When selecting text by word, sequences of these characters are also considered members of single words. The hyphen and alphanumerics do not need to be specified. Ranges can be given as "A-Z". -Default value: \fB',./?%&#:_'\fR -.TP -.B mouse_autohide \fR(boolean) -Controls whether the mouse cursor should be hidden while typing. -Default value: \fBTrue\fR -.TP -.B use_custom_command \fR(boolean) -If True, the value of \fBcustom_command\fR will be used instead of the default shell. -Default value: \fBFalse\fR -.TP -.B custom_command -Command to execute instead of the default shell, if \fBuse_custom_command\fR is set to True. -Default value: Nothing -.TP -.B http_proxy -URL of an HTTP proxy to use, e.g. http://proxy.lan:3128/ -Default value: Nothing -.TP -.B encoding -Character set to use for the terminal. -Default value: \fBUTF-8\fR -.TP -.B copy_on_selection \fR(boolean) -If set to True, text selections will be automatically copied to the clipboard, in addition to being made the Primary selection. -Default value: \fBFalse\fR -.TP - -.SH layouts - -This describes the layouts section of the config file. Like with the profiles, each layout should be defined as a sub-section with a name formatted like: \fB[[name]]\fR. - -Each object in a layout is a named sub-sub-section with various properties: +[profiles] + [[default]] + font = Fixed 10 + background_color = "#000000" # A comment + foreground_color = "#FFFFFF" # Note that hex colour values must be quoted + scrollback_lines = \*(Aq500\*(Aq #More comment. Single quotes are valid too + cursor_blink = True + custom_command = "echo \(rs"foo#bar\(rs"" #Final comment \- this will work as expected. [layouts] [[default]] - [[window0]] + [[[window0]]] type = Window - [[child1]] + parent = "" + [[[child1]]] type = Terminal parent = window0 -Window objects may not have a parent attribute. \fBEvery\fR other object must specify a parent. This is how the structure of the window is determined. - -.SH plugins - -Terminator plugins can add their own configuration to the config file, and will appear as a sub-section. Please refer to the documentation of individual plugins for more information. - +[plugins] +.fam +.fi +.if n .RE +.SH "GLOBAL_CONFIG" +.sp +These are the options Terminator currently supports in the +\fBglobal_config\fP section. +.SS "Window Behavior & Appearance" +.sp +\fBwindow_state\fP = \fIstring\fP +.RS 4 +Control how the Terminator window opens. +\*(Aqnormal\*(Aq to open normally. +\*(Aqmaximise\*(Aq to open in a maximised state. +\*(Aqfullscreen\*(Aq to open in a fullscreen state. +\*(Aqhidden\*(Aq to stay hidden. +.br +Default value: \fBnormal\fP +.RE +.sp +\fBalways_on_top\fP = \fIboolean\fP +.RS 4 +If set to True, the window will always stay on top of other windows. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBsticky\fP = \fIboolean\fP +.RS 4 +If set to True, the window will be visible on all workspaces. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBhide_on_lose_focus\fP = \fIboolean\fP +.RS 4 +If set to True, the window will be hidden when focus is lost. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBhide_from_taskbar\fP = \fIboolean\fP +.RS 4 +If set to True, the window will be hidden from the taskbar. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBgeometry_hinting\fP = \fIboolean\fP +.RS 4 +If set to True, the window will resize in step with font sizes. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBsuppress_multiple_term_dialog\fP = \fIboolean\fP +.RS 4 +If set to True, Terminator will ask for confirmation when closing +multiple terminals. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBborderless\fP = \fIboolean\fP +.RS 4 +If set to True, the window will be started without window borders. +.br +Default value: \fBFalse\fP +.RE +.SS "Tab Behavior & Appearance" +.sp +\fBtab_position\fP = \fIstring\fP +.RS 4 +Specify where tabs are placed. +Can be any of: \*(Aqtop\*(Aq, \*(Aqleft\*(Aq, \*(Aqright\*(Aq, \*(Aqbottom\*(Aq, \*(Aqhidden\*(Aq. +If set to \*(Aqhidden\*(Aq, the tab bar will not be shown. Hiding the tab is not +recommended, as it can be very confusing. +.br +Default value: \fBtop\fP +.RE +.sp +\fBclose_button_on_tab\fP = \fIboolean\fP +.RS 4 +If set to True, tabs will have a close button on them. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBscroll_tabbar\fP = \fIboolean\fP +.RS 4 +If set to True, the tab bar will not fill the width of the window. +The titlebars of the tabs will only take as much space as is necessary +for the text they contain. Except, that is, if the tabs no longer fit +the width of the window \- in that case scroll buttons will appear to +move through the tabs. +.br +Default value: \fBFalse\fP +.RE +.SS "Terminal Behavior & Appearance" +.sp +\fBfocus\fP = \fIstring\fP +.RS 4 +Specify how focus is given to terminals. +\*(Aqclick\*(Aq means the focus only moves to a terminal after you click in it. +\*(Aqsloppy\*(Aq means the focus will follow the mouse pointer. +\*(Aqsystem\*(Aq means the focus will match that used by a GNOME window manager. +.br +Default value: \fBclick\fP +.RE +.sp +\fBalways_split_with_profile\fP = \fIboolean\fP +.RS 4 +Specify whether splits/tabs will continue to use the profile of their +peer terminal. If set to False, they will always use the default profile. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBlink_single_click\fP = \fIboolean\fP +.RS 4 +If set to True, clicking a link will open it even if \fBCtrl\fP is not +pressed. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBputty_paste_style\fP = \fIboolean\fP +.RS 4 +If set to True, right\-click will paste text, while middle\-click will +popup the context menu. The source for the pasted text depends on the +value of \fBputty_paste_style_source_clipboard\fP. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBputty_paste_style_source_clipboard\fP = \fIboolean\fP +.RS 4 +If set to True, the Clipboard will be used as source for pasting in +PuTTY style. Otherwise, the Primary Selection will be used. +.br +This option is ignored unless \fBputty_paste_style\fP is set to True. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBdisable_mouse_paste\fP = \fIboolean\fP +.RS 4 +If set to True, mouse pasting will be disabled. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBsmart_copy\fP = \fIboolean\fP +.RS 4 +If set to True, and there is no selection, the shortcut is allowed to +pass through. This is useful for overloading Ctrl\-C to copy a selection, +or send the SIGINT to the current process if there is no selection. +If False, the shortcut does not pass through at all, and the SIGINT does +not get sent. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBclear_select_on_copy\fP = \fIboolean\fP +.RS 4 +If set to True, text selection will be cleared after copying using the +\fBcopy\fP keybinding. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBhandle_size\fP = \fIinteger\fP +.RS 4 +Specify the width of the separator between terminals. +Anything outside the range 0\-20 (inclusive) will be ignored and the +default theme value will be used instead. +.br +Default value: \fB1\fP +.RE +.sp +\fBinactive_color_offset\fP = \fIfloat\fP +.RS 4 +Specify how much to reduce the color values of fonts in terminals that +do not have focus. +.br +Default value: \fB0.8\fP +.RE +.sp +\fBinactive_bg_color_offset\fP = \fIfloat\fP +.RS 4 +Specify how much to reduce the color values of the background in +terminals that do not have focus. +.br +Default value: \fB1.0\fP +.RE +.sp +\fBcell_width\fP = \fIfloat\fP +.RS 4 +Specify the horizontal scale of character cells in the terminal. +.br +Default value: \fB1.0\fP +.RE +.sp +\fBcell_height\fP = \fIfloat\fP +.RS 4 +Specify the vertical scale of character cells in the terminal. +.br +Default value: \fB1.0\fP +.RE +.sp +\fBtitle_at_bottom\fP = \fIboolean\fP +.RS 4 +If set to True, the terminal\(cqs titlebar will be drawn at the bottom +instead of the top. +.br +Default value: \fBFalse\fP +.RE +.SS "Miscellaneous" +.sp +\fBdbus\fP = \fIboolean\fP +.RS 4 +Specify whether Terminator will load its DBus server. +When this server is loaded, running Terminator multiple times will cause +the first Terminator process to open additional windows. +If this configuration item is set to False, or the python dbus module is +unavailable, running Terminator multiple times will run a separate +Terminator process for each invocation. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBextra_styling\fP = \fIboolean\fP +.RS 4 +If set to True, Terminator may load an additional CSS styling file, +depending on the theme. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBbroadcast_default\fP = \fIstring\fP +.RS 4 +Specify the default broadcast behavior. +Can be any of: \*(Aqall\*(Aq, \*(Aqgroup\*(Aq, \*(Aqoff\*(Aq. +.br +Default value: \fBgroup\fP +.RE +.sp +\fBuse_custom_url_handler\fP = \fIboolean\fP +.RS 4 +If set to True, URL handling will be given over entirely to the program +specified by \*(Aqcustom_url_handler\*(Aq. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBcustom_url_handler\fP = \fIstring\fP +.RS 4 +Specify the path to a program which accepts a URI as an argument and +does something relevant with it. +This option is ignored unless \fBuse_custom_url_handler\fP is set to True. +.RE +.sp +\fBcase_sensitive\fP = \fIboolean\fP +.RS 4 +If set to True, uppercase and lowercase characters will be considered +different when searching text in the terminal. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBinvert_search\fP = \fIboolean\fP +.RS 4 +If set to True, the search direction will be inverted (bottom to top) +when searching text in the terminal. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBenabled_plugins\fP = \fIlist of strings\fP +.RS 4 +Specify which plugins will be loaded by default. All other plugin +classes will be ignored. +.br +Default value: \fB[\*(AqLaunchpadBugURLHandler\*(Aq, \*(AqLaunchpadCodeURLHandler\*(Aq, \*(AqAPTURLHandler\*(Aq]\fP +.RE +.SH "KEYBINDINGS" +.sp +These are the options Terminator currently supports in the \fBkeybindings\fP +section. +.SS "Creation & Destruction" +.sp +\fBsplit_horiz\fP +.RS 4 +Split the current terminal horizontally. +.br +Default value: \fBO\fP +.RE +.sp +\fBsplit_vert\fP +.RS 4 +Split the current terminal vertically. +.br +Default value: \fBE\fP +.RE +.sp +\fBsplit_auto\fP +.RS 4 +Split the current terminal automatically, along the longer side. +.br +Default value: \fBA\fP +.RE +.sp +\fBnew_tab\fP +.RS 4 +Open a new tab. +.br +Default value: \fBT\fP +.RE +.sp +\fBnew_window\fP +.RS 4 +Open a new window as part of the existing process. +.br +Default value: \fBI\fP +.RE +.sp +\fBnew_terminator\fP +.RS 4 +Spawn a new Terminator process. +.br +Default value: \fBI\fP +.RE +.sp +\fBlayout_launcher\fP +.RS 4 +Open the layout launcher. +.br +Default value: \fBL\fP +.RE +.sp +\fBclose_term\fP +.RS 4 +Close the current terminal. +.br +Default value: \fBW\fP +.RE +.sp +\fBclose_window\fP +.RS 4 +Close the current window. +.br +Default value: \fBQ\fP +.RE +.SS "Navigation" +.sp +\fBcycle_next\fP +.RS 4 +Focus the next terminal. This is an alias for \fBgo_next\fP. +.br +Default value: \fBTab\fP +.RE +.sp +\fBcycle_prev\fP +.RS 4 +Focus the previous terminal. This is an alias for \fBgo_prev\fP. +.br +Default value: \fBTab\fP +.RE +.sp +\fBgo_next\fP +.RS 4 +Focus the next terminal. +.br +Default value: \fBN\fP +.RE +.sp +\fBgo_prev\fP +.RS 4 +Focus the previous terminal. +.br +Default value: \fBP\fP +.RE +.sp +\fBgo_up\fP +.RS 4 +Focus the terminal above the current one. +.br +Default value: \fBUp\fP +.RE +.sp +\fBgo_down\fP +.RS 4 +Focus the terminal below the current one. +.br +Default value: \fBDown\fP +.RE +.sp +\fBgo_left\fP +.RS 4 +Focus the terminal to the left of the current one. +.br +Default value: \fBLeft\fP +.RE +.sp +\fBgo_right\fP +.RS 4 +Focus the terminal to the right of the current one. +.br +Default value: \fBRight\fP +.RE +.sp +\fBpage_up\fP +.RS 4 +Scroll the terminal up one page. +.RE +.sp +\fBpage_down\fP +.RS 4 +Scroll the terminal down one page. +.RE +.sp +\fBpage_up_half\fP +.RS 4 +Scroll the terminal up half a page. +.RE +.sp +\fBpage_down_half\fP +.RS 4 +Scroll the terminal down half a page. +.RE +.sp +\fBline_up\fP +.RS 4 +Scroll the terminal up one line. +.RE +.sp +\fBline_down\fP +.RS 4 +Scroll the terminal down one line. +.RE +.sp +\fBnext_tab\fP +.RS 4 +Move to the next tab. +.br +Default value: \fBPage_Down\fP +.RE +.sp +\fBprev_tab\fP +.RS 4 +Move to the previous tab. +.br +Default value: \fBPage_Up\fP +.RE +.sp +\fBswitch_to_tab_1\fP, \fBswitch_to_tab_2\fP, ... \fBswitch_to_tab_10\fP +.RS 4 +Move to the \fBN\fPth tab. +Note that \fB1\fP may be provided as \fB!\fP or similar, +depending on the keyboard layout. +.RE +.SS "Organisation" +.sp +\fBresize_up\fP +.RS 4 +Move the parent dragbar up. +.br +Default value: \fBUp\fP +.RE +.sp +\fBresize_down\fP +.RS 4 +Move the parent dragbar down. +.br +Default value: \fBDown\fP +.RE +.sp +\fBresize_left\fP +.RS 4 +Move the parent dragbar left. +.br +Default value: \fBLeft\fP +.RE +.sp +\fBresize_right\fP +.RS 4 +Move the parent dragbar right. +.br +Default value: \fBRight\fP +.RE +.sp +\fBrotate_cw\fP +.RS 4 +Rotate terminals clockwise. +.br +Default value: \fBR\fP +.RE +.sp +\fBrotate_ccw\fP +.RS 4 +Rotate terminals counter+clockwise. +.br +Default value: \fBR\fP +.RE +.sp +\fBmove_tab_right\fP +.RS 4 +Move the current tab to the right by swapping position with the next +tab. +.br +Default value: \fBPage_Down\fP +.RE +.sp +\fBmove_tab_left\fP +.RS 4 +Move the current tab to the left by swapping position with the previous +tab. +.br +Default value: \fBPage_Up\fP +.RE +.SS "Focus" +.sp +\fBfull_screen\fP +.RS 4 +Toggle window to fullscreen. +.br +Default value: \fBF11\fP +.RE +.sp +\fBtoggle_zoom\fP +.RS 4 +Toggle maximisation of the current terminal. +.br +Default value: \fBX\fP +.RE +.sp +\fBscaled_zoom\fP +.RS 4 +Toggle maximisation of the current terminal and scale the font when +maximised. +.br +Default value: \fBZ\fP +.RE +.sp +\fBhide_window\fP +.RS 4 +Hide/Show all Terminator windows. +.br +Default value: \fBA\fP +.RE +.SS "Grouping & Broadcasting" +.sp +\fBcreate_group\fP +.RS 4 +Create a new group. +.RE +.sp +\fBgroup_all\fP +.RS 4 +Group all terminals together. +.br +Default value: \fBG\fP +.RE +.sp +\fBungroup_all\fP +.RS 4 +Ungroup all terminals. +.RE +.sp +\fBgroup_all_toggle\fP +.RS 4 +Toggle grouping of all terminals. +.RE +.sp +\fBgroup_win\fP +.RS 4 +Group all terminals in the current window together. +.RE +.sp +\fBungroup_win\fP +.RS 4 +Ungroup all terminals in the current window. +.br +Default value: \fBW\fP +.RE +.sp +\fBgroup_win_toggle\fP +.RS 4 +Toggle grouping of all terminals in the current window. +.RE +.sp +\fBgroup_tab\fP +.RS 4 +Group all terminals in the current tab together. +.br +Default value: \fBT\fP +.RE +.sp +\fBungroup_tab\fP +.RS 4 +Ungroup all terminals in the current tab. +.br +Default value: \fBT\fP +.RE +.sp +\fBgroup_tab_toggle\fP +.RS 4 +Toggle grouping of all terminals in the current tab. +.RE +.sp +\fBbroadcast_off\fP +.RS 4 +Turn broadcasting off. +.RE +.sp +\fBbroadcast_group\fP +.RS 4 +Broadcast to all terminals in the same group as the current terminal. +.RE +.sp +\fBbroadcast_all\fP +.RS 4 +Broadcast to all terminals. +.RE +.SS "Miscellaneous" +.sp +\fBhelp\fP +.RS 4 +Open the full HTML manual in the browser. +.br +Default value: \fBF1\fP +.RE +.sp +\fBpreferences\fP +.RS 4 +Open the Preferences window. +.RE +.sp +\fBpreferences_keybindings\fP +.RS 4 +Open the Preferences window and show the Keybindings tab. +.br +Default value: \fBK\fP +.RE +.sp +\fBcopy\fP +.RS 4 +Copy the selected text to the Clipboard. +.br +Default value: \fBC\fP +.RE +.sp +\fBpaste\fP +.RS 4 +Paste the current contents of the Clipboard. +.br +Default value: \fBV\fP +.RE +.sp +\fBpaste_selection\fP +.RS 4 +Paste the current contents of the Primary Selection. +.RE +.sp +\fBtoggle_scrollbar\fP +.RS 4 +Toggle the scrollbar. +.br +Default value: \fBS\fP +.RE +.sp +\fBsearch\fP +.RS 4 +Search for text in the terminal scrollback history. +.br +Default value: \fBF\fP +.RE +.sp +\fBreset\fP +.RS 4 +Reset the terminal state. +.br +Default value: \fBR\fP +.RE +.sp +\fBreset_clear\fP +.RS 4 +Reset the terminal state and clear the terminal window. +.br +Default value: \fBG\fP +.RE +.sp +\fBzoom_in\fP +.RS 4 +Increase the font size by one unit. +.br +Default value: \fBplus\fP +.RE +.sp +\fBzoom_out\fP +.RS 4 +Decrease the font size by one unit. +.br +Default value: \fBminus\fP +.RE +.sp +\fBzoom_normal\fP +.RS 4 +Restore the original font size. +.br +Default value: \fB0\fP +.RE +.sp +\fBzoom_in_all\fP +.RS 4 +Increase the font size by one unit for all terminals. +.RE +.sp +\fBzoom_out_all\fP +.RS 4 +Decrease the font size by one unit for all terminals. +.RE +.sp +\fBzoom_normal_all\fP +.RS 4 +Restore the original font size for all terminals. +.RE +.sp +\fBedit_window_title\fP +.RS 4 +Rename the current window. +.br +Default value: \fBW\fP +.RE +.sp +\fBedit_tab_title\fP +.RS 4 +Rename the current tab. +.br +Default value: \fBA\fP +.RE +.sp +\fBedit_terminal_title\fP +.RS 4 +Rename the current terminal. +.br +Default value: \fBX\fP +.RE +.sp +\fBinsert_number\fP +.RS 4 +Insert the current terminal\(cqs number, i.e. 1 to 12. +.br +Default value: \fB1\fP +.RE +.sp +\fBinsert_padded\fP +.RS 4 +Insert the current terminal\(cqs number, but zero padded, i.e. 01 to 12. +.br +Default value: \fB0\fP +.RE +.sp +\fBnext_profile\fP +.RS 4 +Switch to the next profile. +.RE +.sp +\fBprevious_profile\fP +.RS 4 +Switch to the previous profile. +.RE +.SH "PROFILES" +.sp +These are the options Terminator currently supports in the \fBprofiles\fP +section. Each profile should be its own subsection with a header in the +format \fB[[name]]\fP. +.SS "General" +.sp +\fBallow_bold\fP = \fIboolean\fP +.RS 4 +If set to True, text in the terminal can displayed in bold. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBcopy_on_selection\fP = \fIboolean\fP +.RS 4 +If set to True, text selections will be automatically copied to the +Clipboard, in addition to being copied to the Primary Selection. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBdisable_mousewheel_zoom\fP = \fIboolean\fP +.RS 4 +If set to True, Ctrl+mouse_wheel will not zoom or unzoom the terminal. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBword_chars\fP = \fIstring\fP +.RS 4 +Specify the characters that will be considered part of a single word +when selecting text by word. +Hyphen and alphanumerics do not need to be specified. +Ranges can be given, e.g. "A\-Z". +.br +For example, if \fBword_chars\fP = "," then "foo,bar" is considered a single +word. +.br +Default value: \fB\-,./?%&#:_\fP +.RE +.sp +\fBmouse_autohide\fP = \fIboolean\fP +.RS 4 +If set to True, the mouse pointer will be hidden when typing. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBterm\fP = \fIstring\fP +.RS 4 +Specify the value Terminator will assign to the \*(AqTERM\*(Aq environment +variable. +.br +Default value: \fBxterm\-256color\fP +.RE +.sp +\fBcolorterm\fP = \fIstring\fP +.RS 4 +Specify the value Terminator will assign to the \*(AqCOLORTERM\*(Aq environment +variable. +.br +Default value: \fBtruecolor\fP +.RE +.sp +\fBsplit_to_group\fP = \fIboolean\fP +.RS 4 +If set to True, the terminal created by splitting will be inserted in +the current terminal\(cqs group. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBautoclean_groups\fP = \fIboolean\fP +.RS 4 +If set to True, empty groups will be removed. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBuse_system_font\fP = \fIboolean\fP +.RS 4 +If set to True, the system default font will be used for text in the +terminal. Otherwise, the value of \fBfont\fP will be used. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBfont\fP = \fIstring\fP +.RS 4 +Specify which font to use for text in the terminal. +This option is ignored unless \fBuse_system_font\fP is set to False. +.br +Default value: \fBMono 10\fP +.RE +.sp +\fBcursor_blink\fP = \fIboolean\fP +.RS 4 +If set to True, the cursor will blink when not typing. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBcursor_shape\fP = \fIstring\fP +.RS 4 +Specify the shape of the cursor. +Can be any of: \*(Aqblock\*(Aq, \*(Aqunderline\*(Aq, \*(Aqibeam\*(Aq. +.br +Default value: \fBblock\fP +.RE +.sp +\fBcursor_color_default\fP = \fIboolean\fP +.RS 4 +If set to True, the background and foreground colors of the terminal +will be used as foreground and background colors for the cursor, +respectively. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBcursor_fg_color\fP = \fIcolor string\fP +.RS 4 +Specify the foreground color to use for the cursor. +This option is ignored unless \fBcursor_color_default\fP is set to False. +.RE +.sp +\fBcursor_bg_color\fP = \fIcolor string\fP +.RS 4 +Specify the background color to use for the cursor. +This option is ignored unless \fBcursor_color_default\fP is set to False. +.RE +.sp +\fBaudible_bell\fP = \fIboolean\fP +.RS 4 +If set to True, a sound will be played when an application writes the +escape sequence for the terminal bell. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBvisible_bell\fP = \fIboolean\fP +.RS 4 +If set to True, the terminal will flash when an application writes the +escape sequence for the terminal bell. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBurgent_bell\fP = \fIboolean\fP +.RS 4 +If set to True, the window\(cqs urgency hint will be set when an +application writes the escape sequence for the terminal bell. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBicon_bell\fP = \fIboolean\fP +.RS 4 +If set to True, a small icon will be shown on the terminal titlebar when +an application writes the escape sequence for the terminal bell. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBforce_no_bell\fP = \fIboolean\fP +.RS 4 +If set to True, the terminal bell will be completely disabled. +.br +Default value: \fBFalse\fP +.RE +.SS "Command" +.sp +\fBlogin_shell\fP = \fIboolean\fP +.RS 4 +If set to True, the terminal will run the default shell (or the command +specified by \fBcustom_command\fP) as a login shell. +This means the first argument passed to the shell/command will be \*(Aq\-l\*(Aq. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBuse_custom_command\fP = \fIboolean\fP +.RS 4 +If set to True, the value of \fBcustom_command\fP will be used instead of +the default shell. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBcustom_command\fP = \fIstring\fP +.RS 4 +Specify the command to execute instead of the default shell. +This option is ignored unless \fBuse_custom_command\fP is set to True. +.RE +.sp +\fBexit_action\fP = \fIstring\fP +.RS 4 +Specify the action to perform when the terminal is closed. +\*(Aqclose\*(Aq to remove the terminal. +\*(Aqrestart\*(Aq to restart the shell (or the command specified by +\fBcustom_command\fP). +\*(Aqhold\*(Aq to keep the terminal open, even if the process in it has +terminated. +.br +Default value: \fBclose\fP +.RE +.SS "Colors" +.sp +\fBuse_theme_colors\fP = \fIboolean\fP +.RS 4 +If set to True, the theme\(cqs foreground and background colors will be +used for the terminal. Otherwise, the values of \fBforeground_color\fP and +\fBbackground_color\fP will be used. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBforeground_color\fP = \fIcolor string\fP +.RS 4 +Specify the foreground color to use for the terminal. +This option is ignored unless \fBuse_theme_colors\fP is set to False. +.br +Default value: \fB#AAAAAA\fP +.RE +.sp +\fBbackground_color\fP = \fIcolor string\fP +.RS 4 +Specify the background color to use for the terminal. +This option is ignored unless \fBuse_theme_colors\fP is set to False. +.br +Default value: \fB#000000\fP +.RE +.sp +\fBpalette\fP = \fIstring list of colors\fP +.RS 4 +Specify the 16\-color palette to use for the terminal. +The value must be a string containing a colon\-separated list of colors +in hex format. +.br +For example, "#000000:#cd0000:#00cd00: ... ". +.RE +.sp +\fBbold_is_bright\fP = \fIboolean\fP +.RS 4 +If set to True, bold text will have brighter colors. +.br +Default value: \fBFalse\fP +.RE +.SS "Background" +.sp +\fBbackground_darkness\fP = \fIfloat\fP +.RS 4 +Specify the transparency of the background color. +The value must be between 0.0 and 1.0. +This option is ignored unless \fBbackground_type\fP is set to \*(Aqtransparent\*(Aq +or \*(Aqimage\*(Aq. +.br +Default value: \fB0.5\fP +.RE +.sp +\fBbackground_type\fP = \fIstring\fP +.RS 4 +Specify what type of background the terminal will have. +\*(Aqsolid\*(Aq for a solid (opaque) background. +\*(Aqtransparent\*(Aq for a transparent background. +\*(Aqimage\*(Aq for a background image. +.br +If this is set to \*(Aqtransparent\*(Aq, the transparency of the background will +be the value of \fBbackground_darkness\fP. +If this is set to \*(Aqimage\*(Aq, the image specified by \fBbackground_image\fP +will be the background; the background color will then be drawn on top +of it, with a transparency specified by \fBbackground_darkness\fP. +.br +Default value: \fBsolid\fP +.RE +.sp +\fBbackground_image\fP = \fIpath string\fP +.RS 4 +Specify the path to an image that will be used as background. +This option is ignored unless \fBbackground_type\fP is set to \*(Aqimage\*(Aq. +.RE +.sp +\fBbackground_image_mode\fP = \fIstring\fP +.RS 4 +Specify how the background image will be drawn. +\*(Aqstretch_and_fill\*(Aq to fill the terminal entirely, without necessarily +maintaining aspect ratio. +\*(Aqscale_and_fit\*(Aq to fit the image inside the terminal, eventually leaving +blank bars, while maintaining aspect ratio. +\*(Aqscale_and_crop\*(Aq to fill the terminal entirely, eventually cropping the +image, while maintaining aspect ratio. +\*(Aqtiling\*(Aq to repeat the image as to fill the terminal. +This option is ignored unless \fBbackground_type\fP is set to \*(Aqimage\*(Aq. +.br +Default value: \fBstretch_and_fill\fP +.RE +.sp +\fBbackground_image_align_horiz\fP = \fIstring\fP +.RS 4 +Specify the horizontal alignment of the background image. +Can be any of: \*(Aqleft\*(Aq, \*(Aqcenter\*(Aq, \*(Aqright\*(Aq. +This option is ignored unless \fBbackground_type\fP is set to \*(Aqimage\*(Aq. +.br +Default value: \fBcenter\fP +.RE +.sp +\fBbackground_image_align_vert\fP = \fIstring\fP +.RS 4 +Specify the vertical alignment of the background image. +Can be any of: \*(Aqtop\*(Aq, \*(Aqmiddle\*(Aq, \*(Aqbottom\*(Aq. +This option is ignored unless \fBbackground_type\fP is set to \*(Aqimage\*(Aq. +.br +Default value: \fBmiddle\fP +.RE +.SS "Scrolling" +.sp +\fBscrollbar_position\fP = \fIstring\fP +.RS 4 +Specify where the terminal scrollbar is put. +Can be any of: \*(Aqleft\*(Aq, \*(Aqright\*(Aq, \*(Aqhidden\*(Aq. +.br +Default value: \fBright\fP +.RE +.sp +\fBscroll_on_output\fP = \fIboolean\fP +.RS 4 +If set to True, the terminall will scroll to the bottom when an +application writes text to it. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBscroll_on_keystroke\fP = \fIboolean\fP +.RS 4 +If set to True, the terminal will scroll to the bottom when typing. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBscrollback_infinite\fP = \fIboolean\fP +.RS 4 +If set to True, the terminal will keep the entire scrollback history. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBscrollback_lines\fP = \fIinteger\fP +.RS 4 +Specify how many lines of scrollback history will be kept by the +terminal. Lines that don\(cqt fit in the scrollback history will be +discarted. Note that setting large values can slow down rewrapping and +resizing. +This option is ignored unless \fBscrollback_infinite\fP is set to False. +.br +Default value: \fB500\fP +.RE +.SS "Compatibility" +.sp +\fBbackspace_binding\fP = \fIstring\fP +.RS 4 +Specify what code will be generated by the backspace key. +The value can be: +\*(Aqascii\-del\*(Aq for the ASCII DEL character; +\*(Aqcontrol\-h\*(Aq for the ASCII BS character (Ctrl+H); +\*(Aqescape\-sequence\*(Aq for the escape sequence typically bound to backspace +or delete; +\*(Aqautomatic\*(Aq for letting the terminal automatically decide the character +sequence to use. +.br +Default value: \fBascii\-del\fP +.RE +.sp +\fBdelete_binding\fP = \fIstring\fP +.RS 4 +Specify what code will be generated by the delete key. +The value can be: +\*(Aqascii\-del\*(Aq for the ASCII DEL character; +\*(Aqcontrol\-h\*(Aq for the ASCII BS character (Ctrl+H); +\*(Aqescape\-sequence\*(Aq for the escape sequence typically bound to backspace +or delete; +\*(Aqautomatic\*(Aq for letting the terminal automatically decide the character +sequence to use. +.br +Default value: \fBescape\-sequence\fP +.RE +.SS "Titlebar" +.sp +\fBshow_titlebar\fP = \fIboolean\fP +.RS 4 +If set to True, the terminal will have a titlebar showing the current +title of that terminal. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBtitle_hide_sizetext\fP = \fIboolean\fP +.RS 4 +If set to True, the size of the terminal will not be written on its +titlebar. +.br +Default value: \fBFalse\fP +.RE +.sp +\fBtitle_use_system_font\fP = \fIboolean\fP +.RS 4 +If set to True, the system default font will be used for text in the +terminal\(cqs titlebar. Otherwise, the value of \fBtitle_font\fP will be used. +.br +Default value: \fBTrue\fP +.RE +.sp +\fBtitle_font\fP = \fIstring\fP +.RS 4 +Specify which font to use for text in the terminal\(cqs titlebar. +This option is ignored unless \fBtitle_use_system_font\fP is set to False. +.br +Default value: \fBSans 9\fP +.RE +.sp +\fBtitle_transmit_fg_color\fP = \fIcolor string\fP +.RS 4 +Specify the foreground color to use for the terminal\(cqs titlebar in case +the terminal is focused. +.br +Default value: \fB#ffffff\fP +.RE +.sp +\fBtitle_transmit_bg_color\fP = \fIcolor string\fP +.RS 4 +Specify the background color to use for the terminal\(cqs titlebar in case +the terminal is focused. +.br +Default value: \fB#c80003\fP +.RE +.sp +\fBtitle_inactive_fg_color\fP = \fIcolor string\fP +.RS 4 +Specify the foreground color to use for the terminal\(cqs titlebar in case +the terminal is unfocused. +.br +Default value: \fB#000000\fP +.RE +.sp +\fBtitle_inactive_bg_color\fP = \fIcolor string\fP +.RS 4 +Specify the background color to use for the terminal\(cqs titlebar in case +the terminal is unfocused. +.br +Default value: \fB#c0bebf\fP +.RE +.sp +\fBtitle_receive_fg_color\fP = \fIcolor string\fP +.RS 4 +Specify the foreground color to use for the terminal\(cqs titlebar in case +the terminal is in a group and is receiving input while unfocused. +.br +Default value: \fB#ffffff\fP +.RE +.sp +\fBtitle_receive_bg_color\fP = \fIcolor string\fP +.RS 4 +Specify the background color to use for the terminal\(cqs titlebar in case +the terminal is in a group and is receiving input while unfocused. +.br +Default value: \fB#0076c9\fP +.RE +.SH "LAYOUTS" +.sp +The \fBlayouts\fP section contains all the saved layouts. Each layout should +be its own subsection with a header in the format \fB[[name]]\fP. +.sp +Each object in a layout is a named sub\-sub\-section with various +properties. +.sp +\fBtype\fP = \fIstring\fP +.RS 4 +Can be any of: \*(AqWindow\*(Aq, \*(AqNotebook\*(Aq, \*(AqHPaned\*(Aq, \*(AqVPaned\*(Aq, \*(AqTerminal\*(Aq. +.RE +.sp +\fBparent\fP = \fIstring\fP +.RS 4 +Specify which object is the parent of the component being defined. +All objects, except those of type Window, must specify a parent. +.RE +.sp +This is an example of a \fBlayouts\fP section containing only the layout +named "default". +.sp +.if n .RS 4 +.nf +.fam C +[layouts] + [[default]] + [[[window0]]] + type = Window + parent = "" + [[[child1]]] + type = Terminal + parent = window0 +.fam +.fi +.if n .RE +.SH "PLUGINS" +.sp +Terminator plugins can add their own configuration to the config file, +and it will appear as a subsection. Please refer to the documentation of +individual plugins for more information. .SH "SEE ALSO" -.TP -\fBterminator\fP(1), http://www.voidspace.org.uk/python/configobj.html +.sp +\fBterminator\fP(1), \c +.URL "https://configobj.readthedocs.io/" "" "" \ No newline at end of file From cd04443e292c596e1abb497d92b400eff157f648 Mon Sep 17 00:00:00 2001 From: x000zh Date: Sun, 4 Jun 2023 19:13:37 +0800 Subject: [PATCH 44/50] add new tab after current tab option --- terminatorlib/config.py | 2 ++ terminatorlib/notebook.py | 2 ++ terminatorlib/preferences.glade | 19 ++++++++++++++++++- terminatorlib/prefseditor.py | 11 ++++++++++- 4 files changed, 32 insertions(+), 2 deletions(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index dcd982ab..7a7d10f8 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -119,6 +119,8 @@ DEFAULTS = { 'link_single_click' : False, 'title_at_bottom' : False, 'detachable_tabs' : True, + + 'new_tab_after_current_tab': False, }, 'keybindings': { 'zoom_in' : 'plus', diff --git a/terminatorlib/notebook.py b/terminatorlib/notebook.py index a6e30298..9cb6bd48 100644 --- a/terminatorlib/notebook.py +++ b/terminatorlib/notebook.py @@ -306,6 +306,8 @@ class Notebook(Container, Gtk.Notebook): if metadata and 'tabnum' in metadata: tabpos = metadata['tabnum'] + elif self.config['new_tab_after_current_tab'] == True: + tabpos = self.get_current_page() + 1 else: tabpos = -1 diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index 85755383..fd18a16d 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -1245,7 +1245,7 @@ True False - 6 + 8 12 @@ -1330,6 +1330,23 @@ 2 + + + New tab after current tab + False + True + True + False + 0 + True + + + + 0 + 4 + 2 + + True diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 15ffef88..82fad666 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -356,7 +356,11 @@ class PrefsEditor: # title bar at bottom widget = guiget('title_at_bottom_checkbutton') widget.set_active(self.config['title_at_bottom']) - + + # new tab after current tab + widget = guiget('new_tab_after_current_checkbutton') + widget.set_active(self.config['new_tab_after_current_tab']) + #Always split with profile widget = guiget('always_split_with_profile') widget.set_active(self.config['always_split_with_profile']) @@ -888,6 +892,11 @@ class PrefsEditor: self.config['title_at_bottom'] = widget.get_active() self.config.save() + def on_new_tab_after_current_checkbutton_toggled(self, widget): + """New tab after current tab """ + self.config['new_tab_after_current_tab'] = widget.get_active() + self.config.save() + def on_always_split_with_profile_toggled(self, widget): """Always split with profile setting changed""" self.config['always_split_with_profile'] = widget.get_active() From 928a3dc5ec036868f2191b3b1c386f498bff9cac Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Fri, 9 Jun 2023 23:16:34 -0400 Subject: [PATCH 45/50] Revert "modify terminator separater size setting in gui to start from 1" This reverts commit c8cd50ba9a7c1b4ecac83c2336122d4133cfabe2. --- terminatorlib/config.py | 2 +- terminatorlib/preferences.glade | 4 ++-- terminatorlib/prefseditor.py | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 0d239024..adfd0ad4 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -84,7 +84,7 @@ DEFAULTS = { 'global_config': { 'dbus' : True, 'focus' : 'click', - 'handle_size' : 1, + 'handle_size' : -1, 'geometry_hinting' : False, 'window_state' : 'normal', 'borderless' : False, diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index 04a8adce..466d302a 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -353,9 +353,9 @@ - 1 + -1 20 - 1 + -1 1 2 diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index f805c8c6..c5bf7c0c 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -1381,8 +1381,6 @@ class PrefsEditor: value = int(value) # Cast to int. if value > 20: value = 20 - if value < 1: - value = 1 self.config['handle_size'] = value self.config.save() guiget = self.builder.get_object From ea97c21871f6f805dd4836a67e9e5dc53fe67b92 Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 15:52:30 +0000 Subject: [PATCH 46/50] Translate po/terminator.pot in hr 100% translated source file: 'po/terminator.pot' on 'hr'. --- po/hr.po | 267 +++++++++++++++---------------------------------------- 1 file changed, 70 insertions(+), 197 deletions(-) diff --git a/po/hr.po b/po/hr.po index e8c0fb5d..7427a547 100644 --- a/po/hr.po +++ b/po/hr.po @@ -2,28 +2,26 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Gnome Terminator , 2020 -# Marko Dzidic , 2020 # Markus Frosch , 2021 -# +# Marko Dzidic , 2023 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-22 00:51+0100\n" +"POT-Creation-Date: 2022-10-19 09:29-0400\n" "PO-Revision-Date: 2020-04-22 08:11+0000\n" -"Last-Translator: Markus Frosch , 2021\n" -"Language-Team: Croatian (https://www.transifex.com/terminator/teams/109338/" -"hr/)\n" -"Language: hr\n" +"Last-Translator: Marko Dzidic , 2023\n" +"Language-Team: Croatian (https://app.transifex.com/terminator/teams/109338/hr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. Command uuid req. Description #: ../remotinator.py:39 @@ -48,7 +46,7 @@ msgstr "Dobij popis svih terminala" #: ../remotinator.py:44 msgid "Get the uuid of the current focused terminal" -msgstr "" +msgstr "Dobij UUID trenutnog terminala u fokusu" #: ../remotinator.py:45 msgid "Get the UUID of a parent window" @@ -68,23 +66,23 @@ msgstr "Dobij naslov nadređene kartice" #: ../remotinator.py:49 msgid "Set the title of a parent tab" -msgstr "" +msgstr "Postavite naslov glavne kartice" #: ../remotinator.py:50 msgid "Set the background image" -msgstr "" +msgstr "Postavite pozadinsku sliku" #: ../remotinator.py:51 msgid "Set the background image for all terminals" -msgstr "" +msgstr "Postavite pozadinsku sliku za sve terminale" #: ../remotinator.py:52 msgid "Switch current terminal profile" -msgstr "" +msgstr "Promijeni trenutni profil terminala" #: ../remotinator.py:53 msgid "Switch profile of all currently running terminals" -msgstr "" +msgstr "Promijeni profil svih trenutno pokrenutih terminala" #: ../remotinator.py:70 #, python-format @@ -111,23 +109,24 @@ msgstr "UUID terminala, kad nije u TERMINATOR_UUID varijabli okruženja" #: ../remotinator.py:80 msgid "Profile name to switch to" -msgstr "" +msgstr "Naziv profila za prebacivanje" #: ../remotinator.py:83 msgid "File to pass to command" -msgstr "" +msgstr "Datoteka za prosljeđivanje naredbi" #: ../remotinator.py:86 msgid "Command to run in new terminal" -msgstr "" +msgstr "Naredba za pokretanje u novom terminalu" #: ../remotinator.py:89 msgid "Tab name to set. Only used with \"set_tab_title\" command." msgstr "" +"Naziv kartice za postavljanje. Koristi se samo s naredbom \"set_tab_title\"." #: ../remotinator.py:92 msgid "Tab name to set." -msgstr "" +msgstr "Naziv kartice za postavljanje." #: ../data/terminator.desktop.in.h:1 ../data/terminator.appdata.xml.in.h:1 #: ../terminatorlib/plugins/activitywatch.py:83 @@ -149,11 +148,11 @@ msgstr "Robotska budućnost terminala" msgid "" "A power-user tool for arranging terminals. It is inspired by programs such " "as gnome-multi-term, quadkonsole, etc. in that the main focus is arranging " -"terminals in grids (tabs is the most common default method, which Terminator " -"also supports)." +"terminals in grids (tabs is the most common default method, which Terminator" +" also supports)." msgstr "" -"Profesionalni korisnički alat za raspoređivanje terminala, slično programima " -"poput gnome-multi-term, quadkonsole, itd., a glavna ideja je pločasto " +"Profesionalni korisnički alat za raspoređivanje terminala, slično programima" +" poput gnome-multi-term, quadkonsole, itd., a glavna ideja je pločasto " "raspoređivanje terminala (kartice su najraširenija metoda, koju Terminator " "također podržava)." @@ -304,8 +303,8 @@ msgid "" "Use the rest of the command line as a command to execute inside the " "terminal, and its arguments" msgstr "" -"Koristi ostatak naredbenog retka kao naredbu za izvršavanje unutar terminala " -"i njezine argumente" +"Koristi ostatak naredbenog retka kao naredbu za izvršavanje unutar terminala" +" i njezine argumente" #: ../terminatorlib/optionparse.py:69 msgid "Specify a config file" @@ -361,15 +360,15 @@ msgstr "Ako je Terminator već pokrenut, jednostavno otvori novu karticu" #: ../terminatorlib/optionparse.py:98 msgid "If Terminator is already running, just unhide all hidden windows" -msgstr "" +msgstr "Ako je Terminator već pokrenut, samo otkrijte sve skrivene prozore" #: ../terminatorlib/optionparse.py:100 msgid "List all profiles" -msgstr "" +msgstr "Popis svih profila" #: ../terminatorlib/optionparse.py:102 msgid "List all layouts" -msgstr "" +msgstr "Popis svih izgleda" #: ../terminatorlib/plugins/activitywatch.py:54 msgid "Watch for _activity" @@ -487,7 +486,7 @@ msgstr "Naziv *%s* već postoji" #: ../terminatorlib/plugins/dir_open.py:26 msgid "Open current directory" -msgstr "" +msgstr "Otvori trenutni direktorij" #: ../terminatorlib/plugins/logger.py:21 #: ../terminatorlib/plugins/terminalshot.py:21 @@ -757,15 +756,15 @@ msgstr "Međuspremnik" #: ../terminatorlib/preferences.glade.h:62 msgid "Clear selection on copy" -msgstr "" +msgstr "Obriši obilježeno nakon kopiranja" #: ../terminatorlib/preferences.glade.h:63 msgid "Open links with a single click (instead of Ctrl-left click)" -msgstr "" +msgstr "Otvaranje poveznica jednim klikom (umjesto Ctrl-lijevi klik)" #: ../terminatorlib/preferences.glade.h:64 msgid "Disable mouse paste" -msgstr "" +msgstr "Onemogući lijepljenje mišom" #: ../terminatorlib/preferences.glade.h:65 msgid "Custom URL handler:" @@ -793,11 +792,11 @@ msgstr "Dodatno stiliziranje (ovisno o temi)" #: ../terminatorlib/preferences.glade.h:71 msgid "Cell Height:" -msgstr "" +msgstr "Visina ćelije:" #: ../terminatorlib/preferences.glade.h:72 msgid "Cell Width:" -msgstr "" +msgstr "Širina ćelije:" #: ../terminatorlib/preferences.glade.h:73 msgid "Tab position:" @@ -869,11 +868,11 @@ msgstr "Titranje" #: ../terminatorlib/preferences.glade.h:90 msgid "Use default colors" -msgstr "" +msgstr "Koristi zadane boje" #: ../terminatorlib/preferences.glade.h:91 msgid "Foreground:" -msgstr "" +msgstr "Prednja strana:" #: ../terminatorlib/preferences.glade.h:92 msgid "Background:" @@ -933,11 +932,11 @@ msgstr "Ugrađene she_me:" #: ../terminatorlib/preferences.glade.h:107 msgid "_Foreground:" -msgstr "" +msgstr "_Prvi plan:" #: ../terminatorlib/preferences.glade.h:108 msgid "_Background:" -msgstr "" +msgstr "_Boja pozadine:" #: ../terminatorlib/preferences.glade.h:109 msgid "Palette" @@ -969,11 +968,11 @@ msgstr "_Prozirna pozadina" #: ../terminatorlib/preferences.glade.h:116 msgid "Background Image" -msgstr "" +msgstr "Pozadinska slika" #: ../terminatorlib/preferences.glade.h:117 msgid "Background Image File:" -msgstr "" +msgstr "Datoteka pozadinske slike:" #: ../terminatorlib/preferences.glade.h:118 msgid "Choose file" @@ -981,7 +980,7 @@ msgstr "Odaberi datoteku" #: ../terminatorlib/preferences.glade.h:119 msgid "S_hade background:" -msgstr "" +msgstr "Zasjeniti pozadinu:" #: ../terminatorlib/preferences.glade.h:120 msgid "None" @@ -1027,8 +1026,8 @@ msgstr "Klizanje" msgid "" "Note: These options may cause some applications to behave " "incorrectly. They are only here to allow you to work around certain " -"applications and operating systems that expect different terminal behavior." +"applications and operating systems that expect different terminal " +"behavior." msgstr "" "Napomena: Ove opcije mogu prouzrokovati neispravan rad " "nekih programa. Ovdje se nalaze samo kako bi se zaobišli problemi s " @@ -1077,7 +1076,7 @@ msgstr "Odaberi font za traku naslova" #: ../terminatorlib/preferences.glade.h:141 msgid "Titlebar" -msgstr "" +msgstr "Naslovna traka" #: ../terminatorlib/preferences.glade.h:142 #: ../terminatorlib/terminal_popup_menu.py:204 @@ -1130,30 +1129,17 @@ msgstr "Priključci" #: ../terminatorlib/preferences.glade.h:158 msgid "Version: 2.1.1" -msgstr "" +msgstr "Verzija: 2.1.1" #: ../terminatorlib/preferences.glade.h:159 msgid "" -"The goal of this project is to produce a useful tool for arranging " -"terminals. It is inspired by programs such as gnome-multi-term, quadkonsole, " -"etc. in that the main focus is arranging terminals in grids (tabs is the " -"most common default method, which Terminator also supports).\n" +"The goal of this project is to produce a useful tool for arranging terminals. It is inspired by programs such as gnome-multi-term, quadkonsole, etc. in that the main focus is arranging terminals in grids (tabs is the most common default method, which Terminator also supports).\n" "\n" -"Much of the behavior of Terminator is based on GNOME Terminal, and we are " -"adding more features from that as time goes by, but we also want to extend " -"out in different directions with useful features for sysadmins and other " -"users. If you have any suggestions, please file wishlist bugs! (see left for " -"the Development link)" +"Much of the behavior of Terminator is based on GNOME Terminal, and we are adding more features from that as time goes by, but we also want to extend out in different directions with useful features for sysadmins and other users. If you have any suggestions, please file wishlist bugs! (see left for the Development link)" msgstr "" -"Cilj ovog projekta je proizvesti koristan alat za raspoređivanje terminala, " -"slično programima poput gnome-multi-term, quadkonsole, itd., a glavna ideja " -"je pločasto raspoređivanje terminala (kartice su najraširenija standardna " -"metoda, koju Terminator također podržava).\n" +"Cilj ovog projekta je proizvesti koristan alat za raspoređivanje terminala, slično programima poput gnome-multi-term, quadkonsole, itd., a glavna ideja je pločasto raspoređivanje terminala (kartice su najraširenija standardna metoda, koju Terminator također podržava).\n" "\n" -"Terminator se uveliko temelji se na GNOME Terminalu i s vremenom dodajemo " -"daljnje njegove funkcije, ali ga također razvijamo s raznim dodatnim " -"korisnim funkcijama za administratore sustava i za ostale korisnike. " -"Prijedlozi se mogu dodati u popis želja! (vidi lijevo poveznicu „Razvoj”)" +"Terminator se uveliko temelji se na GNOME Terminalu i s vremenom dodajemo daljnje njegove funkcije, ali ga također razvijamo s raznim dodatnim korisnim funkcijama za administratore sustava i za ostale korisnike. Prijedlozi se mogu dodati u popis želja! (vidi lijevo poveznicu „Razvoj”)" #: ../terminatorlib/preferences.glade.h:162 msgid "The Manual" @@ -1162,12 +1148,10 @@ msgstr "Priručnik" #: ../terminatorlib/preferences.glade.h:163 msgid "" "Development\n" -"Bugs / " -"Enhancements" +"Bugs / Enhancements" msgstr "" "Razvoj\n" -"Greške i " -"poboljšanja" +"Greške i poboljšanja" #: ../terminatorlib/preferences.glade.h:165 msgid "About" @@ -1187,15 +1171,15 @@ msgstr "Vrati izvornu veličinu fonta" #: ../terminatorlib/prefseditor.py:107 msgid "Increase font size on all terminals" -msgstr "" +msgstr "Povećaj veličinu fonta na svim terminalima" #: ../terminatorlib/prefseditor.py:108 msgid "Decrease font size on all terminals" -msgstr "" +msgstr "Smanji veličinu fonta na svim terminalima" #: ../terminatorlib/prefseditor.py:109 msgid "Restore original font size on all terminals" -msgstr "" +msgstr "Vrati izvornu veličinu fonta na svim terminalima" #: ../terminatorlib/prefseditor.py:110 msgid "Create a new tab" @@ -1255,7 +1239,7 @@ msgstr "Umetni iz međuspremnika" #: ../terminatorlib/prefseditor.py:126 msgid "Paste primary selection" -msgstr "" +msgstr "Umetni primarni odabir" #: ../terminatorlib/prefseditor.py:127 msgid "Show/Hide the scrollbar" @@ -1407,15 +1391,15 @@ msgstr "Razdvoji sve terminale" #: ../terminatorlib/prefseditor.py:164 msgid "Group terminals in window" -msgstr "" +msgstr "Grupiraj terminale u prozoru" #: ../terminatorlib/prefseditor.py:165 msgid "Group/Ungroup terminals in window" -msgstr "" +msgstr "Grupiraj/razgrupiraj terminale u prozoru" #: ../terminatorlib/prefseditor.py:166 msgid "Ungroup terminals in window" -msgstr "" +msgstr "Razgrupiraj terminale u prozoru" #: ../terminatorlib/prefseditor.py:167 msgid "Group terminals in tab" @@ -1489,11 +1473,11 @@ msgstr "Otvori prozor postavki" msgid "Open the manual" msgstr "Otvori priručnik" -#: ../terminatorlib/prefseditor.py:1370 +#: ../terminatorlib/prefseditor.py:1366 msgid "New Profile" msgstr "Novi profil" -#: ../terminatorlib/prefseditor.py:1413 ../terminatorlib/prefseditor.py:1418 +#: ../terminatorlib/prefseditor.py:1409 ../terminatorlib/prefseditor.py:1414 msgid "New Layout" msgstr "Novi raspored" @@ -1540,7 +1524,7 @@ msgstr "_Umetni" #: ../terminatorlib/terminal_popup_menu.py:112 msgid "Set W_indow Title" -msgstr "" +msgstr "Postav_ite naslov prozora" #: ../terminatorlib/terminal_popup_menu.py:117 msgid "Split H_orizontally" @@ -1580,7 +1564,7 @@ msgstr "Grupiranje" #: ../terminatorlib/terminal_popup_menu.py:186 msgid "Relaunch Command" -msgstr "" +msgstr "Ponovo pokreni naredbu" #: ../terminatorlib/terminal_popup_menu.py:191 msgid "Show _scrollbar" @@ -1605,11 +1589,11 @@ msgstr "Ukloni grupu %s" #: ../terminatorlib/terminal.py:512 msgid "G_roup all in window" -msgstr "" +msgstr "G_rupirajte sve u prozoru" #: ../terminatorlib/terminal.py:517 msgid "Ungro_up all in window" -msgstr "" +msgstr "Razgr_upiraj sve u prozoru" #: ../terminatorlib/terminal.py:522 msgid "G_roup all in tab" @@ -1656,25 +1640,25 @@ msgstr "_Umetni broj terminala" msgid "Insert _padded terminal number" msgstr "Umetni _broj terminala s predstavljenom nulom" -#: ../terminatorlib/terminal.py:1490 +#: ../terminatorlib/terminal.py:1492 msgid "Unable to find a shell" msgstr "Nije moguće pronaći ljusku" -#: ../terminatorlib/terminal.py:1521 +#: ../terminatorlib/terminal.py:1546 msgid "Unable to start shell:" msgstr "Nije moguće pokrenuti ljusku:" -#: ../terminatorlib/terminal.py:1975 +#: ../terminatorlib/terminal.py:2000 msgid "Rename Window" msgstr "Preimenuj prozor" -#: ../terminatorlib/terminal.py:1983 +#: ../terminatorlib/terminal.py:2008 msgid "Enter a new title for the Terminator window..." msgstr "Upiši novi naslov za prozor Terminatora …" #: ../terminatorlib/titlebar.py:112 msgid "[INACTIVE: Right-Click for Relaunch option] " -msgstr "" +msgstr "[NEAKTIVNO: Desni klik za opciju ponovnog pokretanja]" #: ../terminatorlib/titlebar.py:258 msgid "Alpha" @@ -1779,120 +1763,9 @@ msgstr "prozor" #: ../terminatorlib/window.py:773 #, python-format msgid "Window group %s" -msgstr "" +msgstr "Grupa prozora %s" #: ../terminatorlib/window.py:799 #, python-format msgid "Tab %d" msgstr "Kartica %d" - -#~ msgid "Current Locale" -#~ msgstr "Trenutačni jezik" - -#~ msgid "Western" -#~ msgstr "Zapadni" - -#~ msgid "Central European" -#~ msgstr "Srednjoeuropski" - -#~ msgid "South European" -#~ msgstr "Južnoeuropski" - -#~ msgid "Baltic" -#~ msgstr "Baltički" - -#~ msgid "Cyrillic" -#~ msgstr "Ćirilični" - -#~ msgid "Arabic" -#~ msgstr "Arapski" - -#~ msgid "Greek" -#~ msgstr "Grčki" - -#~ msgid "Hebrew Visual" -#~ msgstr "Vizualni hebrejski" - -#~ msgid "Hebrew" -#~ msgstr "Hebrejski" - -#~ msgid "Turkish" -#~ msgstr "Turski" - -#~ msgid "Nordic" -#~ msgstr "Nordijski" - -#~ msgid "Celtic" -#~ msgstr "Keltski" - -#~ msgid "Romanian" -#~ msgstr "Rumunjski" - -#~ msgid "Unicode" -#~ msgstr "Unikod" - -#~ msgid "Armenian" -#~ msgstr "Armenski" - -#~ msgid "Chinese Traditional" -#~ msgstr "Kineski tradicionalni" - -#~ msgid "Cyrillic/Russian" -#~ msgstr "Ćirilica/Ruski" - -#~ msgid "Japanese" -#~ msgstr "Japanski" - -#~ msgid "Korean" -#~ msgstr "Korejski" - -#~ msgid "Chinese Simplified" -#~ msgstr "Kineski pojednostavljeni" - -#~ msgid "Georgian" -#~ msgstr "Gruzijski" - -#~ msgid "Cyrillic/Ukrainian" -#~ msgstr "Ćirilica/Ukrajinski" - -#~ msgid "Croatian" -#~ msgstr "Hrvatski" - -#~ msgid "Hindi" -#~ msgstr "Hindski" - -#~ msgid "Persian" -#~ msgstr "Perzijski" - -#~ msgid "Gujarati" -#~ msgstr "Gudžaratski" - -#~ msgid "Gurmukhi" -#~ msgstr "Gurmuki" - -#~ msgid "Icelandic" -#~ msgstr "Islandski" - -#~ msgid "Vietnamese" -#~ msgstr "Vijetnamski" - -#~ msgid "Thai" -#~ msgstr "Tajlandski" - -#~ msgid "Line Height:" -#~ msgstr "Prored:" - -#~ msgid "Encoding:" -#~ msgstr "Kodiranje:" - -#~ msgid "Encodings" -#~ msgstr "Kodiranja" - -#~ msgid "Default" -#~ msgstr "Standardno" - -#~ msgid "User defined" -#~ msgstr "Korisnički određeno" - -#~ msgid "Other Encodings" -#~ msgstr "Ostala kodiranja" From 685aa75170847b54b53e76e5cbd35029d7229d52 Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 15:52:51 +0000 Subject: [PATCH 47/50] Translate po/terminator.pot in hr 100% translated source file: 'po/terminator.pot' on 'hr'. --- po/hr.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/hr.po b/po/hr.po index 7427a547..425c1860 100644 --- a/po/hr.po +++ b/po/hr.po @@ -872,7 +872,7 @@ msgstr "Koristi zadane boje" #: ../terminatorlib/preferences.glade.h:91 msgid "Foreground:" -msgstr "Prednja strana:" +msgstr "Prvi plan:" #: ../terminatorlib/preferences.glade.h:92 msgid "Background:" From 635e5338ec79b0a3c38763535873ae76dd4dabba Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 15:53:15 +0000 Subject: [PATCH 48/50] Translate po/terminator.pot in hr 100% translated source file: 'po/terminator.pot' on 'hr'. --- po/hr.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/hr.po b/po/hr.po index 425c1860..c2c6f47b 100644 --- a/po/hr.po +++ b/po/hr.po @@ -872,7 +872,7 @@ msgstr "Koristi zadane boje" #: ../terminatorlib/preferences.glade.h:91 msgid "Foreground:" -msgstr "Prvi plan:" +msgstr "Prednji plan:" #: ../terminatorlib/preferences.glade.h:92 msgid "Background:" @@ -932,7 +932,7 @@ msgstr "Ugrađene she_me:" #: ../terminatorlib/preferences.glade.h:107 msgid "_Foreground:" -msgstr "_Prvi plan:" +msgstr "_Prednji plan:" #: ../terminatorlib/preferences.glade.h:108 msgid "_Background:" From 64bccd27b57922d2186497826a900390054fa62c Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 15:55:16 +0000 Subject: [PATCH 49/50] Translate po/terminator.pot in hr 100% translated source file: 'po/terminator.pot' on 'hr'. --- po/hr.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/hr.po b/po/hr.po index c2c6f47b..64480596 100644 --- a/po/hr.po +++ b/po/hr.po @@ -764,7 +764,7 @@ msgstr "Otvaranje poveznica jednim klikom (umjesto Ctrl-lijevi klik)" #: ../terminatorlib/preferences.glade.h:64 msgid "Disable mouse paste" -msgstr "Onemogući lijepljenje mišom" +msgstr "Onemogući umetanje mišom" #: ../terminatorlib/preferences.glade.h:65 msgid "Custom URL handler:" From 1a4921b26204bfe654012b8fec6483eca2c4e573 Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Sat, 17 Jun 2023 21:31:00 -0400 Subject: [PATCH 50/50] Alter get_text_range call based on VTE version In vte 0.72 there was a regression that caused Vte.Terminal.get_text_range() to fail to return the text requested However, in the same version, there was a new call introduced that does retrieve the text, so if I detect a vte minor version above 72, I call that instead. --- terminatorlib/plugins/logger.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/terminatorlib/plugins/logger.py b/terminatorlib/plugins/logger.py index 8b3c721e..c2bb1545 100644 --- a/terminatorlib/plugins/logger.py +++ b/terminatorlib/plugins/logger.py @@ -6,7 +6,7 @@ terminals """ import os import sys -from gi.repository import Gtk +from gi.repository import Gtk,Vte import terminatorlib.plugin as plugin from terminatorlib.translation import _ @@ -19,6 +19,7 @@ class Logger(plugin.MenuItem): dialog_action = Gtk.FileChooserAction.SAVE dialog_buttons = (_("_Cancel"), Gtk.ResponseType.CANCEL, _("_Save"), Gtk.ResponseType.OK) + vte_version = Vte.get_minor_version() def __init__(self): plugin.MenuItem.__init__(self) @@ -40,8 +41,11 @@ class Logger(plugin.MenuItem): def write_content(self, terminal, row_start, col_start, row_end, col_end): """ Final function to write a file """ - content = terminal.get_text_range(row_start, col_start, row_end, col_end, + if self.vte_version < 72: + content = terminal.get_text_range(row_start, col_start, row_end, col_end, lambda *a: True) + else: + content = terminal.get_text_range_format(Vte.Format.TEXT,row_start, col_start, row_end, col_end) content = content[0] fd = self.loggers[terminal]["fd"] # Don't write the last char which is always '\n'