Commit Graph

1780 Commits

Author SHA1 Message Date
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
Matt Rose
8ae6f93f55
Merge pull request #725 from mattrose/724-unset-keybinding-toggle_scrollbar-prevents-right-click-menu-from-opening
Fix context menu keybinding reading.
2023-03-08 17:31:03 -05:00
Matt Rose
e4be854668 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.
2023-03-08 17:17:57 -05:00
PF
599b9b8bf4
Capitalize the first letter for "Read only" 2023-03-06 22:25:27 -04:00
Matthew Rose
9eaf0cbd6b Release version 2.1.3 2023-03-01 17:36:20 -05:00
Matt Rose
380be99c9f
Merge pull request #709 from KKoovalsky/master
Better distinguishing of inactive windows from the active one, by changing the background brightness
2023-03-01 16:45:25 -05:00
Matt Rose
45a8b4c75c
Merge pull request #691 from nicbn/patch-1
Ctrl+Click on group button automatically creates groups whenever needed
2023-03-01 16:23:33 -05:00
Matthew Rose
d6d9cce90c should not commit this late at night. 2023-02-28 22:32:14 -05:00
Matthew Rose
ed763df331 Further fix to last_active_window 2023-02-28 22:22:57 -05:00
Matthew Rose
066acd779a 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.
2023-02-28 21:42:29 -05:00
Kacper Kowalski
c1d9253acc Make inactive background brightness default 1.0 (100%) 2023-02-21 11:04:37 +01:00
Vulcalien
d52fa5a5d4 Detachable tabs: reposition the code 2023-02-15 11:44:42 +01:00
Vulcalien
6cc3052ba7 Add background image's drawing mode and alignment to preferences GUI 2023-02-14 16:59:59 +01:00
Vulcalien
df8890199c Add background image alignment
background_image_align_horiz: left, center, right
background_image_align_vert: top, middle, bottom
2023-02-14 15:13:54 +01:00
Vulcalien
21529cec6c Add different background image modes
stretch_and_fill, scale_and_fit, scale_and_crop, tiling
2023-02-14 15:13:32 +01:00
Kacper Kowalski
39cf34e295 Fix typo 2023-02-03 18:26:54 +01:00
Kacper Kowalski
dd511778c8 Add debug messages for the inactive background color change 2023-02-03 15:56:46 +01:00
Kacper Kowalski
272328c82d Add inactive background color adjustment in prefs 2023-02-03 15:50:33 +01:00
Kacper Kowalski
6551dba9dc Add config option for inactive background offset 2023-02-03 14:59:36 +01:00
Kacper Kowalski
3854a7c0e2 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%.
2023-02-03 14:34:16 +01:00
zpalmtree
808d2efaa9 Add detachable tabs feature to preferences 2022-12-28 23:20:28 -05:00
nicbn
c84821e36a Make Ctrl+Click on group button automatically create groups 2022-12-06 18:08:01 -03:00
Vishweshwar Saran Singh Deo
98dcd0efec [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.
2022-11-23 20:02:26 +05:30
Vishweshwar Saran Singh Deo
8e5e6d1642 [bug 681] Plugin Submission + Generic Plugin Utility Functions & KeyBinding Feature: Mouseless / Mousefree / Keyboard URL opening or yanking #681
- renamed api interfacted for better clarity
- removed double checking of short-cut binding for plugins in keybindings
2022-11-23 15:34:22 +05:30
Vishweshwar Saran Singh Deo
8edebc6ca5 [bug 681] Plugin Submission + Generic Plugin Utility Functions & KeyBinding Feature: Mouseless / Mousefree / Keyboard URL opening or yanking #681
- removed plugin_util
- added key unbind feature
- updated plugin helper
- updated plugin helper - to have config as part of constructor
- updated MouseFreeURLHandler for plugin.py, unload
- removed circular dependency between plugin.py and config.py due to KeyBindUtil due to merging of plugin_util.py
2022-11-22 15:18:26 +05:30
Vishweshwar Saran Singh Deo
3e15ae40df [bug 681] Plugin Submission + Generic Plugin Utility Functions & KeyBinding Feature: Mouseless / Mousefree / Keyboard URL opening or yanking #681
-convert control keys keyval to standard lowercase, else signals are missing
2022-11-21 18:12:54 +05:30
Vishweshwar Saran Singh Deo
7bbb07c993 [bug 681] Plugin Submission + Generic Plugin Utility Functions & KeyBinding Feature: Mouseless / Mousefree / Keyboard URL opening or yanking #681
- there was a bug wherein the duplicate keybindings from plugins were not throwing the error "Duplicate Key Bindings Are Not Allowed", now while checking they are merged and then final list of keybindings are checked.
2022-11-21 16:24:32 +05:30
Matt Rose
13ff8cdcf5
Merge pull request #683 from mattrose/insert-term-name-plugin
Plugin and Group menu item that inserts the name of the terminal.
2022-11-20 16:11:25 -05:00
Matthew Rose
35e7e026cd add "Insert Terminal Name" to the group menu 2022-11-20 13:42:20 -05:00
Matthew Rose
3d63c91517 [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
2022-11-19 23:01:05 -05:00
Matt Rose
4e5e790a81
Merge pull request #189 from phidebian/phi-zero-padded
Use the term 'zero padded' instead of 'padded'.
2022-11-19 15:09:43 -05:00
Vishweshwar Saran Singh Deo
8802e9b912 [bug 681] 681-Plugin-Submission-Plugin-Utility-KeyBinding-Mouseless-Keyboard-URL-Open #681
Merge remote-tracking branch 'upstream/master' into 450-mouseless-URL-opening-or-yanking
1) Mouse less/free opening / yanking feature
2) plugin_util  file to assist this and other plugins with key-press Helper function
3) adding Key Binding Help Functions in above (2) to config and preferences->keybinding to have a consistent behavior
2022-11-19 21:07:34 +05:30
Vishweshwar Saran Singh Deo
0ae2aba167 1) Mouse less/free opening / yanking feature
2) plugin_util  file to assist this and other plugins with key-press Helper function
3) adding Key Binding Help Functions in above (2) to config and preferences->keybinding to have a consistent behavior
2022-11-19 20:06:24 +05:30
Matt Rose
a83ee32840
Merge pull request #589 from Vulcalien/zoom-on-notebook
Zoom on notebook even if there is only one terminal in the tab + keep tab position and label in notebook rotation
2022-11-18 23:28:17 -05:00
Matt Rose
2aff8dbf30
Merge pull request #679 from mattrose/add-readonly
Add Readonly toggle to popup menu
2022-11-18 23:15:43 -05:00
Matt Rose
1d5351ed86
Merge pull request #665 from vssdeo/559-Add-menu-autocomplete
[bug 559] Add menu autocomplete #559
2022-11-18 23:10:10 -05:00
Matt Rose
a6b78bbbf0
Merge pull request #666 from vssdeo/662-In-the-Context-Menu-right-click-show-keyboard-shortcuts
[bug 662] [Feature Request] - In the Context Menu(Right-Click) show k…
2022-11-18 21:29:46 -05:00
Matt Rose
230e1e5985
Merge pull request #671 from vssdeo/613-shortcut-autosplit-h-v-dependingon-terminal-size
[bug 613] -  Shortcut for autosplit h/v depending on active terminal …
2022-11-18 21:22:44 -05:00
Matthew Rose
0d362fc0f5 Add Readonly toggle to popup menu
Fixes #649
2022-11-18 21:14:42 -05:00
Matt Rose
1d1e57b8f2
Merge pull request #674 from mattrose/remove-ibus-hacks
Remove all ibus workarounds
2022-11-18 16:13:41 -05:00
Tobias Farrenkopf
91cc928f0d Fix argument handling of the --execute flag
--execute behaves now like in the docs:
	Runs  the rest of the command line instead of your default shell
        or profile specified command.

