Mitchell Hashimoto
c66273e91c
input: better docs on links
2023-11-29 15:30:23 -08:00
Mitchell Hashimoto
0938a0d638
core: handle URL clicking properly with shift-escaping mouse events
2023-11-29 15:30:23 -08:00
Mitchell Hashimoto
056e96748a
core: don't crash if link processing fails
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
995e4e3757
os: open
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
dcbe0b8a5f
core: only update mouse hover point when no other mouse action
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
8fcf3f08dd
core: send mouse hover point
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
3a599ec7df
renderer: link sets handle hover links
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
b94c607256
renderer: matchset tests
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
5a7596e1b1
renderer: link set for more efficient matching
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
172a91e95d
core: change mouse cursor over link
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
20cc369561
core: detect link click
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
aa86031ff6
terminal: move line searching here, unit test
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
be05c3af53
input: add Link
2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
5db002cb12
renderer/metal: underline urls
2023-11-29 15:30:21 -08:00
Mitchell Hashimoto
c7ccded359
terminal: Screen.getLine
2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
3aba42c3f7
terminal: stringmaps
2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
0487dbfb25
terminal: selectionString uses arraylist to build results
2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
7fc95690bc
terminal: basic lineIterator on screen
2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
2ee493c972
Merge pull request #942 from mitchellh/themes
...
Built-in Themes (based on iTerm2-Color-Schemes)
2023-11-28 08:13:19 -08:00
Burak Yildiz
44a3b22db8
fix selection clearing after a key press
2023-11-27 21:03:24 +01:00
Mitchell Hashimoto
115e8130ba
Merge pull request #955 from mitchellh/text_action
...
Text action: input any text you want
2023-11-24 10:37:12 -08:00
Mitchell Hashimoto
6fc0d2d4a8
input: allocate for text bindings
2023-11-24 10:36:43 -08:00
Mitchell Hashimoto
0e2970bdeb
config: add string parse, tests
2023-11-24 10:26:55 -08:00
Mitchell Hashimoto
2e02083eef
Revert "parse string literal at load time"
...
This reverts commit 9c3e2b4ddd546e5f0c9d60c25a22bc5ab0be1283.
2023-11-24 10:06:34 -08:00
Guillaume Wenzek
9c3e2b4ddd
parse string literal at load time
2023-11-24 18:15:47 +01:00
Guillaume Wenzek
223accb4c8
add "text" action
2023-11-24 17:53:46 +01:00
Mitchell Hashimoto
a67d90710c
input: kitty encoding should ignore committed preedit state
...
Fixes #952
2023-11-24 07:58:31 -08:00
Mitchell Hashimoto
8b09764614
terminal: implement OSC 1 (change icon) and ignore it
...
Fixes #948
We want to parse it so we can log at a lower level than warn but we
don't want to support this because it isn't very well defined.
2023-11-23 14:58:34 -08:00
Mitchell Hashimoto
78420119df
core: clear selection on mouse cursor keys
...
Fixes #939
2023-11-23 14:46:09 -08:00
Mitchell Hashimoto
b34e0f6ec7
core: do not send repeat/release events if the press consumed a binding
...
Fixes #943
2023-11-23 08:40:52 -08:00
Chris Marchesi
e0d458004f
font/sprite: add Powerline face
...
This adds the Powerline face to our set of built-in faces, which
represents glyphs that are used to draw Powerline-style shell prompts
and status lines.
Since these are used similar to box-drawing characters, alignment is
important, and this gives us the most control in preventing related
artifacts.
This initial commit is scaffolding and support for the various solid
triangles - additional glyphs will come in other commits.
Fixes #675 .
2023-11-23 01:29:12 -08:00
Mitchell Hashimoto
5acaf3279d
apprt/gtk: use new resources dir
2023-11-22 22:10:16 -08:00
Mitchell Hashimoto
f25a136ea5
cli: +list-themes
2023-11-22 21:50:16 -08:00
Mitchell Hashimoto
84e71c8c1f
config: update themes docs
2023-11-22 21:38:05 -08:00
Mitchell Hashimoto
4dfbb79f8c
config: load themes
2023-11-22 21:34:26 -08:00
Mitchell Hashimoto
45a4be6873
core: move resources dir to main global state
2023-11-22 21:12:01 -08:00
Mitchell Hashimoto
0dc5516ac6
config: add "theme" config, track inputs
2023-11-22 21:08:39 -08:00
Mitchell Hashimoto
ec3b570b3e
terminal: know about autorepeat mode
...
Ignore it because xterm does
2023-11-21 18:48:05 -08:00
Mitchell Hashimoto
34cfe0abab
xterm audit: DECOM (origin mode)
2023-11-21 18:32:00 -08:00
Mitchell Hashimoto
2ce3db7dc2
apprt/gtk: set default cursor to be "text" (ibeam)
...
Fixes #933
On startup, we'd set the cursor to "text" but we wouldn't store that as
our cursor so when the mouse was unhidden, we'd go back to "default".
This PR changes it so that on surface startup we set and store the
"text" cursor so as the cursor hides/shows it reverts to the proper
value.
2023-11-21 17:10:44 -08:00
Mitchell Hashimoto
247b92ce07
renderer/opengl: convert Kitty images from RGB to RGBA
...
Fixes #932
We have to do this for Metal as well (this code is copied from Metal)
since Metal doesnt even allow RGB textures. I couldn't figure out a way
to get the A value to be "255" (byte), it seems to always be set to 1
which gets normalized to 1/255, so lets just manually convert.
2023-11-21 16:56:02 -08:00
Mitchell Hashimoto
44e28e43d3
terminal: fix cursor pos when resizing more rows not at bottom
...
Fixes #906
This changes our resize behavior when increasing row height.
If the cursor was originally at the bottom of the viewport, existing
scrollback (if it exists) will be "pulled down" from the top,
effectively keeping the cursor at the bottom. This is the behavior
today, prior to this commit.
If the cursor is not at the bottom of the viewport, scrollback will NOT
be "pulled down" and instead blank lines will be added _below_. This is
new behavior.
2023-11-21 11:27:02 -08:00
Mitchell Hashimoto
fd84178cc7
terminal: switching alt/primary screen invalidates Kitty image state
2023-11-21 08:37:41 -08:00
Tim Culverhouse
469c88c0c6
osc: fix OSC4 response
...
When reporting colors via OSC4, the index must also be reported.
2023-11-21 10:00:14 -06:00
Mitchell Hashimoto
cf8a0bdaec
renderer: handle Kitty images where z < 0 for all placements
2023-11-20 21:34:17 -08:00
Mitchell Hashimoto
89fe07271e
font: fallback fonts need to deinit their unused deferred faces
...
Fixes #885
Interestingly, this isn't that big of a leak for whatever reason on
macOS. But on Linux with fontconfig this is a MASSIVE memory leak.
2023-11-20 21:05:01 -08:00
Mitchell Hashimoto
bb8e5b9f76
terminal: handle width=3 by pretending width=2 for now
2023-11-20 20:41:58 -08:00
Mitchell Hashimoto
0430758b60
Merge pull request #923 from vancluever/vancluever-config-gtk-titlebar
...
apprt/gtk: let GTK titlebar be toggleable
2023-11-20 20:29:47 -08:00
Chris Marchesi
39e3fca210
apprt/gtk: let GTK titlebar be toggleable
...
This adds the gtk-titlebar option, which allows you to toggle the GTK
titlebar on (default) and off.
Under some circumstances (e.g. tiling WMs with titlebars enabled), one
may wish to disable the GTK titlebar/CSD for aesthetic reasons. This
allows you to do that.
Fixes #920 .
2023-11-20 20:07:11 -08:00
Mitchell Hashimoto
3c98c6375a
terminal: handle width==3 glyphs by just pretending they're width 2
2023-11-20 19:55:06 -08:00