Daniel Micay
7ea11041ac
fix comment for fallback exit path
2013-01-01 16:38:32 -05:00
Daniel Micay
9c20a943fb
add --hold switch
2013-01-01 16:33:50 -05:00
Daniel Micay
7c6d8ac0e3
fix fallthrough bug
2012-12-13 10:26:26 -05:00
Daniel Micay
aa568da12f
cleanup
2012-12-13 09:58:51 -05:00
Daniel Micay
c61a23e4d6
fix and document the exit status
2012-12-12 23:18:20 -05:00
Simon Gomizelj
2210a592b6
check font metric sanity
2012-11-30 13:11:15 -05:00
Simon Gomizelj
ecc402414b
make vte font resizable
...
Work around unexposed interface. Ideally, imho, should be exposed by
VteTerminal itself.
This closes #45
2012-11-30 12:01:03 -05:00
Daniel Micay
27ccafdf77
Merge pull request #46 from dkasak/half-screen-movements
...
Half screen movements
2012-11-25 20:46:59 -08:00
Denis Kasak
30debe96ba
Add half screen up/down movements to command mode.
2012-11-25 18:20:26 +01:00
Daniel Micay
266f1fb44e
only the hints mode shortcut should exit cmd mode
2012-11-16 14:59:26 -05:00
Daniel Micay
c1567594c9
add a shortcut for entering hints mode
2012-11-16 14:55:56 -05:00
Daniel Micay
4415184eff
switch the config reload binding
2012-11-16 14:31:31 -05:00
Daniel Micay
a3c554e563
start cleaning up color parsing
2012-11-14 20:49:13 -05:00
Daniel Micay
ed4a3b09c9
clean up get_config_cairo_color implementation
2012-11-14 20:06:28 -05:00
Daniel Micay
475f100dac
minor cleanup
2012-11-14 19:44:54 -05:00
Daniel Micay
ab403a8eb8
fix warning (missing static)
2012-11-14 19:42:55 -05:00
Simon Gomizelj
953017068d
invalid color will segfault get_config_cairo_color
2012-11-14 15:11:27 -05:00
Simon Gomizelj
90d1e0f111
refactor colour loading for cairo
2012-11-14 00:10:25 -05:00
Simon Gomizelj
84dbd31020
split out theme loading code
2012-11-13 23:26:16 -05:00
Simon Gomizelj
4847ad7b95
cleanup some warnings
2012-11-13 20:42:23 -05:00
Daniel Micay
062b5796dd
fix compile error on x86
2012-11-11 13:04:23 -05:00
Daniel Micay
0f17d4f2c5
wrap vte_terminal_get_text_range
2012-11-09 19:05:28 -05:00
Daniel Micay
abf07337c5
replace move_to_eol loop with std::find
2012-11-09 18:50:16 -05:00
Daniel Micay
37ac605880
use find_if instead of a loop
2012-11-09 15:24:53 -05:00
Daniel Micay
c85700366e
get 0, ^ and $ bindings working like vim
2012-11-09 14:13:47 -05:00
Daniel Micay
8d5b52ad35
remove the term setting
...
The xterm-termite value provides both correct terminfo and matches
xterm* checks done by applications to check for functionality not
exposed by terminfo.
2012-11-09 13:08:11 -05:00
Daniel Micay
5190acf978
add support for opening terminal in set directory
2012-10-21 18:50:23 -04:00
Daniel Micay
b76df7f5b2
get_config_boolean isn't needed anymore
2012-10-14 15:32:21 -04:00
Daniel Micay
033bed5bac
fix whitespace alignment
2012-10-14 15:08:46 -04:00
Daniel Micay
8486a64986
no need for templated function to be static
2012-10-14 15:08:06 -04:00
Daniel Micay
3909b180f7
one more usage of cfg_bool
2012-10-14 14:30:47 -04:00
Daniel Micay
f8954994bb
use cfg_bool for config_info settings too
2012-10-14 14:26:23 -04:00
Daniel Micay
f00df4e8f4
get_bool_or -> cfg_bool
2012-10-14 14:21:15 -04:00
Daniel Micay
83d1874f79
start cleaning up load_config
2012-10-14 14:19:37 -04:00
Simon Gomizelj
93446a222f
fix whitespace alignment
2012-10-14 13:53:02 -04:00
Daniel Micay
16dc6b7e83
Merge remote-tracking branch 'origin/better-hints'
...
Conflicts:
termite.cc
2012-10-14 13:48:47 -04:00
Daniel Micay
7fe8c69d59
fix indent style issue
2012-10-11 10:17:35 -04:00
Daniel Micay
02c92665ac
clean-up config parsing with option type
2012-10-11 10:13:54 -04:00
Daniel Micay
9cd8d5122a
get rid of clamp macro to make gcc happy
2012-10-10 23:42:03 -04:00
Daniel Micay
3d92b8b61e
use const for button_press_cb config_info param
2012-10-10 22:42:32 -04:00
Daniel Micay
298dddc6e2
kill off the last global variable
2012-10-10 22:25:10 -04:00
Daniel Micay
4aa5cba78e
no need for browser_cmd to be global
2012-10-10 17:44:59 -04:00
Daniel Micay
ea31f4c3e3
rm useless check
2012-10-08 11:50:40 -04:00
Simon Gomizelj
4a87e93620
add a configuration for padding
2012-10-08 10:09:51 -04:00
Simon Gomizelj
2e3edd46bd
add roundness and border color
2012-10-08 10:09:51 -04:00
Simon Gomizelj
11e6bbf8e2
add setting for hint border width
2012-10-08 10:09:51 -04:00
Simon Gomizelj
e5340a90dc
add a [hints] section
2012-10-08 10:09:51 -04:00
Simon Gomizelj
58ab9cad0f
wrong resolution
2012-10-08 10:09:51 -04:00
Simon Gomizelj
a1fbff67cd
move to pangocairo for hint rendering
...
Also add some configuration options: hint_font, hint_forground and
hint_background
2012-10-08 10:09:51 -04:00
Daniel Micay
b06873bf98
get rid of macro/concat hack
2012-10-05 17:12:13 -04:00
Daniel Micay
b4f059391a
fix url hint invalid error
2012-10-05 12:45:17 -04:00
Daniel Micay
a905414491
add util repo as submodule
2012-10-05 10:57:49 -04:00
Daniel Micay
506166230c
use a wrapper to make std::unique_ptr less verbose
2012-10-04 15:35:48 -04:00
Daniel Micay
3d2c98b162
initialize directory to nullptr
2012-10-02 19:27:14 -04:00
Daniel Micay
f21b9f55b2
add a command-line switch for chdir()
2012-10-02 19:14:12 -04:00
Daniel Micay
a7e2352596
add ctrl-left/right and shift-left/right bindings
2012-10-02 11:10:59 -04:00
Daniel Micay
a12645212c
end can be local to the strtok loop
2012-09-28 13:58:12 -04:00
Daniel Micay
4bd4bff004
set errno to 0 before strtoul call
2012-09-28 13:54:10 -04:00
Daniel Micay
eb6389e042
switch to strtok_r for comma-separator urls
...
this avoids an infinite loop when there is an invalid hint number
2012-09-28 13:41:18 -04:00
Daniel Micay
4f515865f6
move the other if-else into the switch
2012-09-28 12:18:13 -04:00
Daniel Micay
a4de8fdbc1
if-else chain -> switch-case
2012-09-28 09:52:53 -04:00
Daniel Micay
5cbfb8113d
fix input completion bindings for all modes
2012-09-28 03:45:49 -04:00
Simon Gomizelj
3f6ca1dedc
make sure the panel gets hidden on escape
2012-09-27 19:00:59 -04:00
Daniel Micay
dfec1ef085
make transparency double check a bit more robust
2012-09-27 12:54:44 -04:00
Simon Gomizelj
a7458fba67
properly exit url hint mode on Esc key
2012-09-27 12:39:06 -04:00
Simon Gomizelj
21d15c0cb6
selecting a url should exit command mode
2012-09-27 12:26:16 -04:00
Simon Gomizelj
4e8721b365
allow for comma seperated url entry
2012-09-27 12:20:14 -04:00
Simon Gomizelj
307f2438c1
exiting command mode should kill the entry
2012-09-27 11:55:06 -04:00
Daniel Micay
6e168e25d6
rm type alias
2012-09-25 05:44:07 -04:00
Daniel Micay
16159f2b1c
give url_data ownership over the url pointer
2012-09-25 05:03:14 -04:00
Daniel Micay
6d82e500d2
disable opacity properly (max guint16, not min)
2012-09-25 04:53:26 -04:00
Daniel Micay
6fb58f5688
don't ever set rgba visual if transparency is off
2012-09-25 04:49:43 -04:00
Daniel Micay
55c64aea32
avoid search_panel_info copy
2012-09-25 04:39:30 -04:00
Daniel Micay
b4bb15aff4
restore true transparency support
...
however, it still doesn't play well with url hints or dynamic config
reloading
2012-09-25 02:32:20 -04:00
Daniel Micay
b036852674
add pseudo-transparency support
2012-09-22 19:46:33 -04:00
Daniel Micay
1c3a31626e
{start,end}_selection -> {enter,exit}_command_mode
2012-09-22 03:37:21 -04:00
Daniel Micay
8163fa1e6d
reuse launch_browser function
2012-09-22 02:02:32 -04:00
Daniel Micay
2202d24468
rm redundant cast
2012-09-22 02:01:07 -04:00
Daniel Micay
dd3716361a
free matched urls in url_list
2012-09-21 23:36:42 -04:00
Daniel Micay
2cc3b1e706
free content in find_urls
2012-09-21 19:59:11 -04:00
Daniel Micay
d4490bc785
use const for strtok tokens
2012-09-21 18:24:19 -04:00
Daniel Micay
4559891f1d
might as well use auto with g_array_index
2012-09-21 18:02:30 -04:00
Daniel Micay
2ffe2aa2c6
urlregex.h -> url_regex.hh
2012-09-20 21:04:38 -04:00
Daniel Micay
3d8f18cebd
cleanup strtok_r loops
2012-09-18 20:06:34 -04:00
Daniel Micay
1273e58d59
GTree -> std::set
2012-09-18 18:20:46 -04:00
Daniel Micay
5fd64fb634
Revert "replace hardware_keycode hack to stop focus cycle"
...
This reverts commit 742ed9c6c4
.
2012-09-18 16:22:11 -04:00
Daniel Micay
f913bc054d
bounds check is too strict (off-by-one at the end)
2012-09-18 15:54:24 -04:00
Daniel Micay
742ed9c6c4
replace hardware_keycode hack to stop focus cycle
2012-09-18 08:13:55 -04:00
Daniel Micay
ecab4a6dba
id needs to be converted to the actual index
2012-09-18 07:56:59 -04:00
Daniel Micay
eb622a0b8a
an empty string isn't a valid number
2012-09-18 07:56:04 -04:00
Daniel Micay
4dc04defe2
rehide drawing area at startup
2012-09-18 06:13:55 -04:00
Daniel Micay
8f927cad26
Revert "only set the rgba visual when required"
...
This reverts commit 4b749020ae
.
2012-09-18 05:02:00 -04:00
Daniel Micay
4b749020ae
only set the rgba visual when required
2012-09-18 04:19:14 -04:00
Daniel Micay
83820ffb92
atoi -> strtoul with error checking
2012-09-18 02:55:26 -04:00
Daniel Micay
0c2d425f32
use g_signal_connect_swapped to avoid unused param
2012-09-18 00:50:01 -04:00
Daniel Micay
823aeb4ffe
no more url_list global
2012-09-18 00:42:17 -04:00
Simon Gomizelj
0600309498
have the hints use the same font as the vte
2012-09-17 19:40:55 -04:00
Simon Gomizelj
f7b534784f
use numeric_limits in draw_marker
2012-09-17 19:14:22 -04:00
Simon Gomizelj
63432759ba
snprintf buffer len is the wrong length
2012-09-17 19:12:57 -04:00
Simon Gomizelj
10295938ab
properly space hints within a padding
2012-09-17 19:10:52 -04:00
Daniel Micay
94217c8a57
fix url_data initialization order
2012-09-17 18:54:07 -04:00
Daniel Micay
b1dd8d6997
url_data's pos is now really the actual column
2012-09-17 18:00:39 -04:00
Daniel Micay
eacbaca03d
minor cleanup
2012-09-17 17:57:14 -04:00
Daniel Micay
e513f2ccd2
get the column from the char attr struct too
2012-09-17 17:51:08 -04:00
Daniel Micay
8ebe3ec620
%d -> %u for unsigned
2012-09-17 17:44:49 -04:00
Daniel Micay
30298b446d
url_data: line should be a long
2012-09-17 17:33:39 -04:00
Daniel Micay
885805c5c6
fix hint position on wrapped lines
2012-09-17 05:20:43 -04:00
Daniel Micay
e9bbc0f949
use const in a few places
2012-09-17 01:15:06 -04:00
Daniel Micay
c9da57f434
silence -Wconversion warnings
2012-09-16 18:09:52 -04:00
Daniel Micay
363300df1a
prevent a long -> unsigned conversion
2012-09-16 17:13:23 -04:00
Daniel Micay
e77a4ed5cb
purge some useless glib typedefs
2012-09-16 17:06:21 -04:00
Daniel Micay
2b683b1f0e
mbstowcs -> g_utf8_strlen
2012-09-16 16:57:34 -04:00
Daniel Micay
4c5c8d97ba
rm struct typedef
2012-09-16 16:25:14 -04:00
Daniel Micay
189c669920
replace GList with vector
2012-09-16 16:23:29 -04:00
Daniel Micay
6137340f6d
list -> url_list
2012-09-16 16:12:22 -04:00
Daniel Micay
c30216eca5
fix unused variable warning
2012-09-16 16:08:01 -04:00
Daniel Micay
7d188f3010
handle leaving hint mode
2012-09-16 16:03:49 -04:00
Daniel Micay
e1822fbfde
name the overlays
2012-09-16 15:53:09 -04:00
Daniel Micay
14c62d6074
manually merge vodik's old url hint branch
2012-09-16 05:57:01 -04:00
Daniel Micay
a6abd786cf
minor move_forward cleanup (\0 terminator not used)
2012-09-09 22:28:38 -04:00
Daniel Micay
8f3c799b01
replace 2 lambdas with partial functions
2012-09-09 18:19:44 -04:00
Daniel Micay
7168c5fcc4
fix last change
2012-09-09 17:20:06 -04:00
Daniel Micay
8abd6aa82e
keep word movement conventions the same
2012-09-09 17:05:34 -04:00
Daniel Micay
d0fca6953c
pointer -> index for word movement iterators
2012-09-09 16:59:51 -04:00
Daniel Micay
74bf1c58ea
another tweak to move_forward
2012-09-09 16:51:07 -04:00
Daniel Micay
8073df7dfe
replace lambda with std::not1
2012-09-09 16:00:19 -04:00
Daniel Micay
a2bafff951
stop forward word movement at the end of the text
2012-09-08 17:42:30 -04:00
Daniel Micay
7328e96110
minor cleanup
2012-09-08 16:59:25 -04:00
Daniel Micay
e96ab0829e
add support for setting highlight
2012-09-08 02:59:32 -04:00
Daniel Micay
5402716718
get rid of (some) duplicated word movement code
2012-09-08 01:18:10 -04:00
Daniel Micay
27e6fba2ef
add forward/backword WORD motion
2012-09-08 01:10:29 -04:00
Daniel Micay
ad861b7224
rm unused variable
2012-09-08 00:12:06 -04:00
Daniel Micay
a1591e795a
call update_selection in set_cursor_column
2012-09-07 22:49:16 -04:00
Daniel Micay
d3d7276ec0
cleaning up naming
2012-09-07 22:41:41 -04:00
Daniel Micay
deffdd9c83
fix error handling in color parsing
2012-09-07 21:11:29 -04:00
Daniel Micay
810b86aa08
rm redundant comment
2012-09-07 19:00:00 -04:00
Daniel Micay
aa0cc3b7e3
update_selection always removes the old selection
2012-09-07 18:55:01 -04:00
Daniel Micay
4b164c1e82
very minor cleanup
2012-09-07 16:41:20 -04:00
Simon Gomizelj
e027b88f30
order of stuff in main matters, oops
...
Terminal needs to be resized after g_spawn_async, not after.
2012-09-03 03:26:44 -04:00
Daniel Micay
978e6b2d76
switch to xterm-termite for TERM
...
This works with applications that hardcode the xterm* check, but still
allows for a correct entry in the terminfo database.
2012-09-02 18:56:25 -04:00
Daniel Micay
89077663ab
rm unused parameter
2012-08-30 04:28:15 -04:00
Daniel Micay
1e19755049
use the real cursor, instead of the selection hack
2012-08-30 04:27:01 -04:00
Daniel Micay
343a743830
just use vte's function to get the shell fallback
2012-08-30 01:03:15 -04:00
Daniel Micay
29b4f64420
0 -> nullptr
2012-08-27 02:00:14 -04:00
Daniel Micay
2a7c36d9ac
set _POSIX_C_SOURCE in the Makefile, not the code
2012-08-27 01:23:36 -04:00
Daniel Micay
72eec58d9e
pause output in command mode
2012-08-27 00:46:52 -04:00
Daniel Micay
fc3adf68b7
one last 1 -> EXIT_FAILURE
2012-08-26 20:29:32 -04:00
Daniel Micay
275bed4ea0
replace multi_url with a different keybinding
2012-08-24 10:27:48 -04:00
Daniel Micay
388539ae6c
make exiting command-mode on opening url optional
2012-08-21 22:42:33 -04:00
Daniel Micay
e07d1b4137
add check for NULL
2012-08-19 15:07:07 -04:00
Daniel Micay
2865781c70
fix focus loss issue with the completion widget
2012-08-14 23:52:28 -04:00
Daniel Micay
8fb9aad003
synthesize events for GtkEntryCompletion
...
adding keybindings has to be done by intercepting the desired key events
and replacing them with the default bindings
2012-08-14 23:47:19 -04:00
Daniel Micay
10a3eb0bac
zap some magic numbers
2012-08-14 20:34:11 -04:00
Daniel Micay
68939cc5ba
add missing cstdlib include
2012-08-14 20:19:19 -04:00
Daniel Micay
e4c2900c4f
some minor cleanup
2012-08-14 20:06:30 -04:00
Daniel Micay
c4a9494123
silence the g_key_file const warning
2012-08-14 20:02:11 -04:00
Daniel Micay
343cee1702
do not try opening empty selection in browser
2012-08-14 19:52:18 -04:00
Daniel Micay
cf78dbcd3e
initial implementation of 'w' and 'b'
2012-08-14 16:29:38 -04:00
Simon Gomizelj
d76afec3d7
fix the resizing issue in termite
...
Manually calculate the vte's size from the windows dimensions before
displaying it.
2012-08-12 06:45:14 -04:00
Daniel Micay
1246b64518
make geometry configurable in termite.cfg
2012-08-08 17:34:37 -04:00
Daniel Micay
139006d32a
fix assertion on forced exit
2012-07-30 11:46:49 -04:00
Daniel Micay
f1ff458911
fix minor leak
2012-07-27 05:05:27 -04:00
Daniel Micay
8b97b04cd1
expose word_chars option
2012-07-27 04:58:50 -04:00
Daniel Wallace
affac554fe
exit command mode after launching url
...
Signed-off-by: Daniel Wallace <daniel.wallace@gatech.edu>
Signed-off-by: Simon Gomizelj <simongmzlj@gmail.com>
This fixes issue #30 .
2012-07-21 19:02:15 -04:00
Daniel Micay
2809a040bc
Revert "get rid of GTree"
...
This reverts commit 7e55478fb1
.
Conflicts:
termite.cc
2012-07-21 01:43:16 -04:00
Daniel Micay
b8d574f76a
minor cleanup
2012-07-20 11:56:07 -04:00
Daniel Micay
c6869dd493
replace g_strdup_printf call with static buffer
2012-07-20 11:53:13 -04:00
Daniel Micay
1a3f3d2b4a
silence clang warning
2012-07-20 11:41:44 -04:00
Daniel Micay
e7acfc1635
move url_regex to a header
2012-07-20 11:32:49 -04:00
Daniel Micay
8200137f5d
strongly typed enum for input mode
2012-07-20 11:19:42 -04:00
Daniel Micay
497b8667fa
use strongly typed enum for overlay_mode
2012-07-20 11:05:30 -04:00
Daniel Micay
bd4b0bd144
rm redundant typedefs
2012-07-20 11:01:57 -04:00
Daniel Micay
76274d59ba
avoid glib MIN/MAX macros
2012-07-20 11:00:49 -04:00
Daniel Micay
fcb10e72e4
cleanup includes
2012-07-20 10:56:09 -04:00
Daniel Micay
7e55478fb1
get rid of GTree
2012-07-20 10:55:38 -04:00
Daniel Micay
d44ed632ae
minor cleanup (unused param)
2012-07-20 10:42:00 -04:00
Daniel Micay
0e7d8c4ce0
use the correct file extension
2012-07-20 10:35:45 -04:00