Commit Graph

12983 Commits

Author SHA1 Message Date
Kovid Goyal
e9e889457d macOS: Fix some combining characters not being rendered
Use Harfbuzz for positioning instead of Core Text as Core Text doesn't
position combining chars correctly anymore. This may mean we need to
redo the cell metrics calculation as well, we will see. Core Text is
still used for rendering but at positions specified by Harfbuzz.

Fixes #6898
2023-12-10 20:30:24 +05:30
Kovid Goyal
d41138c4c6 Make units_per_em available in do_render 2023-12-10 15:29:03 +05:30
Kovid Goyal
69a5c7e3b2 Wayland: Fix a regression in the previous release that broke copying to clipboard under wl-roots based compositors in some circumstances
As is usual in Wayland land, utter chaos. Divergent implementations,
incorrect interpretations of the spec, bla bla.

Fixes #6890
2023-12-08 08:38:08 +05:30
Kovid Goyal
92befa26db Fix #6889 2023-12-07 09:30:04 +05:30
Kovid Goyal
22ac57c374 Another terminal emulator adds support for the kitty keyboard protocol 2023-12-06 16:32:27 +05:30
Kovid Goyal
392a301cd8 Note how to to use hints to open hyperlinks 2023-12-05 07:50:35 +05:30
Kovid Goyal
a1f2a7df4d Port new shlex code to Go 2023-12-04 14:14:11 +05:30
Kovid Goyal
04eafbea9b Implement better syntax highlighting for the new map 2023-12-04 11:54:49 +05:30
Kovid Goyal
cf6c00cebe Merge branch 'dependabot/go_modules/all-go-deps-e63ccaec5d' of https://github.com/kovidgoyal/kitty 2023-12-04 08:59:17 +05:30
dependabot[bot]
08da87a622 Bump the all-go-deps group with 2 updates
Bumps the all-go-deps group with 2 updates: [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) and [howett.net/plist](https://github.com/DHowett/go-plist).


Updates `github.com/shirou/gopsutil/v3` from 3.23.10 to 3.23.11
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.10...v3.23.11)

