Commit Graph

835 Commits

Author SHA1 Message Date
Daniel Micay cc34465621 fix unused parameter warning 2014-10-27 12:53:26 -04:00
Daniel Micay 96668c23cf rm resize grip setting, gtk dropped support for it 2014-10-27 12:39:26 -04:00
Daniel Micay 7612e90369 add back support for transparency
Closes #191
2014-10-27 12:25:58 -04:00
Daniel Micay 05f3bbf626 rm obsolete visual bell call (not in VTE anymore) 2014-09-21 22:54:24 -04:00
Daniel Micay e63d868ed6 use the vte_terminal_spawn_sync wrapper
The vte_ptr_set_term function is gone, so there's no reason to create
the pty object manually.
2014-09-21 20:35:25 -04:00
Mark Oteiza be4e2faf73 add ^B and ^F for paging in selection mode 2014-09-21 19:43:34 -04:00
Mark Oteiza 113ca4b7c9 add active hint colors to the default config
* addresses #137
2014-09-21 19:36:24 -04:00
Daniel Micay e4ad66736a rm extra newline 2014-09-21 19:20:48 -04:00
Daniel Micay 7f03ded730 port to vte 0.38.0
VTE is not making any attempt to maintain API stability. The following
changes to the API impacted Termite, despite it avoiding deprecated
functions:

* vte_pty_set_term removed (hopefully without an impact...)
* vte_terminal_get_child_exit_status replaced with new signal parameter
* beep signal -> bell signal
* vte_char_attributes -> VteCharAttributes
* sync suffix added to I/O functions along with some parameter changes
* rgba suffix removed from all color functions
* inner-border attribute replaced with GtkStyleContext padding
* vte_terminal_set_font_from_string removed, use Pango directly
* vte_terminal_is_word_char removed - is_word_char copied to Termite
* vte_terminal_set_word_chars removed - feature dropped
* vte_terminal_set_visible_bell removed - feature dropped

Support for text selection is still not supported upstream. The required
API is tiny and does not expose internal details. Despite the lack of a
compelling reason to leave it out like a backwards compatibility risk,
the patch has been left to rot on the bug tracker.

The vte_terminal_get_user_shell_with_fallback API was also removed,
although it was an internal API and Termite was only using it for
convenience. The functionality has been moved inside Termite.

Closes #187
2014-09-21 19:11:40 -04:00
Simon Gomizelj fb09063431 document --name and --class
Closes issue #181.
2014-08-24 13:09:08 -04:00
Simon Gomizelj 524ba450a7 Finally! A man page for the termite config!
Start of something more comprehensive (needs to document theming). See
issue #120.
2014-08-24 13:08:01 -04:00
Simon Gomizelj 76a707b665 use std::unique_ptr in more places 2014-08-24 12:07:27 -04:00
Daniel Micay e98ccd3821 rename command mode to selection mode 2014-07-09 11:53:21 -04:00
Simon Gomizelj d20bee9a34 Add 'fullscreen' conf setting to disable F11
Settings fullscreen to false prevents termite from intercepting F11.

See #144
2014-06-26 23:58:55 -04:00
Daniel Micay c4a39f9d8d fix typo in the man page
Closes #173
2014-06-15 18:37:06 -04:00
Simon Gomizelj bcf5152ad3 add a .ycm_extra_conf.py file 2014-04-10 22:33:12 -04:00
Simon Gomizelj 85f8a2691a fix memory leak 2014-03-08 18:24:48 -05:00
Simon Gomizelj 3b078b83a0 Query padding before drawing hints
Hints are not getting placed in the right place when vte has an
inner-padding. Start taking this into consideration.

Relevant to issue #162
2014-03-08 17:32:40 -05:00
Simon Gomizelj 2bf484277b Fix vte padding calculations.
Sometimes we only care about left and top offsets. get_vte_padding is
currently returning left + right and top + bottom, leading to
check_match miscalculating its offsets.

Closes #162
2014-03-08 17:32:40 -05:00
Simon Gomizelj 4e6a393d6c Merge pull request #161 from holomorph/holomorph/modifyotherkeys
produce escape sequences for extra Ctrl- modified keys
2014-03-07 22:50:47 -05:00
Mark Oteiza d4f8e66568 provide a modify_other_keys config option. defaults to false 2014-03-07 19:45:39 -05:00
Mark Oteiza 4416affc56 produce escape sequences for extra Ctrl- modified keys
current xterm has the resource modifyOtherKeys which, when enabled,
constructs escape sequences for many Ctrl-, Shift-, and Meta- modified
keys.  This implements support for some Ctrl- modified keys.
2014-03-04 14:10:42 -05:00
Simon Gomizelj 9edd015348 make error messages more self-consistent 2014-02-25 21:31:54 -05:00
Simon Gomizelj 190a1d01ee check and report errors in launch_browser
Just in case issues like #141 pop up again, lets have more debugging
and error reporting.
2014-02-25 21:22:19 -05:00
Simon Gomizelj 343140c8db error message should end in newline 2014-02-25 21:16:56 -05:00
Simon Gomizelj 95343b1e3f refactor button_press_cb callback 2014-02-21 22:33:44 -05:00
numeral 23591fd14f Copy URI to XA_CLIPBOARD on right click
Small patch that copies the match into the default clipboard using
gtk_clipboard_set_text(). Maybe consider which clipboard to use
(such as PRIMARY OR SECONDARY) instead based on a config option, although
that may be overkill (especially since PRIMARY is supposed to be ephemeral
or something)

