Commit Graph

11668 Commits

Author SHA1 Message Date
Kovid Goyal
747411be00 Finish implementation of config file parsing
Still needs tests
2023-02-26 08:01:01 +05:30
Kovid Goyal
70086451e7 Port parsing of env instructions 2023-02-26 08:01:01 +05:30
Kovid Goyal
32aa580984 Store parsed multi option values on the config object 2023-02-26 08:01:01 +05:30
Kovid Goyal
1470b11024 Dont parse default values 2023-02-26 08:01:01 +05:30
Kovid Goyal
5822bb23f0 Work on porting config file parsing to Go 2023-02-26 08:01:01 +05:30
Kovid Goyal
6f63d9c5d4 Start work on porting the SSH kitten to Go 2023-02-26 08:01:01 +05:30
Kovid Goyal
3d3bfe6c75 ... 2023-02-26 08:00:50 +05:30
Kovid Goyal
d550aef792 Fix #6056 2023-02-25 08:49:49 +05:30
Kovid Goyal
0d0f74a131 Note that we use tabs for indent in *.go files in editorconfig 2023-02-25 08:33:51 +05:30
Kovid Goyal
ed64899b83 Merge branch 'indent_style_space' of https://github.com/ornicar/kitty 2023-02-25 08:24:40 +05:30
Thibault Duplessis
098530ad38 fix typo in .editorconfig
According to https://editorconfig.org/#file-format-details:

> indent_style: set to tab or space to use hard tabs or soft tabs respectively.

Apologies if this is known and the previous `spaces` syntax is preferred.
In that case of course just close the PR.

Thanks for kitty 🐱
2023-02-24 19:03:47 +01:00
Kovid Goyal
b0f552c332 Fix upload to github not aborting for uploads that fail with protocol errors rather than failure responses 2023-02-24 20:34:46 +05:30
Kovid Goyal
f7f4384876 Also log start of upload 2023-02-24 20:29:51 +05:30
Kovid Goyal
7dd20d4c79 Dont output empty brackets for release versions which dont have KITTY_VCS_REV 2023-02-24 20:11:09 +05:30
Kovid Goyal
7ab0c3013e Merge branch 'fix-macos' of https://github.com/page-down/kitty 2023-02-24 17:31:37 +05:30
pagedown
4f44945c07 macOS: Restore pre-edit text after inserting text from the service
Add comments to explain how to get the methods to be called.
2023-02-24 19:57:09 +08:00
pagedown
f8b53df5c2 macOS: Fix resize_in_steps being applied when double-clicking on the
title bar to maximize the window
2023-02-24 19:56:51 +08:00
Kovid Goyal
c5149dec24 ... 2023-02-23 22:19:45 +05:30
Kovid Goyal
e41897f93f Also clean *_generated.bin files 2023-02-23 21:24:59 +05:30
Kovid Goyal
5ce85292b7 Cleanup previous PR
1) Fix a text_len leaking
2) No need to re-decode overlay_text
3) get_ime_cursor_position should not change the current global callback OS window
2023-02-23 21:19:30 +05:30
Kovid Goyal
dba8d278cb Merge branch 'ime' of https://github.com/page-down/kitty 2023-02-23 20:50:25 +05:30
Kovid Goyal
79e99f7e3a Dont pass PWD to go build
Fixes #6051
2023-02-23 14:31:30 +05:30
pagedown
9a598237c6 macOS: Allow IME to actively get the cursor position in real time
IME will automatically get the display position when needed, which keeps
it consistent with the overlay as much as possible.

Fix the issue that when IME is activated after mouse click, it is
displayed at the wrong position.
2023-02-22 22:36:20 +08:00
pagedown
126aaddccb IME: Render overlay at the last visible cursor position with a separate cursor
Fix the problem caused by wrong cursor coordinates. No more messing with
the main cursor, instead the cursor is saved when receiving a pre-edit
text update and used for drawing later.

Update the overlay to the last visible cursor position before rendering
to ensure it always moves with the cursor. Finally, draw the overlay
after line rendering is complete, and restore the line buffer after
updating the rendered data to ensure that the line text being read is
correct at all times.

