Commit Graph

2820 Commits

Author SHA1 Message Date
dkmvs ba5d155c36 Reset Key Bindings to Default in Prefseditor Test
This commit adds a function that resets key bindings to the default in
 `test_keybinding_edit_produce_expected_accels` test.
Note that this function needs to run at the end of every test that
modifies the key bindings as they are not automatically reset after
the test has run.
2020-09-30 00:37:30 +03:00
dkmvs 03d5e20695 Add Test for `Keybinding>Preferences`
This commit adds
`test_keybinding_successfully_reassigned_after_clearing` test,
which checks that a key binding is successfully reassigned after it
has been cleared.
2020-09-29 22:05:54 +03: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 41caaabdf3
Merge pull request #205 from mattrose/command-notify
Command notify
2020-09-23 10:22:13 -04:00
Matt Rose dad40bb1b2 do not advertise as AVAILABLE if the signal is not present in the Vte library 2020-09-22 17:48:37 -04:00
Matt Rose f5cbdce5fc
Merge pull request #208 from mattrose/update-vte-spawn
update Terminal.spawn_child() to use spawn_async, not spawn_sync
2020-09-22 17:17:13 -04: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
Matt Rose b2599b657e
Merge pull request #211 from dkmvs/fix-shift-tab-keybinding-combination
Fix: Allow `Shift+Tab` Key Binding
2020-09-22 16:51:36 -04:00
dkmvs 5e417ee09d Add Tests for `Keybinding>Preferences`
The test in this commit checks that editing a key binding using a predefined
key combination produces the expected accelerator.
2020-09-18 03:45:31 +03: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
Matt Rose a93609da8f
Merge pull request #196 from dkmvs/dkmvs-forbid-duplicate-keybindings
Fix: Forbid Duplicate Key Bindings in `Preferences > Keybindings`
2020-09-09 14:32:30 -04:00
Matt Rose 793ac673aa update Terminal.spawn_child() to use spawn_async, not spawn_sync 2020-09-09 14:05:08 -04:00
Matt Rose 1c747b8971
Merge pull request #207 from mattrose/fix-login
fix login_shell option so that it sends -l rather than -shell
2020-09-09 14:01:48 -04:00
Matt Rose d0ac642f71 fix login_shell option so that it sends -l rather than -shell 2020-09-08 11:18:52 -04:00
Matt Rose 98d11928c6 add proper arguments 2020-09-04 12:15:25 -04:00
Matt Rose 8cd329c5c5 added some more documentation 2020-09-04 10:40:14 -04:00
Matt Rose bad60a03f2 tweak class name as well 2020-09-04 10:29:46 -04:00
Matt Rose 752311b8fe Tweak Name so it does not interfere with @xll4dux plugin 2020-09-03 18:18:08 -04:00
Matt Rose 93c1169104 update description 2020-09-03 18:14:49 -04:00
Matt Rose 6220af8030 add plugin to notify when command is complete 2020-09-03 18:00:08 -04:00
Matt Rose 940b721ba6
Merge pull request #200 from mattrose/dbus-options
Dbus options
2020-09-03 15:10:26 -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 75d68b8d2b move cmdline option conversion to dbus format to optionparse 2020-08-28 16:55:14 -04:00
Matt Rose c04b6aeb87 move cmdline option conversion to dbus format to optionparse 2020-08-28 16:51:37 -04: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
Matt Rose 956ca49dd2
Merge pull request #193 from mattrose/fix-separator
Add 'wide_handle' property
2020-08-24 15:05:54 -04:00
Matt Rose da9b5d49c1 Add 'wide_handle' property to allow you to paste from the first column to the right of a vertically split window 2020-08-24 14:41:21 -04:00
Matt Rose 527a8df76c
Merge pull request #185 from phidebian/phi-rem-conn
Exit remotinator with an explicit error message when terminator is needed but not running
2020-08-19 15:14:27 -04:00
Matt Rose eb81d3aeda
Merge pull request #182 from phidebian/phi-title-bottom
Add a 'title bar at bottom' option
2020-08-19 15:10:36 -04:00
Phi ba2c8fab6d Exit remotinator with an explicit error message when terminator is need but not running. 2020-08-19 13:54:12 +02:00
Phi fdea62daa3 Merge branch 'master' into phi-title-bottom 2020-08-17 16:43:55 +02:00
Matt Rose 195833ab5b
Merge pull request #181 from aadrian/patch-1
Format shortcuts
2020-08-16 11:34:25 -04:00
Phi 5f130c7b91 Add 'title at bottom' comment to say it require a restart to take effect. 2020-08-16 10:16:29 +02:00
Phi 70e90ffc16 Restore #!/usr/bin/env python 2020-08-16 07:21:17 +02:00
Phi a495f290bf Add a 'title bar at bottom' option 2020-08-15 18:15:55 +02:00
Adrian A 5963ba265c
Format shortcuts
Format shortcuts a little in the README
2020-08-14 10:41:33 +02:00
Matt Rose 9e05a5df2f
Merge pull request #176 from mattrose/new-hyper
add support for OSC-8
2020-07-27 17:22:51 -04:00
Matt Rose 76664f6c93
Merge pull request #172 from mattrose/remove-gnome-session
remove unused gnome session code
2020-07-23 10:56:37 -04:00
Matt Rose a530fc61ba
Merge pull request #171 from mattrose/version-string
Add version string to "Preferences -> About"
2020-07-23 10:56:18 -04:00
Matt Rose 0d04b31886
Merge pull request #174 from mattrose/fix-install-doc
add packages to install doc
2020-07-22 14:11:56 -04:00
Matt Rose 9429212090 add packages to install doc 2020-07-22 14:09:14 -04:00
Matt Rose 2a8df516e3
Merge pull request #173 from mattrose/fix-readme
Fix readme
2020-07-22 14:02:39 -04:00
Matt Rose 6464d0769f fix up line breaks 2020-07-22 13:57:01 -04:00
Matt Rose 2e54ebf0ec fix up line breaks 2020-07-22 13:54:40 -04:00
Matt Rose 6117271d5c
Merge pull request #166 from br0kenbuild/patch-1
Update README.md
2020-07-22 13:48:41 -04:00