This fixes it's proper usage with tools like gio or xdg_open
2022-11-18 13:12:59 +00:00
Matt Rose
044b3eaee1 Remove all ibus workarounds
I am sick of ibus breaking every single time we issue a new
release, so as of now, I've gone through the code and removed
all of the workarounds that we have put in to try and get
around issues in ibus, and GTK Input Methods in general.

The code as it stands should work, I'm going to mention a
bunch of people in this PR and ask them to beta test this
change.
2022-11-14 11:00:25 -05:00
Vishweshwar Saran Singh Deo
85f57543ed -added split_auto to prefseditor
-had to comment out test for ctrl shift a (need to cross check)
2022-11-05 15:29:42 +05:30
Vishweshwar Saran Singh Deo
6bdb0c648c [bug 613] - Shortcut for autosplit h/v depending on active terminal size #613
-added auto split feature
-new signal split-auto was added
-currently this uses widget dimensions for the split as rows, cols were having different space and was not consistent, this can be changed if needed
-short cut was also added
-icon for the menu item needs to be added
2022-11-05 11:42:38 +05:30
Vishweshwar Saran Singh Deo
ffd7ae518e [bug 662] [Feature Request] - In the Context Menu(Right-Click) show keyboard shortcuts / accelarators #662
-fixed: The problem in displaying is happening as the the config the key for eg Control is being saved as <Primary> and the short cut alphabetic character is being picked when creating the menu item and not being overwritten from config
-Note: the short cut for function keys are not being displayed in context-menu
2022-11-01 16:28:09 +05:30
Vishweshwar Saran Singh Deo
fdcf8facf4 [bug 559] Add menu autocomplete #559
- added a filter to the preferences menu for easy access to shortcuts
- may require some tweak, on search term size and update
Note: when edited in prefs it seems the Short Cut Labes in (right click) Context Menu are not updated will fix that in that bug Issue #662
2022-11-01 15:29:07 +05:30
Matt Rose
1aa437d6e3
Merge pull request #663 from vssdeo/662-In-the-Context-Menu-right-click-show-keyboard-shortcuts
[bug 662] [Feature Request] - In the Context Menu(Right-Click) show k…
2022-10-31 12:50:11 -04:00
Vishweshwar Saran Singh Deo
548a51c6bb [bug 662] [Feature Request] - In the Context Menu(Right-Click) show keyboard shortcuts / accelarators #662
- added short cuts / accelarators to right click context menu
- menu is updated from config so changes in preferences keybindings appear dynamically
- Note: I think there is a bug or discrepancy where
        for the action edit window title config.py says:
            'edit_window_title': 'w where as in code: terminal_popup_menu.py
            item = Gtk.ImageMenuItem.new_with_mnemonic(_('Set W_indow Title'))
            Character i is selected as mnemonic.
