Commit Graph

1765 Commits

Author SHA1 Message Date
Matt Rose
36b3602292 fix syntax warnings
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
2024-02-15 21:47:11 -05:00
Matt Rose
750a9be85a
Merge pull request #882 from vssdeo/760-working-directory-feature-is-broken
[bug 760] working directory feature is broken
2024-02-14 21:34:29 -05:00
Rick Calixte
46f956613f
window.py: Fix window group toggle keybind
The current conditional always evaluates to False, resulting in the
ungroup_win() function never being called
2024-02-09 18:39:37 -05:00
Matt Rose
5c6fda2513
Merge pull request #841 from vssdeo/706-Favorites-Bookmarks-Plugin
706 favorites bookmarks plugin
2024-02-08 21:02:20 -05:00
Matt Rose
aa03c235b6 wired up preferences GUI 2024-02-08 16:34:02 -05:00
Matt Rose
305f6b2881 GUI designed 2024-02-08 16:02:41 -05:00
Matt Rose
b47f7d073e
Merge pull request #834 from Vulcalien/ask-before-closing
Ask before closing, even if there is only one terminal
2024-02-08 15:49:18 -05:00
Vishweshwar Saran Singh Deo
4519b3e631 [bug 760] working directory feature is broken
- as per the bug the layout does not get updated when "Save" button in layout is pressed
- it does get updated if the window is closed by pressing top x close icon.
- on pressing Save, it seems that the prefseditor takes this from current_layout = terminator.describe_layout() and saves it in config
- whereas the current changes are done per key stroke and config is updated
- this patch copies the parameters like directory and command when Save is press and on_layoutrefreshbutton_clicked() is called
- Hence working dir and command are copied when Save is pressed using uuid to match terminals.
- If there is a command registered then the terminal runs the command and exits. so one is not able to see the results.
2024-02-05 22:35:26 +05:30
Matt Rose
b13d35649b
Merge pull request #822 from vssdeo/802-Ability-to-undo-or-restore-changes-to-the-preferences
[bug 802] - Ability to undo or restore changes to the preferences #802
2024-02-05 10:32:21 -05:00
nautics889
6651b30fde fix: Remove unused imports in several modules #752
Removed unused imports in:
* terminator
* terminatorlib/plugins/dir_open.py
* terminatorlib/terminal.py
* terminatorlib/terminal_popup_menu.py
* terminatorlib/terminator.py
* tests/test_signalman.py
2024-01-26 20:20:19 +02:00
Vishweshwar Saran Singh Deo
a5ddcbe255 [bug 706] 706-Favorites-Bookmarks-Plugin #706
- the dialog window taking command for bookmark via shortcut keybinding will have focus on OK Button for faster interaction
- fixed a transient window issue for loading pref window via shortcut and context menu
- filed new command text area  was getting filled with last command
- fixed list store init
2023-10-17 01:11:21 +05:30
Vulcalien
8c0c7ceb4f Add a setting to specify when to ask to confirm before closing
'ask_before_closing' replaces 'suppress_multiple_term_dialog'.
The function 'Container.construct_confirm_close' was significantly
modified. The terminator_config manpage has been updated.
2023-10-10 17:03:21 +02:00
Vulcalien
8911723518 Window: always ask confirmation to close, even with only one terminal 2023-10-10 15:47:39 +02:00
Vishweshwar Saran Singh Deo
86337ad326 [bug 706] 706-Favorites-Bookmarks-Plugin #706
- modified custom command plugin to have bookmarks
- added keybindings for directly adding or launch the custom command menu
- made name parsing of the custom command optional
2023-10-08 12:40:19 +05:30
Vishweshwar Saran Singh Deo
6fc6d7f658 [bug 802] 802-Ability-to-undo-or-restore-changes-to-the-preferences #802
- fixed the errors in case of missing configs
- restore file is stored in writable path
2023-09-11 18:30:02 +05:30
Vishweshwar Saran Singh Deo
2fe3ad8b08 [bug 802] - Ability to undo or restore changes to the preferences #802
- added basic config restore option from preferences window
 - changes to glade made in addition to addition of destory signal
 - minor cleaup in config to have a single function return confilg filename via get_config_filename
2023-09-04 17:21:37 +05:30
Matt Rose
a6a0eca553
Merge pull request #736 from rkashinin/issue-676
Fix for issue #676: title field not seem to be working with JSON profile
2023-08-26 21:49:12 -04:00
Matthew Rose
3c2d1ef047 Merge branch 'feature/add-command-line-command-to-reload-configuration' of https://github.com/dantecalderon/terminator into dantecalderon-feature/add-command-line-command-to-reload-configuration 2023-08-26 21:39:29 -04:00
Matt Rose
f3841c640f
Merge pull request #741 from nautics889/minor-fixes-configjson
fix: Minor fixes in terminatorlib/configjson.py
2023-08-26 21:21:23 -04:00
Matt Rose
cb4d84d52d
Merge pull request #770 from Tyler-Hardin/master
Enable sixel support in VTE if it's available.
2023-08-26 21:14:15 -04:00
Matt Rose
00ec42c7d2
Merge pull request #797 from j-d-r/master
Add command line option --toggle-visibility
2023-08-26 13:50:45 -04:00
Vishweshwar Saran Singh Deo
bd4e3b3470 Merge remote-tracking branch 'upstream/master' into 681-Plugin-Submission-Plugin-Utility-KeyBinding-Mouseless-Keyboard-URL-Open 2023-08-26 20:47:10 +05:30
Matthew Rose
f7b6ea07bc Fix Insert Term Name Plugin error
The "Insert terminal name" Plugin causes the following traceback
Traceback (most recent call last):
  File "/Users/mattrose/Code/terminator/terminatorlib/terminator.py", line 588, in do_insert_term_name
    term.feed(name)
  File "/Users/mattrose/Code/terminator/terminatorlib/terminal.py", line 1709, in feed
    self.vte.feed_child(text)

