Kovid Goyal
3d8a2fbb4f
Use SIMD base64 everywhere
2026-04-21 11:56:55 +05:30
Kovid Goyal
3fe884a29a
DRYer
2026-04-10 15:32:27 +05:30
Kovid Goyal
5e158f90a7
Fix some responses from terminal sometimes leaking into shell on after kitten exit
...
Always do a roundtrip at kitten exit, except for special purpose
kittens. This slows down exit by one round trip time (capped at 2
seconds), however it ensures that we never get terminal response leak.
Fixes #9839
2026-04-10 15:14:38 +05:30
Kovid Goyal
eddaaed3e3
Modernize Go code
2026-03-21 08:41:47 +05:30
Kovid Goyal
6f588a0c29
run modernize
2025-11-11 17:09:37 +05:30
Kovid Goyal
9e7c46b253
clipboard kitten: Allow using a password to avoid repeated confirmation prompts when accessing the clipboard
...
Fixes #8789
2025-07-13 14:12:31 +05:30
Kovid Goyal
ce59ef8c6e
Export function to encode clipboard protocol chunk
2025-05-16 12:23:14 +05:30
Kovid Goyal
59c32d19cc
Simplify code
2025-05-16 12:17:00 +05:30
Kovid Goyal
c861259e3b
Rename go module from kitty -> github.com/kovidgoyal/kitty
...
Makes the code more easily re-useable in other projects
2025-05-16 08:43:39 +05:30
Kovid Goyal
e42d410ee4
Move cli spec parsing code into simple module
2025-04-28 09:20:10 +05:30
Kovid Goyal
2436c5acfe
clipboard kitten: Fix a bug causing kitten to hang in filter mode when input data size is not divisible by 3 and larger than 8KB
...
Fixes #8059
2024-11-19 11:24:59 +05:30
Kovid Goyal
7537fa00e4
Cleanup some code
2024-09-15 08:03:16 +05:30
Kovid Goyal
807e14684f
Fix #7762
2024-08-21 12:01:12 +05:30
Kovid Goyal
405f5ce148
Use stdlib maps/slices
2024-06-24 07:54:13 +05:30
Kovid Goyal
f17a5934e2
Fix #7504
2024-06-04 11:02:47 +05:30
Kovid Goyal
77292a16d6
Make shebangs consistent
...
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.
Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
0a2f164062
Change kitty +kitten -> kitten in docs
...
All kittens except for the broadcast and panel kittens have now been
ported to Go and so can be run with just kitten rather than kitty
+kitten. So update the docs to use this canonical form for launching
kittens
2023-09-21 12:25:02 +05:30
Kovid Goyal
0e87e0c7de
Work on refactoring send kitten to fix various issues
2023-08-08 06:28:43 +05:30
Kovid Goyal
341d845b9a
Port calls to slices.Sort functions since they now need a cmp() function rather than a less() function
...
Also rename os.SEEK_* to io.Seek* as the former has been deprecated
2023-08-04 22:50:13 +05:30
Kovid Goyal
20fbde447c
clipboard kitten: Dont set clipboard when getting clipboard
...
The previous behavior meant getting the clipboard would
first empty it if STDIN was null or empty which can easily happen when
run non-interactively.
Fixes #6302
2023-05-25 08:41:55 +05:30
Kovid Goyal
73f10aaf43
clipboard kitten: Fix a bug causing the last MIME type available on the clipboard not being recognized when pasting with arbitrary MIME types
2023-04-30 06:48:09 +05:30
Kovid Goyal
ff55121094
Move the kittens Go code into the kittens folder
2023-03-27 13:06:02 +05:30
Kovid Goyal
1f00c27097
Also create an automatic text/plain alias when reading from clipboard
2023-01-22 22:04:53 +05:30
Kovid Goyal
6b8e5ea225
Rename kitty-tool to kitten
...
It's easier to type, and cuter.
Also, most, if not all of the TUI parts of
kitty's kittens will eventually be re-written into kitten.
The only downside I can see is that we cant tab complete kitty
anymore, but hopefully there will be less reason to run kitty
from the shell as command line tools migrate to kitten.
Meowrrrr!!!
2023-01-14 15:44:52 +05:30
Kovid Goyal
035c3de4bb
Add completion for file args to clipboard kitten
2023-01-04 10:39:24 +05:30
Kovid Goyal
a3ba8647ba
Document the new OSC 5522 protocol
2022-12-06 12:18:55 +05:30
Kovid Goyal
fe53555dba
Document the additions to the clipboard kitten
2022-12-04 11:37:02 +05:30
Kovid Goyal
b644a42a48
Allow using wildcard mime types when copying from clipboard
2022-12-03 14:06:16 +05:30
Kovid Goyal
6422b323c6
Implement MIME aliases for clipboard
2022-12-03 12:20:03 +05:30
Kovid Goyal
f29ce19097
Reading arbitrary MIME from clipboard now works
2022-12-01 13:35:44 +05:30
Kovid Goyal
375fa73826
Delegate kitty +kitten clipboard to kitty-tool
2022-11-26 20:09:43 +05:30
Kovid Goyal
4d3f3b5e91
Start moving clipboard kitten to kitty-tool
2022-11-25 12:58:10 +05:30
Kovid Goyal
97716fea8b
More work on merging completions with parse tree
2022-11-14 15:42:02 +05:30
Kovid Goyal
3463931dad
Rewrite clipboard kitten to only change termios settings while it is actually reading from terminal
2022-08-02 17:14:27 +05:30
Kovid Goyal
aaffec1cbc
Better error message
2022-05-13 19:25:37 +05:30
pagedown
bb78dc5ccb
Docs: Fix the help text of query_terminal and other minor tweaks
...
Use --match-tab in broadcast kitten example.
2022-04-29 01:30:45 +08:00
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
5d516a8584
...
2021-09-13 13:26:30 +05:30
Kovid Goyal
b1322fbe04
Prompt for permission when reading from clipboard by default
...
Fixes #4022
2021-09-13 12:32:40 +05:30
Kovid Goyal
ff191c9404
clipboard kitten: fix copies to clipboard not working without the --wait-for-completion option
2021-07-24 07:55:50 +05:30
Kovid Goyal
149ae2866a
more typing work
2020-03-12 08:10:51 +05:30
Kovid Goyal
f05890719d
Add type checking for the various CLI options objects
2020-03-05 15:47:12 +05:30
Kovid Goyal
5730ce5f53
More typing work
2020-03-03 20:18:24 +05:30
Kovid Goyal
8ebad06e7e
clipboard kitten: Add a --wait-for-completion option to have the kitten wait till copying to clipboard is complete
...
Fixes #1693
2019-06-07 07:13:15 +05:30
Luflosi
a792c94ccf
Use python3 shebang for all python scripts
...
Fixes #1624 .
Use python3 shebang for all python scripts as python still defaults to python2 on many systems.
2019-05-20 14:44:24 +02:00
Kovid Goyal
d964146f8c
Use ctermid() instead of hardcoding /dev/tty
2018-08-04 20:58:01 +05:30
Kovid Goyal
d2ea71a403
Remove unused code
2018-07-15 16:14:40 +05:30
Kovid Goyal
83849ab07a
Document the clipboard kitten
2018-06-09 13:32:32 +05:30
Kovid Goyal
2a5ef628fa
DRYer
2018-05-23 13:25:46 +05:30
Kovid Goyal
3fd2f03f11
Print failure message to standard error
2018-05-21 23:26:57 +05:30