Updates `howett.net/plist` from 1.0.0 to 1.0.1
- [Commits](https://github.com/DHowett/go-plist/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-go-deps
- dependency-name: howett.net/plist
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 03:25:11 +00:00
Kovid Goyal
59e3b202b9 Update changelog 2023-12-03 21:11:52 +05:30
Kovid Goyal
a7bdbb11f2 Document the new modal keymaps 2023-12-03 21:09:26 +05:30
Kovid Goyal
b9fabc62a5 ... 2023-12-03 21:07:01 +05:30
Kovid Goyal
d483c3eb33 Fix literal field parsing 2023-12-03 20:55:47 +05:30
Kovid Goyal
d191896528 Allow more options for what to do in a custom keyboard mode on unknown and action events 2023-12-03 20:07:29 +05:30
Kovid Goyal
ca6c607148 pop_keyboard_mode should return True when nothing is done 2023-12-03 19:12:58 +05:30
Kovid Goyal
cc5424c054 ... 2023-12-03 19:02:46 +05:30
Kovid Goyal
77551cdfc1 Weird macOS docs build failure 2023-12-03 15:06:12 +05:30
Kovid Goyal
c6eab841f9 Send repeat events instead of repeated presses 2023-12-03 13:29:13 +05:30
Kovid Goyal
99995fd9dc Remote control API for send-key 2023-12-03 13:23:01 +05:30
Kovid Goyal
74388b4183 A simple action to remap key presses sent to programs running in kitty 2023-12-03 13:08:53 +05:30
Kovid Goyal
f1fc2126bc Refactor the mapping docs 2023-12-03 12:25:15 +05:30
Kovid Goyal
9a0e84293f ... 2023-12-02 16:35:30 +05:30
Kovid Goyal
847ef008e2 Allow spaces in --when-focus-on 2023-12-02 16:23:43 +05:30
Kovid Goyal
3c4f2aa1b8 shlex.split -> shlex_split 2023-12-02 15:17:08 +05:30
Kovid Goyal
6c8f499303 Merge branch 'cursor_non_gnome' of https://github.com/jinliu/kitty 2023-12-02 15:00:50 +05:30
Kovid Goyal
b0ba4b4a42 Fast and robust implementation of shlex.split
Also returns position of words in src string which we will need for
keymap parsing.
2023-12-02 14:57:02 +05:30
Jin Liu
293cd40509 Get cursor theme from desktop portal in non-GNOME desktops
Even if current DE is not GNOME, it may still use the GNOME
desktop portal as a fallback for Settings (e.g. KDE). So if
the user installed xdg-desktop-portal-gtk, and KDE synced
its cursor theme with GNOME, then we can still get it from
the GNOME namespace in the Settings.ReadAll result from the
portal.
2023-12-02 15:00:03 +08:00
Kovid Goyal
0d10ee1a8c DRYer 2023-12-02 08:07:25 +05:30
Kovid Goyal
d63b852b90 Un-matched modifier keys should not pop keyboard mode 2023-12-01 19:34:20 +05:30
Kovid Goyal
9560968a7d Sequences should not participate in global shortcuts 2023-12-01 19:31:14 +05:30
Kovid Goyal
53980d00f0 a couple more tests 2023-12-01 18:16:22 +05:30
Kovid Goyal
5bc2cde454 Add --debug-input output for sequence prefix matches 2023-12-01 17:19:08 +05:30
Kovid Goyal
d4ff54e0d8 Dont use branch-protection=standard on linux ARM as it reportedly causes crashes
See https://github.com/kovidgoyal/kitty/issues/6845#issuecomment-1835886938
2023-12-01 16:48:30 +05:30
Kovid Goyal
f2075f99fd More comprehensive is_arm check
Apparently on some Linux machines platform.machine() is 'aarch64' not
'arm64'.
2023-12-01 16:36:34 +05:30
Kovid Goyal
f46425c2f9 Fix #6876 2023-12-01 16:28:48 +05:30
Kovid Goyal
ad4e9bb42c Add a check that the output buffer is actually sRGB 2023-12-01 13:58:09 +05:30
Kovid Goyal
97f5cad335 Request an SRGB output buffer from the window system explicitly
Possible fix for #6845
2023-12-01 13:50:11 +05:30
Kovid Goyal
788295e534 Turn on control flow protection build options 2023-12-01 07:36:02 +05:30
Kovid Goyal
336035f507 Merge branch 'feature/fix-build-problems-nix' of https://github.com/gabyx/kitty 2023-12-01 07:06:13 +05:30
Gabriel Nützi
1883208cf6 fix: Correct Nix shell for building correctly 2023-11-30 22:09:15 +01:00
Kovid Goyal
8d1fde18f8 Fix sequence mapping 2023-11-30 21:17:02 +05:30
Kovid Goyal
d7633b95d0 Get debug config printing the changes in all keyboard modes 2023-11-30 20:47:30 +05:30
Kovid Goyal
165f1ccfd1 Port the test 2023-11-30 20:06:20 +05:30
Kovid Goyal
063a663958 Beep when multi-key sequence is aborted by mismatch 2023-11-30 20:02:25 +05:30
Kovid Goyal
66bc86e4f2 Report invalid --when-focus-on expressions to user 2023-11-30 20:00:49 +05:30
Kovid Goyal
15eb03c5e2 Add no-op to paste_actions 2023-11-30 19:54:01 +05:30
Kovid Goyal
c064a2e559 Port visual_window_select to use a keyboard mode 2023-11-30 19:50:57 +05:30
Kovid Goyal
9e815212dc Implement modal keyboard handling 2023-11-30 19:44:41 +05:30
Kovid Goyal
cb418a0040 Infrastructure for more map options 2023-11-30 13:36:29 +05:30