1994 Commits

Author SHA1 Message Date
Thorsten Ball
920b90ba1a config: change default keybind for goto-split on non-Darwin
Feel free to ignore or close this, because this is personal and if I
could figure out the syntax, I'm sure I could overwrite the keybindings
in the config myself.

But here's my case: `Ctrl+[` sends escape and I use that instead of
`Esc` because it's easier to reach (capslock is remapped to `ctrl`, so
`ctrl+[` is homerow only).

Kitty uses it's own "kittymod" combo for a lot of keybindings and for
the equivalent of these two, it uses `Ctrl+shift`. That's already taken
by other keybindings, so I added `.super` here.

Again: feel free to ignore. Personal preference. If you close this PR,
I'll have to tweak my config on Linux.
2023-07-23 14:02:39 +02:00
Mitchell Hashimoto
587a5159a1 Merge pull request #212 from mitchellh/sgr
CSI for SGR only if there are no intermediates
2023-07-20 19:31:31 -07:00
Mitchell Hashimoto
e45c8d97d7 CSI for SGR only if there are no intermediates
Fixes #210

We were previously taking any `CSI <symbol> <data> m` as SGR. But SGR is
only if "symbol" is empty. There are other forms of `CSI m` that set the
intermediate symbol to `?` or `>` and we don't implement those. We
shouldn't treat that as a SGR attribute either.
2023-07-20 19:23:01 -07:00
Mitchell Hashimoto
595c855d76 Merge pull request #211 from mitchellh/update-zig
Update Zig
2023-07-20 19:02:17 -07:00
Mitchell Hashimoto
7ba68ce361 update libxev 2023-07-20 18:50:46 -07:00
Mitchell Hashimoto
57cd4ec4ca update zig 2023-07-20 18:49:29 -07:00
Mitchell Hashimoto
6faa7c195b Revert "update zig"
This reverts commit 11939915cd7345b353306ed14449bbb0be0c42e3.
2023-07-20 17:57:30 -07:00
Mitchell Hashimoto
11939915cd update zig 2023-07-20 17:50:23 -07:00
Mitchell Hashimoto
b49dd6e3b7 Merge pull request #208 from mitchellh/mrn/locale-lang
locale: set LANG to fallback locale
2023-07-18 22:08:15 -07:00
Thorsten Ball
5472d03832 locale: remove default value for local dev env
I commented this out to test something locally and it compiles & runs
fine on macOS with Xcode. Looks like it's not needed anymore.
2023-07-19 06:46:01 +02:00
Thorsten Ball
4b48d42a07 locale: set LANG to the fallback value if we have invalid locale
See #201 for more information.

Problem is that while we fall back to a default value to pass to
`setlocale`, we don't set a `LANG` and instead reset it to `""`.

What this does here is it changes the resetting to `""` and instead sets
it to the default value.
2023-07-19 06:44:35 +02:00
Mitchell Hashimoto
c9b0c42341 Merge pull request #207 from mitchellh/split-at-cursor
font/shaper: text runs should split around block cursors
2023-07-18 16:44:07 -07:00
Mitchell Hashimoto
4137c6cf69 font/shaper: do not break on merged emoji if cursor is directly on it 2023-07-18 16:38:02 -07:00
Mitchell Hashimoto
4b062dc45c font/shaper: text runs should split around block cursors
Fixes #206
2023-07-18 16:20:30 -07:00
Mitchell Hashimoto
1aec2f2ca5 update zig version 2023-07-18 10:59:09 -07:00
Mitchell Hashimoto
6ae3c4b20e Merge pull request #205 from mitchellh/locale2
reset LANG env var if we set it and it is invalid
2023-07-18 10:55:06 -07:00
Mitchell Hashimoto
f8ce52a9e1 Merge pull request #204 from mitchellh/mrn/blurry-fonts
Fix blurry fonts by flooring padding of surface
2023-07-18 10:54:54 -07:00
Mitchell Hashimoto
4176c6bdbf reset LANG env var if we set it and it is invalid
This was breaking downstream programs, see #201
2023-07-18 10:49:43 -07:00
Mitchell Hashimoto
3d48432daf renderer: change padding to integers
Screen size is always an integer, it makes sense for padding to also be
rounded to some integer.
2023-07-18 10:44:33 -07:00
Thorsten Ball
ead997b5ec Fix blurry fonts by flooring padding of surface
This fixes #99 for me.

Without this fix I end up with paddings of `3.333333` because my DPI is
`125.0` on Linux. If I set it to `144.0` manually so that the `/ 72`
gives me a clean `2.0`, the blurry fonts are gone.

I do think the calculation here is correct (even though I'm not sure
whether we should use 72? Why not 96? Or another system value?), so
let's use `std.math.floor` to get us to a "clean" padding of `3.0`.

