Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a second keybind per action #1

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

rcalixte
Copy link
Owner

Modifying code:

  • terminatorlib/config.py
  • terminatorlib/keybindings.py
  • terminatorlib/plugin.py
  • terminatorlib/preferences.glade
  • terminatorlib/prefseditor.py
  • terminatorlib/terminal_popup_menu.py

Also updating translation files

Closes gnome-terminator#371

vssdeo and others added 3 commits October 17, 2023 19:49
…r-logs-out-or-shutdown-or-restart gnome-terminator#843

- fixed Plugin SaveLastSessionLayout not saving layout when user logs out or shutdown or restart
- signals added
- added get_vte().has_focus() for a valid focussed terminal to return
100% translated source file: 'po/terminator.pot'
on 'ru'.
@rcalixte rcalixte force-pushed the multiple_keybinds branch 13 times, most recently from e392cfb to 961b5a0 Compare January 13, 2024 00:08
@rcalixte rcalixte force-pushed the multiple_keybinds branch 9 times, most recently from bf09d79 to 4f5fba1 Compare February 11, 2024 21:01
Got the following Warnings when running under python 3.12.1

home/mattrose/Code/terminator/terminatorlib/terminal.py:324: SyntaxWarning: invalid escape sequence '\['
  hostchars = "-A-Za-z0-9:\[\]"
/home/mattrose/Code/terminator/terminatorlib/terminal.py:348: SyntaxWarning: invalid escape sequence '\.'
  "(www|ftp)[" + hostchars + "]*\.[" + hostchars +
/home/mattrose/Code/terminator/terminatorlib/terminal.py:354: SyntaxWarning: invalid escape sequence '\.'
  "[a-zA-Z0-9-]*\.[a-zA-Z0-9][a-zA-Z0-9-]+" +
/home/mattrose/Code/terminator/terminatorlib/terminal.py:359: SyntaxWarning: invalid escape sequence '\^'
  """news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:=?`]+@""" +

To fix this, I changed the strings to raw strings to pass to the regex
Got this while testing layouts.  Easy fix

Traceback (most recent call last):
  File "/home/mattrose/Code/terminator/./terminator", line 137, in <module>
    TERMINATOR.layout_done()
  File "/home/mattrose/Code/terminator/terminatorlib/terminator.py", line 341, in layout_done
    term.ensure_visible_and_focussed()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'ensure_visible_and_focussed'
@rcalixte rcalixte force-pushed the multiple_keybinds branch 2 times, most recently from 06228fa to f191937 Compare February 16, 2024 18:13
…tions_po-terminator-pot--master_ru

Updates for file po/terminator.pot in ru
…ser-session

feat: plugin - Save current user layout of all sessions, fixes gnome-terminator#563
…stSessionLayout-not-saving-layout-when-user-logs-out-or-shutdown-or-restart

[bug 843] 843-Plugin-SaveLastSessionLayout-not-saving-layout-when-use…
…_get_focussed_terminal_always_returns_none

[bug 852] - 852-terminator_py_get_focussed_terminal_always_returns_none
mattrose and others added 3 commits March 11, 2024 15:17
Previously, file URIs were lumped in with full uris that would be
used for HTTP, FTP, etc.  This caused file:/// uri parser to ignore
any file with a root dir that had a character that was not a valid
hostname character to be ignored.
…not-clickable-if-the-root-dir-has-a-underscore

Properly parse file:/// URIs
Modifying code:
 - terminatorlib/config.py
 - terminatorlib/keybindings.py
 - terminatorlib/plugin.py
 - terminatorlib/preferences.glade
 - terminatorlib/prefseditor.py
 - terminatorlib/terminal_popup_menu.py
 - terminatorlib/window.py

Modifying test:
 - tests/test_prefseditor_keybindings.py

Closes gnome-terminator#371
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple Keybinds for one Action
4 participants