Commit Graph

327 Commits

Author SHA1 Message Date
Warepire 7e9a93b421 Fix off-by-one in select_text() on libvte >= 0.55.0
Version 0.55.0 rewrote the selection bounds and made them non-inclusive
of the end-position. Take this into consideration.
2019-05-09 23:16:16 +02:00
Richard Moreland 4aa842245f Add cell scaling options
Add a cell_height_scale and cell_width_scale option which is supported
since vte3 0.52.
2019-04-26 23:00:28 +02:00
Nico Tonnhofer 5ae8b0f383 Fullscreen only when pressing F11
Make F11 only go fullscreen when no other modifier such as shift/ctrl is
pressed.
2019-04-26 22:49:45 +02:00
Ryan Carins 470631b0b7 Make Ctr+-/+ work with numpad keys 2019-04-26 21:50:00 +02:00
Jelle van der Waa 1b67c5cdf5 Use non-deprecated vte_terminal_match_set_cursor_name
vte_terminal_match_set_cursor_type is deprecated, use the new
vte_terminal_match_set_cursor_name function introduced in 0.40
2018-11-11 14:09:10 +01:00
Carlo Abelli 6855a9b474 Add bold_is_bright option 2018-09-19 22:06:40 -04:00
Björn Steinbrink 9aaf970fba Revert "Use std::make_unique from c++14 #360"
This reverts commit 8dd8f55088.

The make_unique function in util/memory.hh is not at all like
std::make_unique. The former is just a plain wrapper for the unique_ptr
constructor and makes the resulting unique_ptr take ownership of the
instance identified by the given pointer.

std::make_unique on the otherhand allocates a new instance of a given
type and makes creates a unique_ptr that has ownership of that instance.

So what the patch did was to allocate a char pointer, that did not
point at the string we're interested in, but instead points at the
pointer that points to that string. This means that the string that was
meant to be freed by the unique_ptr upon leaving its scope leaks.

Additionally, the check in open_selection() wasn't adapted to handle
the extra layer of indirection added by this change, so it always
assumed that there was some selection, and tried to open it, completely
breaking mouse usage.
2018-02-12 14:52:01 +01:00
Jelle van der Waa 8f6ce5239f Remove deprecated geometry handling 2018-02-11 02:36:06 +01:00
0xcpy 8dd8f55088 Use std::make_unique from c++14 #360 2018-02-05 19:47:28 +01:00
Jelle van der Waa 051e2fbf66 Add missing case for c key
Fix the breakage introduced in 01bfd9f9ea
2018-02-03 14:25:39 +01:00
Jelle van der Waa 01bfd9f9ea vte_terminal_copy_clipboard() is deprecated in VTE 0.50 2018-01-27 15:37:33 -05:00
jelle van der Waa e9e72d0893
Merge pull request #543 from adlpz/master
Set title to passed command when executing with -e
2017-12-11 22:37:05 +01:00
Jelle van der Waa 3bc2a43bef Check if there is an selection when opening selection
Prevent a segfault when trying to open a selection, when there is no
selection.
2017-12-01 20:50:14 +01:00
Jelle van der Waa 9eda6c5913 Revert "Merge pull request #546 from ThrosturX/master"
This reverts commit 86db8ab133, reversing
changes made to 1f9ab29f74.
2017-12-01 18:50:06 +01:00
throsturx 06170ca5e9 fixed a segfault on attempting to open a void selection in a newly opened terminal window 2017-11-29 14:41:57 +00:00
Adria Lopez b595d90ff5 Set title to passed command when executing with -e 2017-11-27 12:29:30 +01:00
Johannes Löthberg 459a8258a8 Need to fall back to check_match after hyperlink_check_event
vte_terminal_hyperlink_check_event only matches explicit OSC 8 marked
hyperlinks, so we still need to fall back to the existing check_match
function for the vast majority of URLs to be clickable.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-10-28 01:32:52 +02:00
Josip Janzic 14ee4ff101 Add support for hyperlinks
More info:

https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

https://bugzilla.gnome.org/show_bug.cgi?id=779734
2017-10-26 21:20:47 +02:00
jelle van der Waa 68b92d3702 Merge pull request #510 from xzfc/master
Add optional scrollbar
2017-08-20 11:23:17 +02:00
Jonatan Vela 8dad4e51e4 Support vim movements: H M L
Vim movements H, M and L implemented and documented.
2017-08-14 09:40:09 +02:00
Albert Safin d83ba0052d intruduce `.termite` CSS class 2017-08-13 12:28:14 +07:00
Albert Safin 9521dc3b11 add optional scrollbar 2017-08-13 12:28:14 +07:00
Albert Safin 1ddbbe5d5f add ^L to reset and clear 2017-08-12 16:02:45 +07:00
jelle van der Waa d87e7c8269 Merge pull request #470 from kohlerm/master
improving shell detection
2017-07-08 21:37:29 +02:00
Jelle van der Waa 5dc2d638a0 Handle invalid configuration file format
Print an error when an invalid key/value config is given to termite.