That also solves blurry fonts for me.
2023-07-18 07:02:33 +02:00
Mitchell Hashimoto
5d77144e1b Merge pull request #203 from mrnugget/mrn/gtk-default-size
gtk: change default window size to 1000x600
2023-07-16 21:58:39 -07:00
Thorsten Ball
de5780a771 gtk: change default window size to 1000x600
The previous 200x200 looks ... weird :) But it was also quite unhandy
because I constantly have to resize new builds when I want to check
something.
2023-07-17 06:54:47 +02:00
Mitchell Hashimoto
24ec9f7e2a Merge pull request #202 from mitchellh/locale
validate locale prior to setting, fallback to en_US.UTF-8
2023-07-11 12:04:35 -07:00
Mitchell Hashimoto
0849aa8f20 validate locale prior to setting, fallback to en_US.UTF-8
Fixes #201

I don't fully understand locales, but it appears that the locale
returned from NSLocale can be "valid" in general but invalid according
to libc's locale API. If you attempt to `setlocale` with this bad
locale, it defaults everything to "C", which ends up breaking a lot of
things.

This commit validates the locale, and if it is invalid, we default to
"en_US.UTF-8" so things tend to work. This behavior can be overridden
using standard environment variables (LANG, LC_ALL, etc.).

This also doesn't touch env vars so further subprocesses from the shell
see original locale env vars.
2023-07-11 11:50:12 -07:00
Mitchell Hashimoto
bf25bf0a6a move a bunch of files to src/os 2023-07-10 16:48:22 -07:00
Mitchell Hashimoto
9300404603 font: block cursor was not taking full cell width 2023-07-10 11:45:35 -07:00
Mitchell Hashimoto
ea268bae5e renderer: do not blink explicit steady cursor styles 2023-07-10 11:27:37 -07:00
Mitchell Hashimoto
1028d517e4 do not write scrollback file for alternate screens 2023-07-09 13:03:29 -07:00
Mitchell Hashimoto
187fc40c31 Merge pull request #200 from mitchellh/screen-string
Write scrollback to file, output to tty ("write_scrollback_file" binding)
2023-07-09 12:41:10 -07:00
Mitchell Hashimoto
5faafbbfa5 write_scrollback_file binding 2023-07-09 12:28:48 -07:00
Mitchell Hashimoto
9a0d131b5b move TempDir to src/os and use the real tmpDir 2023-07-09 12:14:05 -07:00
Mitchell Hashimoto
26e17de777 add os.tmpDir to get the recommended temp dir base path 2023-07-09 11:58:04 -07:00
Mitchell Hashimoto
791e1a84af terminal: don't export plainString, its only for testing 2023-07-09 11:56:19 -07:00
Mitchell Hashimoto
a890cc3a5b terminal: add screen.dumpString 2023-07-09 11:52:37 -07:00
Mitchell Hashimoto
88c41bcf69 Merge pull request #199 from mitchellh/update-deps
Update C Deps
2023-07-09 11:06:33 -07:00
Mitchell Hashimoto
23c5ba9810 vendor: update utf8proc 2023-07-09 10:46:07 -07:00
Mitchell Hashimoto
bdbef94b70 vendor: update libpng 2023-07-09 10:45:18 -07:00
Mitchell Hashimoto
6ec6ae7cb2 vendor: update pixman 2023-07-09 10:43:52 -07:00
Mitchell Hashimoto
c853df7527 vendor: update harfbuzz 2023-07-09 10:42:54 -07:00
Mitchell Hashimoto
678072e9b5 update freetype to 2.13.1 2023-07-09 10:42:07 -07:00
Mitchell Hashimoto
020772f777 update zig 2023-07-09 10:38:41 -07:00
Mitchell Hashimoto
dfd0bbc7f1 Merge pull request #198 from mitchellh/scroll-viewport
Do not move viewport if scrolling when the viewport is already not at the bottom
2023-07-08 14:07:52 -07:00
Mitchell Hashimoto
de66d4925a terminal: rename scroll "delta/delta_no_grow" to screen/viewport 2023-07-08 13:47:16 -07:00
Mitchell Hashimoto
1a94f6ba7d terminal: do not scroll viewport if new lines are added while scrolled 2023-07-08 13:42:00 -07:00
Mitchell Hashimoto
13315471d7 renderer: double line widths for sprite fonts when font-thicken is true
Fixes #193
2023-07-07 09:08:46 -07:00
Mitchell Hashimoto
3f079e89b9 Merge pull request #191 from mitchellh/shell-integration
Automatic Shell Integration Script Injection
2023-07-06 18:29:15 -07:00
Mitchell Hashimoto
7e42d163ad update README 2023-07-06 18:27:21 -07:00
Mitchell Hashimoto
247638c2da config: support enum cloning 2023-07-06 18:13:26 -07:00
Mitchell Hashimoto
02d0619f87 change "auto" to "detect" for shell integration 2023-07-06 18:05:01 -07:00
Mitchell Hashimoto
8239f09d9d allow configuring shell integration injection 2023-07-06 18:04:12 -07:00