Commit Graph

15243 Commits

Author SHA1 Message Date
Kovid Goyal
0c7dd7edb2 Implement horizontal alignment for font based rendering
Still need to do it for box chars
2025-02-19 09:04:22 +05:30
Kovid Goyal
15f711d6b5 Start work on horizontal align for multicells 2025-02-19 07:50:40 +05:30
Kovid Goyal
714910382b Remove redundant code 2025-02-19 06:02:31 +05:30
Kovid Goyal
bedc2ea1b9 Reduce num of bits used for x/y multicell 2025-02-19 05:53:07 +05:30
Kovid Goyal
e60b95d219 Fix leading space in a cell text causing the cell to not be rendered 2025-02-19 05:41:16 +05:30
Kovid Goyal
c4ef0a0eef Add another test 2025-02-19 05:26:03 +05:30
Kovid Goyal
758817c3c8 Only modify prompt_kind in resize.c 2025-02-19 05:08:27 +05:30
Kovid Goyal
a57cb3c1d1 Merge branch 'fix-prompt-scroll-and-cmd-paging' of https://github.com/rivenirvana/kitty 2025-02-19 04:26:12 +05:30
Arvin Verain
a5cafdd8e9 test: Add more tests for scroll_to_prompt, fco, and lvco 2025-02-19 00:30:04 +08:00
Arvin Verain
ccffbd23ce fix: First on screen paging fix when prompt is obscured in scrollback 2025-02-19 00:30:03 +08:00
Arvin Verain
e23d6877c0 fix: Page cmd outputs properly regardless of amount of prompt lines
Also skip fetching lines of wrapped prompts
2025-02-19 00:30:03 +08:00
Kovid Goyal
bbe7e63970 Merge branch 'patch-1' of https://github.com/JakeWharton/kitty 2025-02-18 21:52:08 +05:30
Jake Wharton
7d954b9395 Add missing period between sentences to keyboard docs 2025-02-18 11:07:13 -05:00
Kovid Goyal
375583259a Fix --hold always restoring cursor to block shape instead of respecting the value of cursor_shape 2025-02-18 20:21:07 +05:30
Kovid Goyal
359d9e12e8 Fix @selection not being expanded when calling handle_result in a kitten 2025-02-18 20:11:00 +05:30
Kovid Goyal
ba24ce52df ... 2025-02-18 19:46:45 +05:30
Kovid Goyal
8f44e16b89 Fix scroll_to_prompt after resize that causes prompt line wrapping not accurate
See #8334
2025-02-18 19:40:23 +05:30
Kovid Goyal
f29bc638ce Remote control: allow scrolling to prev/next prompt 2025-02-18 19:17:10 +05:30
Kovid Goyal
eb5a9bc6a3 ... 2025-02-18 19:02:32 +05:30
Kovid Goyal
6f57537f30 Fix failing test 2025-02-18 18:44:57 +05:30
Kovid Goyal
45d931f61c Dont abort for too small scaled font sizes 2025-02-18 17:06:12 +05:30
Kovid Goyal
c520b0b1b9 Add test for PR #8322 2025-02-18 10:08:41 +05:30
Kovid Goyal
4956009759 Merge branch 'patch-1' of https://github.com/JakeWharton/kitty 2025-02-18 10:04:37 +05:30
Jake Wharton
5d90c842ea Use semicolon to respond to OSC 22 2025-02-17 23:24:11 -05:00
Kovid Goyal
9231d0d12f Add snacks.nvim to integrations 2025-02-18 09:32:58 +05:30
Kovid Goyal
66c72ee2b9 Merge branch 'pr-st-to-the-list' of https://github.com/sergei-grechanik/kitty 2025-02-18 08:12:54 +05:30
Sergei Grechanik
0d969bb441 Add st to the list of terminals implementing graphics protocol
It's implemented as a patch, the link points to the patch landing page.
2025-02-17 16:08:35 -08:00
Kovid Goyal
2caa3fc069 ... 2025-02-17 20:18:14 +05:30
Kovid Goyal
a7f76ee8f7 Fix #8339 2025-02-17 19:56:39 +05:30
Kovid Goyal
7641bab690 Merge branch 'dependabot/go_modules/all-go-deps-f6d50a5357' of https://github.com/kovidgoyal/kitty 2025-02-17 08:43:36 +05:30
dependabot[bot]
10efaec6bd Bump github.com/dlclark/regexp2 in the all-go-deps group
Bumps the all-go-deps group with 1 update: [github.com/dlclark/regexp2](https://github.com/dlclark/regexp2).


Updates `github.com/dlclark/regexp2` from 1.11.4 to 1.11.5
- [Commits](https://github.com/dlclark/regexp2/compare/v1.11.4...v1.11.5)

---
updated-dependencies:
- dependency-name: github.com/dlclark/regexp2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-17 03:08:56 +00:00
Kovid Goyal
834444b918 ... 2025-02-16 11:05:28 +05:30
Kovid Goyal
d02b0d5c06 Allocate shape_buffer on the heap so it works with arbitrary input length 2025-02-16 11:03:47 +05:30
Kovid Goyal
4005fb5bfb Micro optimize by using hb_buffer_add_codepoints
This skips harfbuzz buffer validation which we dont need since out
codepoints are already valid. HarfBuzz docs claim it does "deep-sanity
checking" no idea what that is, but I dont think its actually
necessary, we will see if it causes any actual text rendering
regressions.
2025-02-16 10:44:13 +05:30
Kovid Goyal
f218be564b Remove unused function parameter 2025-02-16 10:36:34 +05:30
Kovid Goyal
61ef28e975 Cleanup loop exit condition 2025-02-16 10:21:40 +05:30
Kovid Goyal
25cceb2c5c Same for cell_as_utf8_for_fallback 2025-02-16 10:08:30 +05:30
Kovid Goyal
96d231dfa5 Use buffer size in cell_as_unicode_for_fallback as well 2025-02-16 10:02:39 +05:30
Kovid Goyal
b4b2b44c92 Multicell selections: Clamp to line
When the end point of the selection is within a multicell character of
the same size and vertical position as the start point, clamp the
selection line to the start line to avoid un-intuitive multiline
selections.

Fixes #8310
2025-02-15 13:11:46 +05:30
Kovid Goyal
dc5c9b5bf4 Another test 2025-02-15 11:38:49 +05:30
Kovid Goyal
f7c136b408 Only output prompt type markers if we are outputting first cell in line 2025-02-15 11:15:59 +05:30
Kovid Goyal
0e820f5d9c ANSI output: Preserve use of natural_width
Keeps semantics of the text the same when roundtripping rather than
visual appearance.
2025-02-15 11:03:20 +05:30
Kovid Goyal
888b8a3bfb Use same algorithm for multicell selection expansion and text extraction 2025-02-15 10:43:32 +05:30
Kovid Goyal
0eb4959a56 Clarify that the size limit refers to size of data before base64 encoding 2025-02-15 10:17:59 +05:30
Kovid Goyal
fc8e678eb5 Change clipboard spec to specify 4096 as the max chunk size in both directions
Makes it consistent and easy to remember. And there is no real reason to
specify it as a hard maximum in only one direction. Fixes #8331
2025-02-15 10:12:28 +05:30
Kovid Goyal
f5a7d91603 Simplify condition 2025-02-14 21:17:18 +05:30
Kovid Goyal
61edc2aef7 Dont treat multicells containing narrow emoji as having emoji presentation
Fixes #8330
2025-02-14 20:37:31 +05:30
Kovid Goyal
5f91fb3792 Update FAQ 2025-02-13 21:33:42 +05:30
Kovid Goyal
aa146e08b7 Update the changelog 2025-02-13 09:11:11 +05:30
Kovid Goyal
3169183403 ... 2025-02-13 07:46:31 +05:30