Commit Graph

193 Commits

Author SHA1 Message Date
Vulcalien 8e50eb75ce Remove duplicated info in some debug messages 2022-01-28 21:51:54 +01:00
Vulcalien eacd72124a Fix: handle_size treated as cell_width 2021-12-25 13:09:33 +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
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
Vulcalien b2d15898a2 Fix: 'None' value for keybindings breaks editor
The bug: Gtk.accelerator_parse throws an error if the arg is None.
This means that if one keybinding is set to None, it is impossible to
set any new keybinding.
2021-12-07 16:09:56 +01:00
Vulcalien 9f7ed7ee21 Remove encoding from the Preferences menu 2021-11-06 11:43:23 +01:00
Matt Rose 5d43005df1
Merge pull request #519 from caprinux/master
Fix terminal separator size setting
2021-11-02 16:57:29 -04:00
Rafael Kitover 705322dfff
Add paste_selection keybinding.
Unbound by default, pastes primary selection.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2021-10-01 02:47:15 +00:00
caprinux c8cd50ba9a modify terminator separater size setting in gui to start from 1 2021-09-26 22:51:18 +08:00
Vulcalien 2251a3489b Implement GUI for disable_mouse_paste 2021-09-13 12:11:01 +02:00
Vulcalien cbd8f0e3a8 Add a "Copy" button to clone profiles 2021-08-30 17:55:42 +02:00
Vulcalien 9ded8988ad When "Use default colors" is unchecked, save the current values 2021-08-14 17:10:38 +02:00
Vulcalien eae7dcca3d Make the GUI work 2021-08-14 16:45:18 +02:00
Matt Rose 2a24c9191a fixes for --config-json 2021-08-11 21:23:01 -04:00
Vulcalien eaed1df6c4 Fix: moved titlebar code from set_values to set_profile_values 2021-08-08 21:55:01 +02:00
Matt Rose b80d133ccf add group all terminals in window 2021-08-06 19:02:54 -04:00
Vulcalien f65770d982 Bug Fix: 'Clear selection on copy' is always unchecked 2021-06-02 16:31:48 +02:00
Matt Rose 5455ac2f3e
Merge pull request #399 from nojhan/feat+RunCmdOnMatch
Feat+run cmd on match
2021-04-13 16:47:36 -04:00
nojhan eef5ffb01f fix link_single_click configuration 2021-03-09 09:22:22 +01:00
nojhan 8f0e8add14 feat: hidden plugins, managed URLhandlers, RunCmdOnMatch plugin
- Plugins starting with underscore will not be displayed by the
  preference/plugins window.
- This allow to add URLhandlers plugins on-the-fly.
- Add the RunCmdOnMatch plugin, which creates URLhandlers plugins
  based on a regexp/command pair.
- If an URLhandler plugin returns a prepared URL starting with "terminator://",
  then terminator will not try to open it with the URL handler (like xdg-open).
2021-03-04 21:09:15 +01:00
nojhan c47f3a2bad add feat: config to open links with single click
Instead of Ctrl-left click.
2021-03-04 11:17:26 +01:00
Matt Rose e40f9fe651
Merge pull request #314 from mattrose/zoom-all-keybind
issue 271: add keybindings to zoom all terminals at once
2020-12-30 16:24:17 -05:00
Matt Rose 3c4bbf4881 fix 319: refresh layout after save 2020-12-30 15:43:12 -05:00
Jose Augusto a53dea6fa5 remove rewrap on resize from option and remove functions too 2020-12-27 19:48:41 -03:00
Matt Rose 427c65f2cc Revert "Merge pull request #36 from waldner/master"
This reverts commit 6c56f32eeb, reversing
changes made to 904676057e.
2020-12-27 13:29:30 -05:00
Matt Rose 6c56f32eeb
Merge pull request #36 from waldner/master
fast resize keyboard shortcuts
2020-12-03 19:29:48 +00:00
Matt Rose 8f94a674d9 issue 271: add keybindings to zoom all terminals at once 2020-12-03 13:43:05 -05:00
Matt Rose 18ed95abe7 fix background image profile preferences ui 2020-11-19 11:49:45 -05:00
Matt Rose 1822d6ccb1 add config entry and preferences GUI 2020-10-19 17:14:40 -04:00
Matt Rose 6df1304563
Merge pull request #224 from dkmvs/fix-keybinding-accel-clearing
Fix: Key Binding Clearing in `Preferences > Keybindings`
2020-10-14 14:00:10 -04:00
Matt Rose 8db142d92b add GUI controls for background image 2020-09-30 10:20:02 -04:00
dkmvs 840a95eeb2 Use Empty String for Cleared Accels
When a key binding is cleared its value is now set to "" (an empty
string) instead of `None` as before.

