Commit graph

79 commits

Author SHA1 Message Date
Dominic Gerhauser
75e1082260 Apply post processing to hyperlink. So less regexs with unlikely trailing characters are matches 2024-12-22 07:34:52 -07:00
Dominic Gerhauser
ff42dd2a97 regex hyperlinks 2024-12-18 09:26:59 -07:00
Arthur Cosentino
1743730fd9 Accumulate mouse scrolls for smoother scrolling 2024-11-09 07:03:59 -07:00
Jeremy Soller
eba2eb38b7
Use unbounded channel to prevent deadlock 2024-10-29 18:19:23 -06:00
A-Walrus
ad36c0c01b Fix regression with hidden cursors 2024-09-03 08:37:40 -06:00
A-Walrus
4d61bb6def Fill in cursor support
Also added underline
2024-08-26 08:42:18 -06:00
A-Walrus
59d32c32ce Initial cursor shapes 2024-08-26 08:42:18 -06:00
l-const
023aedee65 Zoom per tab/pane & not writing config to fs when zooming - perf improvement. 2024-08-20 12:15:09 -06:00
Mohammad AlSaleh
b4954196ed Only update default colors when needed, and update() when it's done
With commit 7c5d5440e5, it became
 possible that `update_colors()` may run without being immediately
 followed by an `update()`. But `update_colors()` creates a new
 `metadata_set`, which means `attr_list` may now contain out-of-date
 metadata indices to the old cleared `metadata_set`.

 With this commit:
 * A `metadata_set` is only cleared and recreated in `update_colors()`
   if default colors have actually changed.
 * A `bool` is returned and set it to `true` from `update_colors()` if
   a color update happened.
 * An `update()` is run if we get a `true` from `update_colors()`.
 * And finally, `update_colors()` is renamed to
   `update_default_colors()`.

 Fixes #291.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-08-16 19:17:31 -06:00
