Skip to content

Commit

Permalink
Merge pull request #209 from mattrose/add-prefs-key
Browse files Browse the repository at this point in the history
add preferences keybindings
  • Loading branch information
mattrose authored Sep 22, 2020
2 parents b2599b6 + 6ec295c commit 71d4713
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions terminatorlib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
'layout_launcher' : '<Alt>l',
'next_profile' : '',
'previous_profile' : '',
'preferences' : '',
'help' : 'F1'
},
'profiles': {
Expand Down
1 change: 1 addition & 0 deletions terminatorlib/prefseditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ 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'),
'help' : _('Open the manual')
}

Expand Down
4 changes: 4 additions & 0 deletions terminatorlib/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from .terminator import Terminator
from .titlebar import Titlebar
from .terminal_popup_menu import TerminalPopupMenu
from .prefseditor import PrefsEditor
from .searchbar import Searchbar
from .translation import _
from .signalman import Signalman
Expand Down Expand Up @@ -1988,6 +1989,9 @@ def key_line_up(self):
def key_line_down(self):
self.scroll_by_line(1)

def key_preferences(self):
PrefsEditor(self)

def key_help(self):
manual_index_page = manual_lookup()
if manual_index_page:
Expand Down

0 comments on commit 71d4713

Please sign in to comment.