This change is introduced because `Gtk.accelerator_parse` does not
allow `None` to be used as a value, which in turn breaks
`on_cellrenderer_accel_edited` function in
`terminatorlib/prefseditor.py` by raising a `TypeError` every time a
new key binding is introduced. Note that this only happens if at
least one key binding has been cleared first.
2020-09-29 17:10:56 +03:00
Matt Rose e1476a2ef2
Merge pull request #215 from mattrose/add-prefs-key
fix spacing
2020-09-22 17:04:51 -04:00
Matt Rose 0ff6a7b498 fix spacing 2020-09-22 16:59:26 -04:00
Matt Rose 71d4713d61
Merge pull request #209 from mattrose/add-prefs-key
add preferences keybindings
2020-09-22 16:58:37 -04:00
dkmvs 6c404d0355 Allow `Shift+Tab` Key Binding Accelerator
This commit allows to assign the `Shift+Tab` key binding to an action in
`Preferences>Keybindings`.

In GTK the Tab key can be modified by the Shift key. Such a key combination
has a special key value - `Gdk.KEY_ISO_Left_Tab`.
To allow it, `key = key_with_shift.keyval` was added to the code.

However, `Gdk.KEY_ISO_Left_Tab` key value is displayed as `Left Tab` in
`Preferences>Keybindings`, which is confusing as it is not obvious that it
corresponds to the `Shift+Tab` key combination. To make sure that `Shift+Tab`
is displayed as `Shift+Tab`, the `Shift+Tab` case is treated as if no Shift
was pressed at all.
2020-09-14 04:26:13 +03:00
Matt Rose 6ec295cdbc add preferences keybindings 2020-09-11 20:47:57 -04:00
dkmvs 1b5b584669 Add Tests for `Preferences>Keybidings`
This commit adds tests that check that:
1) Default key binding accelerators are distinct.
2) Message dialog appears when a duplicate key binding accelerator is
attempted to be assigned to a different action.
3) Duplicate key binding accelerator cannot refer to more than one action.

Also, `active_message_dialog` attribute was added to `PrefsEditor`, so
that tests could get a reference to a message dialog window.
2020-09-02 16:39:20 +03:00
dkmvs 46e78520c4 Forbid Duplicate Key Bindings
This commit forbids setting duplicate key bindings in
`Preferences > Keybindings` tab.

If a duplicate key binding is detected upon editing, such a key binding
is not assigned and instead a message dialog is displayed saying that the
key binding is a duplicate.
2020-09-02 15:25:20 +03:00
Matt Rose 1ad579ce03
Merge pull request #195 from mattrose/add_key_create_group
Key binding option for creating group in current terminal
2020-08-25 15:56:59 -04:00
Matt Rose 2b6fbe5048 Key binding option for creating group in current tab 2020-08-25 15:50:40 -04:00
Phi a495f290bf Add a 'title bar at bottom' option 2020-08-15 18:15:55 +02:00
Aaron Faanes a3ef71548e Allow live previewing of profile color changes 2020-07-07 19:48:42 -05:00
dkmvs 279a3e10e6 Fix: Allow Key Bindings with Shift-Modified Keys
This commit allows to set key bindings that contain
a key modified by a Shift key (e.g. `Ctrl + {`).
For example, after pressing `Ctrl + Shift + [`,
a key binding will be set to `Ctrl + {` as opposed
to `Ctrl + Shift + {` as before.

This is achieved by checking whether a key changes its
value when a Shift key is down. If it does, then the
Shift modifier is removed from `mods`. One exception:
if a key binding contains a letter then the Shift
modifier is not removed. This is because, for some
reason, a key value of a letter is never modified by the
Shift modifier and always corresponds to a key value of
a lowercase character. This is already handled in
`terminatorlib/keybindings.py`.

Resolves: #149
2020-06-27 23:42:04 +01:00
robertoetcheverryr e9a8c42fff Fixed bug in prefseditor.py 2020-06-23 10:08:17 -03:00
Douglas Bacon 3d128f0334 add line-height slider 2020-06-21 14:35:50 -04:00
robertoetcheverryr c8db3e38aa Added putty_paste_style_source_clipboard 2020-06-19 02:15:13 -03:00
Matt Rose 86f90337f6
Merge pull request #46 from filipkilibarda/master
Added option to disable ctrl+mousewheel zoom
2020-06-02 22:12:28 -04:00
Filip Kilibarda e4160dddc9 Added option to disable ctrl+mousewheel zoom 2020-04-28 22:57:15 -07:00
Jakub Vaněk 7ea105492f
feat(prefs): add prefs UI for bold_is_bright option (#38) 2020-04-25 20:25:48 +02:00