Closes: #486
2017-07-08 20:59:43 +02:00
Josip Janzic c18668fe8e
Add keybinding to move forward to end of word
Closes #495
2017-07-05 22:38:18 +02:00
Jelle van der Waa c1890ae7e2 Replace deprecated gregex api
vte_terminal_match_add_gregex, vte_terminal_search_get_gregex and
vte_terminal_search_set_gregex are all deprecated and replaced with the
VTeRegex API which uses PCRE2.

Closes: #395
2017-06-19 20:55:59 +02:00
Markus Kohler 340a1613bb reformatted 2017-03-31 18:03:31 +02:00
kohlerm af11439bd5 improving shell detection 2017-03-31 13:47:07 +00:00
jelle van der Waa e3a6814902 Merge pull request #427 from schoettl/vim
b and B set wrong cursor position in word.

Instead of setting the cursor position to the first character
the position is was set to first character +1.
2016-12-06 18:18:36 +01:00
Jakob Schöttl 1b0d371794 Bugfix: b and B set cursor to begin of word + 1 2016-12-04 22:23:05 +01:00
Jelle van der Waa f2a1aa91cc Skip ;,: as vte does not consider these a word. 2016-12-04 20:38:33 +01:00
Johannes Löthberg c08cd317ee Revert "non us fix" and fix it properly
This reverts commit 305f5cb938.

The old fix breaks it on US keyboards.  Instead, copy the case down to
be in both ifs.
2016-10-20 21:01:18 +02:00
jelle van der Waa a9cecb4b9d Merge pull request #400 from jelly/assert_valid_color
load_theme: set alpha to 0 of GdkRGBA
2016-10-02 19:12:24 +02:00
Jelle van der Waa 80ab246023 load_theme: set alpha to 0 of GdkRGBA
vte3 0.46 introduced an assertion valid_color which checks if the alpha
channel is set. The alpha channel is actually not used in
vte_terminal_set_colors.
2016-10-01 01:10:50 +02:00
Mikkel Oscar Lyderik 305f5cb938 Make key commands work on non-US keyboard layouts
`Ctrl-=` and `Ctrl-+` commands did not work on non-US like keyboard
layouts because `=` and `+` are produced differently in other layouts
e.g. `Shift` is required/not required respectively. The opposite of US
like layouts.

This patch fixes the issue by not checking if `Shift` is pressed/not
pressed when it's irrelevant to the command. Instead it uses the
`keyval` from GDK directly which has been transformed depending on
keyboard layout and pressed modifiers.

Fix #371
2016-08-14 23:43:10 +02:00
Kenneth Lyons fa1c0d7266 Consume F11 key press event. 2016-06-16 17:38:22 -07:00
jelle van der Waa 3170adffa7 Merge pull request #345 from purpleKarrot/master
compile url_regex with G_REGEX_MULTILINE
2016-06-05 15:12:11 +02:00
Jelle van der Waa 1f1b1e2151 Move zoom in/out/reset bindings to general
Changing the cursor when in command mode, messes
up vte's state which causes aborts, misplaced cursor
and other bugs.

Closes: #194
2016-05-22 22:42:09 +02:00
Jelle van der Waa 446a67a2d3 Disable blinking when moving cursor in selection mode
When moving the cursor in selection mode disabling blinking
mode. This behaviour is smiliar to moving the cursor in vim.

Closes: #275
2016-05-10 21:58:16 +02:00
jelle van der Waa e7a8cdba54 Merge pull request #328 from ixjlyons/icon-switch
Add command line switch to set icon.
2016-05-06 21:20:55 +02:00
jelle van der Waa 672d7ebdb9 Merge pull request #343 from schoettl/visual_home_end
Add Home and End for 0 and $ respectively
2016-05-06 20:56:12 +02:00
Daniel Lockyer f196f62ec9 termite.cc: pull out a method call into a variable so we can free it 2016-05-05 19:44:28 +01:00
Jelle van der Waa dedf7b38bd Resolve GCC 6.1 warning
GCC 6.1 warns about the comparison between an
long and double, cast the long to a double.
2016-05-04 21:37:42 +02:00
Earnestly 19e4a577fd Include missing cmath header
Resolves https://github.com/thestinger/termite/issues/350

Signed-off-by: Earnestly <zibeon@gmail.com>
2016-05-04 16:25:54 +01:00
Daniel Micay c252d4b55c Merge pull request #348 from jelly/foreground_color_cursor
Add support to set the foreground cursor color
2016-04-28 19:57:16 -04:00
Jakob Schöttl a37c385b35 Add Home and End for 0 and $ respectively 2016-04-28 22:53:09 +02:00
Jelle van der Waa 746ade831a Add support to set the foreground cursor color
VTE 0.44.1 supports setting the foregorund color of
the cursor using vte_terminal_set_color_cursor_foreground

Closes: #284
2016-04-28 20:37:13 +02:00
Daniel Lockyer f7c0aa54ed main: add some free calls to free GOptionContext
Free the GOptionContext when we are done parsing it
in termite.cc@main.
2016-04-27 21:37:22 +02:00
Daniel Pfeifer be3eec81c0 compile url_regex with G_REGEX_MULTILINE
vte_terminal_match_add_gregex wants that to be set.
see: https://github.com/thestinger/vte-ng/blob/0.44.1-ng/src/vtegtk.cc#L1718
2016-04-26 12:01:36 +02:00