Signed-off-by: Simon Gomizelj <simongmzlj@gmail.com>
2014-02-21 22:30:41 -05:00
Daniel Micay 531d0851ea Merge pull request #150 from migueldvb/docs
Add link to required VTE patch in the README
2014-02-11 15:36:45 -05:00
Miguel de Val-Borro ea7975546f Add link to required VTE patch 2014-01-19 13:16:18 -05:00
Simon Gomizelj 0a538af4d7 fix up warning from scan-build 2013-12-29 00:36:59 +00:00
Simon Gomizelj 40e825d94b Merge pull request #144 from thestinger/fullscreen
make F11 toggle fullscreen
2013-12-08 17:28:47 -08:00
Simon Gomizelj b913de35bb make F11 toggle fullscreen 2013-12-08 19:17:58 -05:00
Simon Gomizelj ccb881068c silence unusued parameter warning 2013-12-04 16:23:09 -05:00
Simon Gomizelj d805f914c4 Merge pull request #143 from holomorph/more_bracketleft
enable escaping overlays with C-[
2013-12-04 12:48:54 -08:00
Mark Oteiza 491ab37a56 enable escaping overlays with C-[ 2013-12-04 13:32:14 -05:00
Simon Gomizelj c1d65c416e check if browser is null, not if clickable_url is false
Hints don't make sense if there's no browser set, but checking if
browser is null makes for cleaner code. Note this wasn't wrong,
clickable_url will be set to false if browser is null.
2013-11-25 00:35:10 -05:00
Simon Gomizelj a05fdcd4d1 better warning for no browser 2013-11-23 20:37:18 -05:00
Simon Gomizelj c2211c0496 if no browser, disable url hints 2013-11-23 20:36:48 -05:00
Simon Gomizelj 476a26c5f7 disable clickable_url when no browser configured 2013-11-23 20:34:40 -05:00
Simon Gomizelj f493b4c83e clickable_url should be false whenever browser isn't set 2013-11-23 20:20:41 -05:00
Simon Gomizelj bdec3ffc22 Merge pull request #138 from aroig/exitstatus
return success when the window is closed
2013-11-02 14:58:12 -07:00
Abdo Roig-Maranges 0994063fac return success when window is closed 2013-11-01 15:34:08 +01:00
Daniel Micay 928a95bfaf Merge pull request #135 from baskerville/master
Use proper comment string in vim's modeline
2013-10-25 10:44:36 -07:00
Bastien Dejean 1a00f66ab1 Use proper comment string in vim's modeline
The dosini format's comment string is normally *;*. In order to allow
vim plugins similar to *commentary* to work, we need to set it to *#*.
2013-10-25 11:24:16 +02:00
Simon Gomizelj dc9948bbd1 Reload config file on SIGUSR1
Refactor config reloading into a lambda stored globally.

Closes #131
2013-10-23 15:07:41 -04:00
Daniel Micay 132dbda8f6 update README for changed config file path 2013-10-19 18:57:29 -04:00
Daniel Micay 9baf7c94e1 rm support for transparency (deprecated upstream)
I considered replacing this with `gtk_widget_set_opacity`, but it's no
more usable than window manager transparency since the font is transparent.

Since this is already broken with URL hints and won't be around in the
future, it might as well go sooner rather than later.

Closes #128
Closes #39
2013-10-19 16:45:29 -04:00
Simon Gomizelj b47ad17efb Fix up hints to match the GdkColor -> GdkRGBA switch
We no longer need to convert from ints to doubles, GdkRGBA already
provides doubles.

Closes #129
2013-10-14 23:42:51 -04:00
Daniel Micay 7593d77027 switch from GdkColor -> GdkRGBA
The old type is on the way out and `gtk_widget_modify_bg` has already
been marked as deprecated.

Closes #124
2013-10-13 12:06:39 -04:00
Daniel Micay 6da9e28e20 Revert "switch from GdkColor -> GdkRGBA"
This reverts commit 172a79223b.

temporary revert - default color calculation needs to be updated
2013-10-12 19:24:14 -04:00