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
Kovid Goyal
5dfb8b1d80
diff kitten: Display CRLF line endings using the unicode return symbol instead of <d> as it is less intrusive.
...
Fixes #638
2018-06-15 07:08:57 +05:30
Kovid Goyal
82f9f002bd
diff kitten: Fix default foreground/background colors not being restored when kitten quits. Fixes #637
2018-06-14 23:25:13 +05:30
Kovid Goyal
2a8295d71c
diff kitten: Better error message when one of the arguments does not exist
2018-06-14 21:53:13 +05:30
Kovid Goyal
7214b66aa5
A new tui API for simple line editing
...
Handles basic line-editing with the extended keyboard protocol and
support for wide chars.
Currently used by the unicode input kitten.
2018-06-14 13:11:48 +05:30
Kovid Goyal
61dd52b50f
Ignore the non-characters from the unicode standard in addition to ignoring the control characters
2018-06-14 10:20:13 +05:30
Kovid Goyal
fc74d22724
Nicer error message when specifying a non-existent kitten
2018-06-09 13:49:33 +05:30
Kovid Goyal
ca41e642fb
Nicer error message when no kitten name is specified
2018-06-09 13:47:49 +05:30
Kovid Goyal
83849ab07a
Document the clipboard kitten
2018-06-09 13:32:32 +05:30
Kovid Goyal
02ac2336bd
DRYer
2018-06-09 12:47:52 +05:30
Kovid Goyal
c094ebce07
Set VMIN to 1 as without it poll() returns immediately even when no data is available to read on macOS
2018-06-09 11:17:12 +05:30
Kovid Goyal
65ed9c759c
...
2018-06-09 11:10:58 +05:30
Kovid Goyal
83fe2438f9
Forgot to port the exception handler loop
2018-06-09 11:08:25 +05:30
Kovid Goyal
caa20aa081
Use the new tty code in tui as well
2018-06-09 09:06:48 +05:30
Kovid Goyal
0cc008e737
Use TTYIO for the icat kitten as well
2018-06-08 20:21:05 +05:30
Kovid Goyal
19721014d0
Remote control: Fix kitty @ sometimes failing to read the response from kitty.
...
Fixes #614
2018-06-08 15:35:01 +05:30
Kovid Goyal
c76a8242e2
Make the icat kitten work even if stdout/stdin are redirected
2018-06-06 12:04:10 +05:30
Kovid Goyal
8a1a45b067
Allow the diff kitten to work even if stdout/stdin are redirected
...
Now directly opens /dev/tty
2018-06-06 12:01:47 +05:30
Kovid Goyal
8f433f5ff6
...
2018-06-06 11:27:03 +05:30
Kovid Goyal
97c317b735
Make screen_size handling in tui cleaner
...
Now screen size is fetched only for output_fd rather than sys.stdout
2018-06-06 11:20:55 +05:30
Kovid Goyal
d39cf5d702
Get rid of the default diff.conf
2018-06-05 10:44:18 +05:30
Robert Ricci
da6ad5df45
Switch to generic hash instead of sha1 specifically
...
Suggested by @maximbaz
2018-06-04 15:43:03 -06:00
Robert Ricci
a9f394ce18
Fix stray text
2018-06-04 14:28:35 -06:00
Robert Ricci
093921cb9a
Add support for sha1 hashes to the hint kitten
...
This is specifically intended for git commit hashes, so it allows for
hashes as short as 7 characters (git's default length for abbreviated
hashes) up to the full 40 characters
2018-06-04 14:25:38 -06:00
Kovid Goyal
7cf6b8b594
Move the config utils into its own package
2018-06-03 11:54:26 +05:30
Kovid Goyal
620782aa80
Document the icat kitten
2018-06-02 14:45:46 +05:30