Kovid Goyal
3bddb9d95b
Fix an exception when chaging diff context on very small diffs
2019-01-16 21:24:34 +05:30
Kovid Goyal
fa01e0b76f
icat kitten: Add a --stdin option to control if image data is read from stdin
...
See #1308
2019-01-16 16:35:53 +05:30
Kovid Goyal
c94e06ccd2
hints kitten: Start hints numbering at one instead of zero by default. Added an option `--hints-offset` to control it.
...
Fixes #1289
Fixes #1290
2019-01-08 07:31:54 +05:30
Kovid Goyal
3e26f96744
Add some common synonyms for unicode word searching
...
Fixes #1133
2018-11-13 15:46:33 +05:30
Kovid Goyal
34aea3bca1
Merge branch 'hints-add-trailing-space' of https://github.com/maximbaz/kitty
2018-11-11 11:03:11 +05:30
Maxim Baz
f26519863f
Don't include --progam in the condition
2018-11-10 13:24:39 +01:00
Maxim Baz
a57e96500a
hints: optionally add trailing space
2018-11-10 13:19:40 +01:00
Kovid Goyal
4601cd13dc
icat kitten: Implement reading image data from STDIN, if STDIN is not connected to a terminal
...
Fixes #1130
2018-11-10 12:31:09 +05:30
Kovid Goyal
787100a4dc
Modify the kittens sub-system to allow creating custom kittens without any user interface.
...
See #870
2018-10-12 18:09:37 +05:30
Kovid Goyal
4a8c4c4601
Unicode input: Fix an error when searching for the string 'fir'
...
Fixes #1035
2018-09-28 19:01:20 +05:30
Kovid Goyal
e498cedf56
remove unused import
2018-09-27 08:52:40 +05:30
Daniel Hahler
3323ddcdef
unicode_input: use reverse mode for menu selection
2018-09-26 22:50:22 +02:00
Kovid Goyal
3bd45966c6
diff kitten: Fix spurious traceback on exit when pygments is missing
...
Fixes #863
2018-09-06 06:05:08 +05:30
Kovid Goyal
bbe8bcb28d
Fix a regression that broke layout resizing
...
Fixes #860
2018-09-05 10:51:08 +05:30
Kovid Goyal
e05aaf77ce
spelling typo
2018-09-01 10:41:35 +05:30
Kovid Goyal
59f39ae3ab
Fix detection of xprop on systems with older xprop
...
Fixes #798
2018-08-08 15:31:15 +05:30
Kovid Goyal
d964146f8c
Use ctermid() instead of hardcoding /dev/tty
2018-08-04 20:58:01 +05:30
Kovid Goyal
e05d48a574
Also prevent long running diff workers from causing a hang on exit
2018-08-04 17:51:33 +05:30
Kovid Goyal
927bfcd37a
Use only a single diff executor
2018-08-04 17:46:05 +05:30
Kovid Goyal
42cabace47
Better fix for long running highlight workers
2018-08-04 17:41:37 +05:30
Kovid Goyal
9a1f14d05c
diff kitten: Do not highlight extremely large files
...
python's asyncio module has no way to tell a process executor object to
kill its worker processes, so highlighting very large files cause the
kitten to hang around o exit till the highlighting is done
2018-08-04 17:30:45 +05:30
Kovid Goyal
000c1cf306
Implement support for emoji skin tone modifiers
...
Fixes #787
2018-08-04 10:06:25 +05:30
Kovid Goyal
e5a720c6fa
Fix detection of URLs in HTML source code (URLs inside quotes)
...
Fixes #785
2018-08-03 12:28:23 +05:30
Kovid Goyal
8d20dbe81d
Use the ! modifier when resizing images via ImageMagick
...
Should hopefully make ImageMagick respect the specified width and height
exactly.
2018-08-01 12:03:36 +05:30
Kovid Goyal
f018e1a075
Nicer check for is_binary
2018-07-28 14:02:01 +05:30
Kovid Goyal
8a812c9d02
diff kitten: Fix error when only RHS file is a binary file
...
Fixes #752
2018-07-28 13:59:32 +05:30
Kovid Goyal
341a34ea9e
Assume file extensions are up to 7 chars long
...
See .desktop files
2018-07-26 18:37:13 +05:30
Kovid Goyal
57871e1983
Restore sys.path after importing custom kitten
2018-07-25 09:51:04 +05:30
Kovid Goyal
5485436ea1
...
2018-07-24 10:18:37 +05:30
Kovid Goyal
05d51d8693
Fix #730
2018-07-20 15:55:39 +05:30
Kovid Goyal
2c3235d452
Remove need to call super-class on_resize method
2018-07-15 16:19:54 +05:30
Kovid Goyal
d2ea71a403
Remove unused code
2018-07-15 16:14:40 +05:30
Kovid Goyal
feb97b2313
Use asyncio for jobs in the diff kitten
2018-07-15 16:09:52 +05:30
Kovid Goyal
0b662ecb9a
Refactor the kittens tui loop to use asyncio
...
Gets us timers and various jobs for free, and makes it easier to
integrate with libraries that use asyncio from the larger python
ecosystem.
2018-07-15 15:27:35 +05:30
Kovid Goyal
65fef81f29
hints kitten: Add an option to select multiple items
...
Fixes #687
2018-06-29 06:49:16 +05:30
Kovid Goyal
0c88e11cd7
More useful exception when unexpected output encountered from a kitten
2018-06-27 14:13:40 +05:30
Kovid Goyal
66a52ac588
Also ignore failure to read readline history in the ask kitten
2018-06-22 17:23:55 +05:30
Kovid Goyal
491f233d33
diff kitten: When triggering a search scroll to the first match automatically
2018-06-19 10:30:52 +05:30
Kovid Goyal
fedde51c12
...
2018-06-16 10:16:06 +05:30
Kovid Goyal
ad97315925
diff kitten: Misc fixes to msg display in the status line
2018-06-16 08:57:02 +05:30
Kovid Goyal
e8f7a2b345
Dont send on_text events with empty text
2018-06-16 08:55:10 +05:30
Kovid Goyal
3669d4135c
diff kitten: Add keybindings to search without regex
2018-06-16 08:45:42 +05:30
Kovid Goyal
8b4fe494cf
Format matches count the same as scroll percent
2018-06-16 08:24:32 +05:30
Kovid Goyal
6f7ea49008
Switch to high number OSC codes instead of DCS string codes for dynamic color push/pop
2018-06-15 15:21:46 +05:30
Kovid Goyal
84b99b1b3d
diff kitten: Clear the search when pressing Esc
2018-06-15 15:00:09 +05:30
Kovid Goyal
1022d8a0ee
diff kitten: Show the number of matches in the status bar when doing a search
2018-06-15 14:57:03 +05:30
Kovid Goyal
cd6a46730a
...
2018-06-15 14:48:59 +05:30
Kovid Goyal
59743fd7a1
diff kitten: Allow theming the selection background/foreground as well
2018-06-15 14:43:39 +05:30
Kovid Goyal
fe3b10a8fb
diff kitten: Implement searching for text in the diff
...
Fixes #574
2018-06-15 14:28:42 +05:30
Kovid Goyal
22cffef7c8
diff kitten: Use a single-width replacement for control chars
...
Preserves text width better, and conveys the essential message, namely
non-printable characters. Most people wont know what <hex code> is in
any case.
2018-06-15 08:08:21 +05:30