Kovid Goyal
05a254eee9
Merge branch 'simplify' of https://github.com/Luflosi/kitty into master
2020-09-28 16:20:01 +05:30
Luflosi
8ef53aa363
Remove unnecessary condition
...
According to the python documentation, `Py_CLEAR()` has no effect when the argument is `NULL`, see https://docs.python.org/3/c-api/refcounting.html#c.Py_CLEAR .
2020-09-28 12:21:23 +02:00
Kovid Goyal
470abc25e4
Changelog entry for hyperlinks with hints kitten
2020-09-25 21:02:27 +05:30
Kovid Goyal
7fe6c7e78b
Also handle EOFError
2020-09-25 18:58:03 +05:30
Kovid Goyal
6c8a4f8d9f
Handle SIGINT more gracefully
2020-09-25 18:55:43 +05:30
Kovid Goyal
2a8c8c0cbb
Fix #2980
2020-09-25 16:06:07 +05:30
Kovid Goyal
12bbe5459d
Allow selecting hyperlinks via the hints kitten
2020-09-24 13:21:15 +05:30
Kovid Goyal
e0d9e05fd4
Preserve rg exit code
2020-09-23 20:33:03 +05:30
Kovid Goyal
8bea61cb99
hyperlinked_grep: Ensure filename is always printed
...
Fixes hyperlinks not working when a single file is searched
2020-09-23 19:11:09 +05:30
Kovid Goyal
d09666aba9
Unicode input kitten: Add symbols from NERD font
...
These are mostly Private Use symbols not in any standard,
however they are common enough to be useful.
Fixes #2972
2020-09-22 19:47:39 +05:30
Kovid Goyal
48e0ba1d3d
Add a note about completion for the hyperlinked_grep kitten
2020-09-22 19:07:36 +05:30
Kovid Goyal
fb72be41f4
Add a test for serializing id less hyperlinks
2020-09-22 17:52:40 +05:30
Kovid Goyal
ef1db6d089
macOS: Add some keys to Info.plist to allow programs running inside kitty to access protected Cocoa APIs.
2020-09-22 16:32:40 +05:30
Kovid Goyal
9d4246a285
Output hyperlink markup when serializing as ANSI
2020-09-22 16:18:22 +05:30
Kovid Goyal
e0f5c39297
Get rid of unneeded malloc in as_text_generic
2020-09-22 09:57:45 +05:30
Kovid Goyal
e4d353b105
Ignore undecodeable bytes in pagerhist
...
Also add API to get pagerhist as bytes
2020-09-22 09:33:48 +05:30
Kovid Goyal
0d665495b8
Make getting hyperlinks from ids useable throughtout the codebase
2020-09-22 09:25:16 +05:30
Kovid Goyal
fdaf857885
Add more tests for pagerhist
2020-09-22 09:05:40 +05:30
Kovid Goyal
987b41d2cb
Implement rewrp for pagerhist using the streaming wcswidth
2020-09-21 19:05:23 +05:30
Kovid Goyal
444080f320
Make wcswidth useable in a streaming fashion
2020-09-21 15:55:22 +05:30
Kovid Goyal
b5007ba276
Store pager history in UTF-8
...
Reduces storage requirement by a fator of 4 at the cost of some CPU
usage, to encode to UTF-8
2020-09-21 12:29:10 +05:30
Kovid Goyal
bf19d2b156
Add some tests for the pagerhist code
2020-09-21 09:08:46 +05:30
Kovid Goyal
a78515e5bf
Remove the max size limit for line_as_ansi
...
Needed for output of hyperlinks, also more efficient, since avoids
malloc per line. Also fix pagerhist not having SGR reset at the start of
every line.
2020-09-20 11:26:59 +05:30
Kovid Goyal
581126c748
More powerful match criteria for fragments
2020-09-19 07:31:17 +05:30
Kovid Goyal
7b3e345a2a
Document the framework for customizing URL open actions
2020-09-18 21:33:30 +05:30
Kovid Goyal
cc7cefd3ed
Use unquoted path for filename and path matching
2020-09-18 21:11:39 +05:30
Kovid Goyal
de6528b7d8
Dispatch url actions once per event loop tick
...
This allows subsequent actions to act on the results of the previous
actions
2020-09-18 20:48:40 +05:30
Kovid Goyal
9efdfe0de4
Fix processing of non-string key actions
2020-09-18 20:41:31 +05:30
Kovid Goyal
f936918278
...
2020-09-18 19:46:49 +05:30
Kovid Goyal
00125577a9
Add a link to rg hyperlink issue
2020-09-18 19:36:43 +05:30
Kovid Goyal
083c47b0f0
A new kitten to easily search files and open the results at the matched line by clicking on them.
2020-09-18 19:33:51 +05:30
Kovid Goyal
8021686154
Merge branch 'fix-typo' of https://github.com/Luflosi/kitty into master
2020-09-18 17:24:00 +05:30
Luflosi
f55ca296da
Fix typo
2020-09-18 13:50:56 +02:00
Kovid Goyal
0d6bca3e5d
Allow specifying rules to perform arbitrary actions in kitty when opening URLs
2020-09-18 15:01:25 +05:30
Kovid Goyal
be1ff61e4a
Improve some utility functions
...
Make expandvars accept both $VARNAME and ${VARNAME} now matches
the behavior of posixpath.expandvars
Allow overriding the environment variables to_cmdline expands against
2020-09-18 13:25:59 +05:30
Kovid Goyal
e36d41b46f
Add a --hold option to icat
...
Keeps it alive after display images
2020-09-18 11:48:31 +05:30
Kovid Goyal
b4693dc1b3
Fix some lines in the scrollback buffer not being properly rendered after a window resize/font size change
...
Fixes #2619
2020-09-18 08:26:50 +05:30
Kovid Goyal
ca6010789e
Fix a memory leak when changing font sizes
...
had forgotten to free unused font groups
2020-09-18 07:40:30 +05:30
Kovid Goyal
f8a80ccf5f
Move the wcswidth functions out of screen.c
...
They have nothing to do with screens
2020-09-17 21:24:52 +05:30
Kovid Goyal
6461dccbdc
Make wcswidth ignore more escape codes
...
Needed to ignore OSC 8 hyperlinks since we will
eventually have to send those with SGR formatting to the hints
kitten.
2020-09-17 20:16:17 +05:30
Kovid Goyal
b06f4f2574
Use the correct type for png_row_bytes() result
2020-09-17 16:54:21 +05:30
Kovid Goyal
7695e3a9c8
Cleanup exit flow control for remote hostname not matching
2020-09-17 16:45:02 +05:30
Kovid Goyal
ae475b408f
oops
2020-09-17 16:45:02 +05:30
Kovid Goyal
6d9d048287
Verify hostname before acting on remote file URL
...
Fixes #2971
2020-09-17 16:45:02 +05:30
Kovid Goyal
09e4d101c5
DRYer
2020-09-17 16:45:02 +05:30
Kovid Goyal
36340caf4c
Fix URL marking + scrolling
...
The ranges have to use on screen line numbers not line->ynum
Fixes #2969
2020-09-17 16:44:10 +05:30
Kovid Goyal
9a80ab0700
More robust
2020-09-17 10:42:30 +05:30
Kovid Goyal
339d972d8d
Use INT_MAX rather than self->lines + 10
...
More likely to never co-incide
2020-09-17 10:41:13 +05:30
Kovid Goyal
6d1e1030bd
...
2020-09-17 10:37:14 +05:30
Kovid Goyal
8a3665ce55
Add links to some modern terminal feature specs
2020-09-17 10:25:37 +05:30