- fixed the above discrepancy
2022-10-31 12:26:34 +05:30
Matt Rose
f289b4df33
Merge pull request #632 from xuezhixin/master
this line has an extra ';' symbol
2022-10-30 21:30:34 -04:00
Matt Rose
3fa8669050
Merge pull request #661 from vssdeo/654-Plugin-Submission-SaveLastSessionLayout-Uses-Layout-to-Auto-Save-Last
[bug 654] - Plugin Submission : SaveLastSessionLayout Uses Layout to …
2022-10-30 21:23:15 -04:00
Vishweshwar Saran Singh Deo
3aaf54b5de [bug 654] - Plugin Submission : SaveLastSessionLayout Uses Layout to Auto-Save Last session and CWD on Terminal Window Close
- changes for the pre-close-term event in the plugin
- submitting as I had first thought of using current event close-term, but later thought of a consistent solution
2022-10-30 23:26:10 +05:30
Matt Rose
df1a433c61
Merge pull request #651 from kianmeng/fix-typos
Fix typos
2022-10-30 11:29:12 -04:00
Matt Rose
7c83d23e55
Merge pull request #659 from flaviosteimacher/patch-1
Update terminal.py
2022-10-30 11:15:46 -04:00
Matt Rose
c4d7253d66
Merge pull request #655 from vssdeo/654-Plugin-Submission-SaveLastSessionLayout-Uses-Layout-to-Auto-Save-Last
Plugin Submission : SaveLastSessionLayout Uses Layout to Auto-Save Last session and CWD
2022-10-30 10:57:18 -04:00
Matt Rose
af1ec64c93
Merge pull request #653 from vssdeo/bug-652-loading-layout-loads-the-last-added-layout
- bug context menu (right click)->layouts->"Layout Name" always selec…
2022-10-30 10:38:45 -04:00
flaviosteimacher
295cfd9f60
Update terminal.py
Fix error insert terminal number
2022-10-27 16:02:02 -03:00
Dante Calderon
2e1dd1f316
Add CLI command to reload configuration 2022-10-24 00:51:53 -05:00
Kian-Meng Ang
25111f2402 Fix typos
Found via `codespell -S .eggs,po,*.css -L boddy,maco,trough,wont,poing,gir,visibles`
2022-10-22 00:07:07 +08:00
Matt Rose
c447ae0201 Release version 2.1.2 2022-10-19 10:22:21 -04:00
Vishweshwar Saran Singh Deo
e7f9c731e8 - bug context menu (right click)->layouts->"Layout Name" always selects the last Layout
- fixed so the right layout is picked and loaded
2022-10-16 01:47:36 +05:30
Vishweshwar Saran Singh Deo
5bd81ce478 - added plugin save_last_session_layout.py
- saves the working directory and layout of last session (last window) closed
- layout is saved under name of SaveLastSessionLayout
- can be loaded from context menu (right click) -> layouts -> "SaveLastSessionLayout"
- last working directory is also saved
2022-10-16 01:32:30 +05:30
Vulcalien
df0643b1a4 Notebook rotate: keep tab position and label 2022-08-27 22:06:00 +02:00
xuezhixin
6c2e3b8bf7 this line has an extra ';' symbol 2022-08-15 14:33:01 +08:00
Vulcalien
784dc4946e Terminal mousewheel event: check for all modifiers 2022-06-13 15:16:24 +02:00
Vulcalien
06ada7c655 Notebook tab zoom: keep label and position 2022-05-20 13:12:16 +02:00
Matt Rose
d33c145ba8
Merge pull request #592 from mattrose/fix-prefs-setcolor
More fixes to the Color pickers in the Preferences Editor
2022-04-18 13:24:28 -04:00
Matt Rose
0e04376afb
Merge pull request #588 from mattrose/586-fix-readme
Various README fixes
2022-04-18 12:56:33 -04:00
amaan khan
33f7927bfa fixed indent 2022-04-16 12:09:38 +05:30
amaan khan
ed93ccb7e5 no need to go to custom to set custom palette 2022-04-16 12:05:29 +05:30
Vulcalien
c2f2addf05 Remove unused code (container.py, toggle_zoom) 2022-04-09 11:19:36 +02:00
Vulcalien
04bd693586 Zoom/maximize with one terminal in notebook tab 2022-04-09 11:15:36 +02:00
Jay W
886412fcf1 Add logic to remove duplicate shell from args 2022-02-01 19:06:23 +00:00
Jay W
967f039e60 Simplify flatpak-spawn args 2022-01-31 19:59:34 +00:00
Jay W
a41a38bcc9 Add flatpak support to terminatorlib 2022-01-31 19:12:16 +00:00
Vulcalien
8e50eb75ce Remove duplicated info in some debug messages 2022-01-28 21:51:54 +01:00
Matt Rose
ca335e45eb
Merge pull request #561 from Vulcalien/cell-width-preferences
Fix: handle_size treated as cell_width
2021-12-26 18:12:29 -05:00
Matt Rose
96aa749678
Merge pull request #553 from Vulcalien/zoom-terminal-switch
Unzoom terminal on interaction
2021-12-26 18:10:22 -05:00
Vulcalien
3c575029e7 Move 'cell_height' setting 2021-12-25 14:21:19 +01:00
Vulcalien
eacd72124a Fix: handle_size treated as cell_width 2021-12-25 13:09:33 +01:00
Matt Rose
d2c428bc60
Merge pull request #506 from Vulcalien/master
Improve argument parser + implement bash completion
2021-12-19 13:21:46 -05:00
Matt Rose
8f13beffbf
Merge pull request #552 from FernandoBasso/feat/configure-cell-width
Add ability to configure cell width (font character spacing)
2021-12-19 13:17:47 -05:00
Vulcalien
c574d77374 Remove duplicated variable 2021-12-18 11:58:38 +01:00
Vulcalien
0ed248c0c7 Clear pending events after unzoom + navigate/rotate
Navigation is consistent
2021-12-17 19:51:22 +01:00
Fernando Basso
bd5dba5b08 Refactor line height to cell height
After the previous commit [1], which implements ‘cell width’, it makes
sense to rename ‘line height’ to ‘cell height’, especially because it is
the terminology used by VTE itself [2].

1. ef1768505c Add cell width configuration in preferences
2. https://lazka.github.io/pgi-docs/Vte-2.91/classes/Terminal.html#Vte.Terminal.set_cell_height_scale
2021-12-14 06:30:58 -03:00
Vulcalien
8c90bb4dc3 Unzoom terminal on interaction
There is a bug: strange behavior for navigation and rotation
2021-12-10 20:57:48 +01:00
Fernando Basso
ef1768505c Add cell width configuration in preferences
Currently, we have a setting for changing the line height (cell height),
but not for changing cell width (both available in VTE).

Depending on the font used, it is useful to have the ability to set a
little more space between characters.

This commit adds a configuration similar to the existing one for line
height, but for character space (cell width scale [1]).

Thanks Matt Rose for helping and encouraging me to implement this.

1. https://lazka.github.io/pgi-docs/Vte-2.91/classes/Terminal.html#Vte.Terminal.set_cell_width_scale
2021-12-10 07:58:02 -03:00