Mattias Eriksson
824737f4e6 Use cursor color from theme 2024-06-27 10:30:31 +02:00
Mattias Eriksson
a33bdd1277 Use requested terminal cursor color 2024-06-27 09:06:31 +02:00
Jeremy Soller
7c02b9cb57
Update dependencies 2024-06-12 09:50:07 -06:00
Jeremy Soller
d7869dcc44
Update dependencies 2024-05-01 12:16:49 -06:00
Daniel Eades
5f0a0ba726 remove unused 'self' (clippy::unused_self) 2024-04-26 10:12:44 -06:00
Daniel Eades
34cf7bf76a use 'let/else' syntax (clippy::manual_let_else) 2024-04-26 10:12:44 -06:00
Daniel Eades
011af310d2 collapse single match blocks (clippy::single_match, clippy::single_match_else) 2024-04-26 10:12:44 -06:00
Jeremy Soller
7c5d5440e5
terminal: always call update_colors on set_config 2024-04-19 14:09:32 -06:00
Mattias Eriksson
69c226928f Bump alacritty_terminal to 0.23 2024-04-05 14:57:06 -06:00
Jeremy Soller
09d4ca9f6a
Update libcosmic 2024-02-26 15:19:54 -07:00
Jeremy Soller
1b0d018e43
Do not select empty lines at end of grid, fixes #92 2024-02-22 12:01:50 -07:00
Jeremy Soller
235ebd6180
Split dark and light color schemes 2024-02-22 11:18:13 -07:00
Jeremy Soller
290b7b5993
Implement tab title override 2024-02-20 10:21:30 -07:00
Jeremy Soller
3a3e42110c
Add support for profiles (#131) 2024-02-09 15:45:46 -07:00
Jeremy Soller
46cae2f2d3
Ensure metadata is updated when theme changes, fixes #121 2024-02-08 12:37:02 -07:00
Jeremy Soller
bf7668dbd7
Use cosmic-text shape-run-cache 2024-02-08 12:03:53 -07:00
Jeremy Soller
68a0a21f3a Calculate damage (not used yet) 2024-02-05 21:01:16 -07:00
Mattias Eriksson
05ee3dca4a Clippy fixes 2024-02-05 09:09:23 -07:00
Jeremy Soller
d043f45b0f
Fix selection when using window background as terminal background 2024-01-31 15:05:21 -07:00
Jeremy Soller
c0d7fed185
Use window background for cosmic color schemes (#102) 2024-01-31 11:20:15 -07:00
Mattias Eriksson
e91bf807ec Improve SGR Scroll Wheel support 2024-01-31 09:33:18 -07:00
Mattias Eriksson
8d7d074933 Add support for Mouse Events 2024-01-31 06:34:55 -07:00
Jeremy Soller
a249d7d0e1
Set MSRV to 1.71 2024-01-29 09:47:06 -07:00
Mohammad AlSaleh
d6946d40bd Fix tab skip rendering
Replace '\t' with a space in text buffers, as tab skip/stop is handled
 by `alacritty_terminal`.

 Also, sending a tab to the shaper causes issues, as fonts either have
 no tab codepoint, or worse, some do, with the glyph produced being
 anyone's guess. Some may render a tab to some random character like
 '0'.

 Fixes #73.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-21 16:08:44 -07:00
Mattias Eriksson
71af9b7f9b Merge branch 'master_jammy' into split 2024-01-18 08:00:02 +01:00
Mohammad AlSaleh
f5cf7e0040 Set monospace width on text buffers
Make use of the addition to cosmic-text that allows matching
 the widths of fallback Monospace fonts to the default one.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-17 17:40:30 -07:00
Jeremy Soller
d656254282
Update cosmic-text 2024-01-17 13:41:17 -07:00
Mattias Eriksson
d3afe3f6bc Merge branch 'master_jammy' into split 2024-01-17 16:41:35 +01:00
Mattias Eriksson
1940f2c056 Support splitting of terminals using a Pane Grid 2024-01-17 16:09:56 +01:00
Mohammad AlSaleh
60b55a076d Support STRIKEOUT, UNDERCURL, and all underline styles
* Add `Metadata` struct to pass bg, underline_color, and flags info via
   metadata.
 * Keep and `IndexSet` of `Metadata` info in Terminal.
 * Use `Metadata` info to render STRIKEOUT, UNDERCURL, and all underline
   styles via `BgRect`.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-16 11:36:05 -07:00
Jeremy Soller
7f37ede453
Allow specifying startup command with -e, --command, or -- 2024-01-14 12:33:28 -07:00
Mohammad AlSaleh
e56e582f90 Add option for setting dim font weight
Allows users to set this to a value lower than default font weight.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-12 10:40:10 -07:00
Mohammad AlSaleh
f34116f3f7 Support DIM
* Add a color deriver and derive dim colors for all themes.
 * Derive actual bright colors for the OneHalfDark theme while at it.
 * Use dim colors when the DIM flag is set.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-12 10:40:10 -07:00
Jeremy Soller
679e7ee4f5
Fix searching for a single character 2024-01-11 16:20:15 -07:00
Jeremy Soller
ac4472e45e
Fix warnings 2024-01-11 14:32:11 -07:00
Jeremy Soller
9b2ab1202a
Implement search 2024-01-11 14:31:20 -07:00
Jeremy Soller
3f09e17156
Normalize scrollbar style with figma designs 2024-01-11 11:33:39 -07:00
Mohammad AlSaleh
0eea366410 Add LEFT‑TO‑RIGHT ISOLATE character to the beginning of lines
This zero-width char will force the shaper to treat detected RTL
 lines as LTR.

 RTL text would still be rendered correctly. But this fixes the wrong
 behavior of it being displayed aligned to the right.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-11 10:00:04 -07:00
Mohammad AlSaleh
b161db94d1 Add a disabled-by-default toggle for using bright colors for bold text
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-11 09:58:18 -07:00
Mohammad AlSaleh
fc6e2de78b Hide cursor if TermMode::SHOW_CURSOR is not set
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-11 09:58:18 -07:00
Mohammad AlSaleh
bb95e28899 Support HIDDEN cells
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-11 09:58:18 -07:00