Kovid Goyal
7acc6bdeb8
Move splitlines_like_git to a more appropriate home
2023-03-10 17:26:06 +05:30
Kovid Goyal
b76b0c61ed
Port custom processor for hints
2023-03-10 10:45:37 +05:30
Kovid Goyal
69916ca4e8
Remove python implementation of hints
2023-03-10 07:16:25 +05:30
Kovid Goyal
5b3f5dd02d
Port all remaining hints matching tests
2023-03-09 20:53:46 +05:30
Kovid Goyal
0e5ed29d83
Fix generation of url regex for Go
2023-03-09 19:00:56 +05:30
Kovid Goyal
09ceb3c0be
Start work on porting hints kitten to Go
2023-03-09 19:00:56 +05:30
Kovid Goyal
88443ef8a5
icat: allow specifying image ids
2023-03-09 10:17:53 +05:30
Kovid Goyal
f157882856
Finish porting of ask kitten to Go
2023-03-07 17:06:00 +05:30
Kovid Goyal
0aa55fb755
Start work on porting the ask kitten
2023-03-07 13:55:44 +05:30
Kovid Goyal
16c7681c7c
diff kitten: Speedup patch parsing by working with bytes rather than unicode
...
Also change the line split algorithm to only split on \n, \r and \r\n.
This is hopefully closer to what git/diff generate in their patch files.
I cant find any documentation specifying this however.
Fixes #6052
Fixes #6092
2023-03-06 09:55:55 +05:30
Kovid Goyal
6660071d3a
Port the hyperlinked_grep kitten to Go
2023-03-05 13:41:57 +05:30
Kovid Goyal
ed8a88e009
Add new unicode placeholder and tmux passthrough options to icat
2023-03-03 22:06:35 +05:30
pagedown
4c9d90efbb
hints kitten: Perform copy action with --program when matching linenum
2023-03-02 10:30:17 +08:00
Kovid Goyal
eb6d777790
...
2023-03-01 20:34:09 +05:30
Kovid Goyal
81f8ed6b45
Use @ rather than # for named buffers prefix char
...
Matches existing use of @ for clipboard. Also @ doesnt need to be quoted
in most shells.
2023-03-01 19:54:03 +05:30
pagedown
854529c443
hints kitten: Allow copying matches to named buffers
2023-03-01 22:10:24 +08:00
pagedown
3d50c1ea5a
Fix cursor misalignment after displaying detailed traceback
2023-03-01 12:04:04 +08:00
Kovid Goyal
00b3437a05
Remove python implementation of SSH kitten
2023-02-28 12:42:30 +05:30
Kovid Goyal
6de77ce987
Clean up exclude pattern handling
2023-02-26 09:12:12 +05:30
Kovid Goyal
5cc3d3cbfe
Fix remaining failing tests
2023-02-26 08:01:04 +05:30
Kovid Goyal
e4002b5691
Switch to a more capable glob implementation that supports **
2023-02-26 08:01:04 +05:30
Kovid Goyal
525caff938
Move get_connection_data to utils module as it is not needed for the actual kitten
2023-02-26 08:01:03 +05:30
Kovid Goyal
9870c94007
More work on porting the SSH kitten
2023-02-26 08:01:03 +05:30
Kovid Goyal
747411be00
Finish implementation of config file parsing
...
Still needs tests
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
fbfb779a19
Clarify what pygments style does
2023-02-20 16:38:22 +05:30
Kovid Goyal
ac5298ce76
Finish porting unicode input
2023-02-15 17:42:31 +05:30
Kovid Goyal
53e33a80ba
Start work on porting unicode input kitten to Go
2023-02-14 21:33:21 +05:30
pagedown
cc18a4c192
transfer kitten: Use guess_type with custom MIME
2023-02-12 17:34:09 +08:00
Luofan Chen
130315ce8d
Use strict function prototypes
...
Fixes clang error:
error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2023-02-09 13:16:00 +08:00
Kovid Goyal
7c8c7fe3a2
launch: When using --cwd=current for a remote system support running non shell commands as well
2023-02-08 17:52:28 +05:30
Kovid Goyal
244507336b
Function to change the remote command in an ssh kitten cmdline
2023-02-08 16:34:33 +05:30
Kovid Goyal
5338fcdc1e
Add a note about why we play with file descriptors
2023-01-26 21:50:10 +05:30
Kovid Goyal
f8991ce3c8
ask kitten: Get readline to work even when stdout is redirected
2023-01-26 21:47:43 +05:30
Kovid Goyal
3a126ffa9d
Restore permissions check on pwfile
...
just use RW instead of R as the expected mode
2023-01-26 08:48:35 +05:30
Kovid Goyal
dd6e206f9b
Remove unused import
2023-01-26 08:29:37 +05:30
Loren Schlomer
366d65f592
Fixes the ssh kitten
...
kovidgoyal@5e645a7 fixes the password file creation, allowing it to be
unlinked, but read_data_from_shared_memory/1 rejects the shared object
if it is not read only, and will break the ssh kitten for all
platforms.
This change removes the read only check, relying only on the file
ownership check.
This fully fixes #5928
Signed-off-by: Loren Schlomer <me@schlomie.com>
2023-01-25 11:14:12 -08:00
Kovid Goyal
5e645a7be7
Fix ssh kitten not working on FreeBSD
...
Apparently on FreeBSD one cannot unlink shared mem if it is not created
with write permissions.
Adding IWRITE to the permissions when creating the shared memory is
harmless. It means any process running as the user can either write to
the file or delete it. Deleting was already possible except on FreeBSD.
As for writing, it's needed on FreeBSD for shared memory to be useable
at all, and since processes running as the user can already completely
access all their data, kitty config files, tty pipes, etc. allowing them
to write to the SHM used here doesnt grant any significant new
capability, since they could just write to ssh.conf in the kitty config
folder to get the ssh kitten to do whatever they like.
Fixes #5928
2023-01-25 23:34:31 +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
5b4e4f032d
ask kitten: Output JSON when used standalone
2023-01-22 11:48:51 +05:30
Kovid Goyal
0a1b399447
...
2023-01-22 08:58:14 +05:30
Kovid Goyal
6a64df1afb
Abort show_error kitten if stdin is a tty
2023-01-22 08:48:55 +05:30
Kovid Goyal
dc1851acdb
Add some messages to kitten help for kittens that are not meant to be run by end users.
2023-01-22 08:46:29 +05:30
Kovid Goyal
dc03c14af2
Fix #5896
2023-01-18 08:51:17 +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
d4e34a4c31
themes kitten: Nicer error message when no internet connection is present
...
Fixes #5877
2023-01-11 09:00:58 +05:30
Kovid Goyal
836b652f4d
Enable checks for unused noqa
2023-01-09 17:28:35 +05:30
Kovid Goyal
69255f7525
broadcast kitten: Allow pressing a key to stop echoing of input into the broadcast window itself
2023-01-09 17:19:35 +05:30