This also improves performance by only rendering once when changes are
made, eliminating the need to repeatedly disable and draw after various
commands and not even comprehensively.
2023-02-22 22:36:06 +08:00
Kovid Goyal
de188faf55 Fix #6048 2023-02-22 19:51:33 +05:30
Kovid Goyal
1f84e2d4e5 Merge branch 'pr-fix-screen-switching' of https://github.com/sergei-grechanik/kitty 2023-02-21 10:20:32 +05:30
Sergei Grechanik
6edf145b73 Fix image distortion when switching between screens 2023-02-20 19:46:25 -08:00
Kovid Goyal
fbfb779a19 Clarify what pygments style does 2023-02-20 16:38:22 +05:30
Kovid Goyal
71b07090c2 End APC and PM escape code on BEL as well as ST 2023-02-19 15:24:23 +05:30
Kovid Goyal
6619804df0 ... 2023-02-18 17:23:50 +05:30
Kovid Goyal
24b2802619 Merge branch 'fix-os-window-state' of https://github.com/page-down/kitty 2023-02-18 17:22:43 +05:30
pagedown
b0c28148b1 macOS: Fix window not taking up full height when the title bar is hidden
When the remembered window size is the full screen height, the window
height decreases after hiding the title bar.
2023-02-18 19:35:01 +08:00
pagedown
75a4f45a23 ... 2023-02-18 17:43:45 +08:00
pagedown
ba83ce7b10 macOS: Display the newly created OS window in specified state
Fix the maximized window can't occupy full screen space when window
decoration or title bar is hidden.
Fix resize_in_steps being applied even when window is maximized.
Allows to specify `os_window_state` in startup session file.
2023-02-18 14:02:19 +08:00
Kovid Goyal
1b76cee9b4 Merge branch 'dependabot/go_modules/golang.org/x/image-0.5.0' of https://github.com/kovidgoyal/kitty 2023-02-17 20:18:02 +05:30
dependabot[bot]
aad3704803 Bump golang.org/x/image from 0.3.0 to 0.5.0
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.3.0 to 0.5.0.
- [Release notes](https://github.com/golang/image/releases)
- [Commits](https://github.com/golang/image/compare/v0.3.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 14:44:32 +00:00
Kovid Goyal
00e2c66ea3 Add a link to the pets nvim plugin 2023-02-17 10:41:03 +05:30
Kovid Goyal
72b2ba51df launch: Allow specifying the state (fullscreen/maximized/minimized) for newly created OS Windows
Fixes #6026
2023-02-16 16:24:46 +05:30
Kovid Goyal
c73c165be1 Cleanup change_os_window_state 2023-02-16 16:10:19 +05:30
Kovid Goyal
e6e25c4ece Merge branch 'patch-1' of https://github.com/jle64/kitty 2023-02-15 22:01:17 +05:30
Jonathan Lestrelin
9ce11499de Add x-scheme-handler/ssh to mimetypes
Add x-scheme-handler/ssh to mimetypes so that kitty open can be used to open ssh links by default.
2023-02-15 16:24:47 +00:00
Kovid Goyal
ac5298ce76 Finish porting unicode input 2023-02-15 17:42:31 +05:30
Kovid Goyal
1321a96ae7 More work on porting unicode input 2023-02-15 17:14:09 +05:30
Kovid Goyal
2b87a601a0 More work on porting unicode input 2023-02-15 10:48:54 +05:30
Kovid Goyal
73a3366d53 Fix atomic write not working when file does not exist 2023-02-15 10:46:47 +05:30
Kovid Goyal
7223fdaa38 API to set the text at the prompt 2023-02-15 10:16:25 +05:30
Kovid Goyal
67436a48cd New API to suspend a loop 2023-02-14 22:27:41 +05:30
Kovid Goyal
9aaca33f15 ... 2023-02-14 22:27:10 +05:30
Kovid Goyal
a5eac42d92 More work on unicode input 2023-02-14 21:33:21 +05:30
Kovid Goyal
fb66cbc792 Forgot to exclude some control chars from unicode name based searching 2023-02-14 21:33:21 +05:30