Commit Graph

572 Commits

Author SHA1 Message Date
Kovid Goyal
a22404abe6
Better names 2021-07-28 15:44:17 +05:30
Kovid Goyal
7c06313750
A couple more useful aliases 2021-07-28 15:40:48 +05:30
Kovid Goyal
6f265f448d
DRYer 2021-07-28 15:39:21 +05:30
Kovid Goyal
acdc41bd03
Allow sending no payload 2021-07-28 13:39:15 +05:30
Kovid Goyal
bcff2a7fb6
Add aliases to GraphicsCommand to make it more useable 2021-07-28 13:28:21 +05:30
Kovid Goyal
1bd39ff935
Use new URL scheme and define the kitty website centrally as much as possible 2021-07-27 09:03:11 +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
31da01d4df
Add clipboard_control to query_terminal 2021-07-24 07:26:12 +05:30
Kovid Goyal
8f214c51c0
Get rid of kitty's special OSC 52 protocol
A better solution from an ecosystem perspective is to just work with the
original protocol. I have modified kitty's escape parser to special case
OSC 52 handling without changing its max escape code size.

Basically, it works by splitting up OSC 52 escape codes longer than the
max size into a series of partial OSC 52 escape codes. These get
dispatched to the UI layer where it accumulates them upto the 8MB limit
and then sends to clipboard when the partial sequence ends.

See https://github.com/ranger/ranger/issues/1861
2021-07-23 22:18:02 +05:30
Kovid Goyal
075fb2eaf2
DRYer 2021-07-22 17:56:21 +05:30
Kovid Goyal
21a2768ec3
... 2021-07-22 17:31:54 +05:30
Kovid Goyal
554c840d4e
ssh kitten: exit with 255 for unknown arg to match ssh 2021-07-22 17:30:07 +05:30
Kovid Goyal
9c28a1ba31
ssh kitten: handle -- 2021-07-22 17:03:47 +05:30
Kovid Goyal
93e3e4d2b1
Also strip \r from marked text 2021-07-19 18:12:29 +05:30
Kovid Goyal
3633049ba5
Forgot to include \r in the url regex 2021-07-19 18:09:00 +05:30
Kovid Goyal
c566ed4643
hints kitten: Detect paths and hashes that appear over multiple lines
Fixes #3845
2021-07-19 17:35:48 +05:30
Kovid Goyal
af956f4d84
Fix debug print for long strings 2021-07-19 16:56:10 +05:30
Kovid Goyal
d912d96f00
More docs cleanups 2021-07-19 09:08:55 +05:30
Kovid Goyal
8e5175e56b
Revert "icat: Use scandir for slightly better performance"
This reverts commit 2e893690bd.
scandir is not recursive
2021-07-17 09:51:06 +05:30
Kovid Goyal
2e893690bd
icat: Use scandir for slightly better performance 2021-07-16 21:55:15 +05:30
Kovid Goyal
d052b020fa
Check for dirs when getting mimetypes in a couple more places 2021-07-16 21:49:02 +05:30
Kovid Goyal
cdd8e52116
DRYer 2021-07-11 21:39:08 +05:30
Kovid Goyal
1ec07eb17a
diff kitten: Remove limit on max line length of 4096 characters
Fixes #3806
2021-07-07 07:27:42 +05:30
Kovid Goyal
3dee3aba59
Fix #3794 2021-07-04 18:05:54 +05:30
Kovid Goyal
3d51835b9b
Avoid unneccessary mallocs and copying when return code points for word 2021-06-28 05:56:49 +05:30
Kovid Goyal
f358d76409
Fix type sig 2021-06-28 05:51:49 +05:30
Kovid Goyal
ce486e9244
Move the if condition out of the inner loops 2021-06-27 21:09:06 +05:30
Kovid Goyal
691b7215a0
Unicode input kitten: Fix searching when a word has more than 1024 matches
Fixes #3773
2021-06-27 21:04:43 +05:30
Kovid Goyal
8a4b326127
Finish completion for ssh kitten
Fixes #3760
2021-06-26 12:28:12 +05:30
Kovid Goyal
051374cd55
Add support for comma separated completions 2021-06-26 10:52:14 +05:30
Kovid Goyal
71cd92da29
Store match group properties on the match group object 2021-06-26 09:47:21 +05:30
Kovid Goyal
c2d3a0c8b4
Completion for choice args 2021-06-26 09:18:36 +05:30
Kovid Goyal
fe8b151666
Complete option 2021-06-25 22:53:55 +05:30
Kovid Goyal
d8d5a8fada
More work on completion for the SSH kitten 2021-06-25 17:50:08 +05:30
Kovid Goyal
21ce0e90bf
Code to get list of known host names 2021-06-25 15:04:17 +05:30
Kovid Goyal
ec420b8012
Start work on completion for ssh kitten 2021-06-25 15:04:17 +05:30
Kovid Goyal
13c58536be
Cleanup previous PR and add changelog entry 2021-06-24 21:27:15 +05:30
David Allemang
bb3a8453e0 Make hyperlinked_grep kitten respect context
Fix regex so that context lines (from -C option) are still hyperlinked.

Also add a case so that any non-matching lines are still output raw.
2021-06-24 11:04:35 -04:00
Kovid Goyal
e337fcaadc
query terminal kitten: Allow querying font face and size information
Fixes #3756
2021-06-24 13:31:50 +05:30
Kovid Goyal
890a149a5d
Move generation of query responses into the query classes 2021-06-24 12:31:17 +05:30
Kovid Goyal
5b3ac259ce
Fix a resource warning 2021-06-24 11:27:02 +05:30
Kovid Goyal
98ae2ac96a
ssh kitten: Use sh rather than /bin/sh
It's not actually required that sh be in /bin.  The hope is that fewer
users alias sh to non POSIX things than put sh in places other than /bin
2021-06-21 16:43:59 +05:30
Kovid Goyal
1c25ed7666
ssh kitten: Fix "Connection closed" message being printed by ssh when running remote commands
Don't force allocate a tty when running remote commands. This
matches ssh behavior as well.
2021-06-21 16:40:07 +05:30
Kovid Goyal
fd4c7a4ed2
ssh kitten: Support system where the login shell is a non-POSIX shell
Now the kitten passes its script to /bin/sh and detects the login shell
using various strategies based on the value of $USER on the remote
machine. The strategies are tried one after another till one succeeds:

1) getent passwd $USER
2) id -P
3) python pwd module
4) parsing /etc/passwd

The hope is that these strategies will fail on fewer systems than
relying on the login shell being POSIX compliant.
2021-06-21 16:30:49 +05:30
Kovid Goyal
6e77345263
Ensure sys.path is preserved even if there are errors importing a custom kitten 2021-06-21 04:35:10 +05:30
Kovid Goyal
962acd1537
ssh kitten: Fix non-standard properties in terminfo such as the ones used for true color not being copied 2021-06-12 07:27:14 +05:30
Kovid Goyal
9432f86e43
Remove no longer needed type: ignore
Looks like the type signature for runpy.run_path has finally been fixed
2021-06-09 08:30:22 +05:30
Kovid Goyal
a1b87f445b
Store the paths from which config data is read on the created options object 2021-06-05 12:55:00 +05:30
Kovid Goyal
1c8b7955eb
Have gen-config output action names as comments 2021-06-05 12:20:43 +05:30
Kovid Goyal
8f491e7dbb
Add newslines at end of generated files and do imports in sorted order 2021-05-31 17:45:02 +05:30