This PR fixes it so the plugin inserts the terminal name, as intended.
2023-08-26 09:21:18 -04:00
Matt Rose
9c054ac29e
Merge pull request #806 from vssdeo/805-keyboard-shortcut-support-for-plugins-code-decoupling
805 keyboard shortcut support for plugins code decoupling
2023-08-25 21:20:05 -04:00
Vishweshwar Saran Singh Deo
3b4d32cda3 [bug 808] Plugins-dont-receive-keboard-signals-on-newly-opened-windows
- code separated for force loading of plugins on every terminal instance
2023-08-09 16:31:41 +05:30
Vishweshwar Saran Singh Deo
d39968ebba - [bug 681] removed force plugin load from plugin and separated the code in a diff issue
Plugin Submission + Generic Plugin Utility Functions & KeyBinding Feature: Mouseless / Mousefree / Keyboard URL opening or yanking
2023-08-09 16:11:59 +05:30
Vishweshwar Saran Singh Deo
64a6e391ac - more changes from 681-Plugin-Submission-Plugin-Utility-KeyBinding-Mouseless-Keyboard-URL-Open that were to be decoupled 2023-08-09 14:47:42 +05:30
Vishweshwar Saran Singh Deo
11639159b4 - removed KeyBindUtil dependency as its now a seperate pull request
- this branch is further decoupled using the current commit, 681-Plugin-Submission-Plugin-Utility-KeyBinding-Mouseless-Keyboard-URL-Open
2023-08-09 14:39:45 +05:30
Vishweshwar Saran Singh Deo
d91d017e20 -remove the plugin from the plugin shortcut util / helper code 2023-08-06 20:18:28 +05:30
Vishweshwar Saran Singh Deo
a0ed310094 Merge remote-tracking branch 'upstream/master' into 681-Plugin-Submission-Plugin-Utility-KeyBinding-Mouseless-Keyboard-URL-Open 2023-07-28 20:08:37 +05:30
Julien Dusser
e61fc1ce60 Add command line option --toggle-visibility
Useful for Wayland where global shortcuts are not available. Use window
manager to bind "terminator --toggle-visibilty" to a keyboard shortcut.
2023-07-20 17:38:37 +02:00
Tyler Hardin
d0e366ff8d Enable sixel support in VTE if it's available. 2023-06-21 13:14:20 -04:00
Matt Rose
0fea7d47e5
Merge pull request #767 from x000zh/master
add new tab after current tab option
2023-06-20 20:56:37 -04:00
Matt Rose
7023fdc5ab
Merge pull request #778 from mattrose/fix_ratio
Revert "modify terminator separater size setting in gui to start from 1"
2023-06-20 19:58:50 -04:00
Matt Rose
b7e91b1ede
Merge pull request #777 from mattrose/776-fix-logger
Alter get_text_range call based on VTE version
2023-06-20 19:57:16 -04:00
Matt Rose
1a4921b262 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.
2023-06-17 21:31:00 -04:00
Matt Rose
928a3dc5ec Revert "modify terminator separater size setting in gui to start from 1"
This reverts commit c8cd50ba9a.
2023-06-09 23:16:34 -04:00
x000zh
cd04443e29 add new tab after current tab option 2023-06-04 19:13:37 +08:00
Matt Rose
e0592eaf4f
Merge pull request #698 from zpalmtree/add-detchable-tabs-preference
Add detachable tabs feature to preferences
2023-04-24 09:55:48 -04:00
nautics889
ed5f1c9b0a fix: Minor fixes in terminatorlib/configjson.py
Remove unused import of 'sys' module;
Fix typo in log message;
Removed unused variable in `get_layout()` method.
2023-04-11 22:51:57 +03:00
Ruslan Kashinin
e2a88a2855
Fix for issue #676: title field not seem to be working with JSON profile 2023-04-09 18:01:41 +02:00
Ruslan Kashinin
1440dd924b Merge remote-tracking branch 'upstream/master' into issue-676 2023-04-07 22:00:38 +02:00
Ruslan Kashinin
468ef23c79
Fix for issue #676: title field not seem to be working with JSON profile 2023-04-03 01:17:02 +02:00
Vulcalien
0570307ecb Remove unused 'color_scheme' setting
The color scheme in use is determined by checking the
'foreground_color' and 'background_color' settings.
2023-04-02 17:26:24 +02:00
Vulcalien
a9c5e18365 Remove more unused settings and update the docs accordingly
Removed settings: scroll_background, focus_on_close, cycle_term_tab,
ignore_hosts.
2023-04-01 21:44:28 +02:00
Vulcalien
3f30aa58f7 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.
2023-03-31 17:14:27 +02:00
Matt Rose
2285ceb68b
Merge pull request #720 from pedroflor/patch-1
Capitalize the first letter for "Read only"
2023-03-22 18:13:22 -04:00
Matt Rose
41c9d344b4 fix drag and drop 2023-03-22 17:43:04 -04:00
Vulcalien
d8852f1e54 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.
2023-03-11 12:48:20 +01:00
Matt Rose
3d79ca5072
Merge pull request #716 from mattrose/714-fixdadt
Remove hack to ensure that focus is set.
2023-03-09 17:11:02 -05:00