Kovid Goyal
9cab8a2de5
diff kitten: Do not specify the default foreground color in formatting codes.
...
Fixes an issue with foreground color being incorrect after a highlighted
segment if the syntax highlight does not specify a foreground color at
the boundary.
2018-05-20 08:51:41 +05:30
Kovid Goyal
709d19119d
Update bundled glfw
2018-05-20 08:03:58 +05:30
Kovid Goyal
029b82807c
Ignore \ prefixed lines when parsing patches
2018-05-19 23:02:49 +05:30
Kovid Goyal
67c0942e01
Fix error reporting in the diff kitten
2018-05-19 22:51:02 +05:30
Kovid Goyal
fb57653665
Make debugging kittens a little nicer
...
Now debug() writes to the stderr of the parent kitty process instead of
a temp file.
2018-05-19 16:32:08 +05:30
Kovid Goyal
646a349d82
...
2018-05-19 15:11:08 +05:30
Kovid Goyal
ad1109b6fe
Hints kitten: Overhaul making it more intelligent
...
It now uses information about the geometry of the screen.
So URLs that stretch over multiple lines are detected even if there is a
hard line break in between (some programs like mutt generate these).
2018-05-19 14:31:00 +05:30
Kovid Goyal
c2bd6a66d9
...
2018-05-19 08:49:03 +05:30
Kovid Goyal
ba9af3df8c
Fix moving cursor outside a defined page area incorrectly causing the cursor to be placed inside the page area. Caused incorrect rendering in neovim, which relies on this behavior.
...
Fixes #542
2018-05-19 08:04:37 +05:30
Kovid Goyal
5d4e968f50
Allow commenting lines in command logs
2018-05-19 07:33:29 +05:30
Kovid Goyal
0e327f3d13
Allow kittens to ask for wrap markers
2018-05-18 23:09:27 +05:30
Kovid Goyal
bb06bfa627
Cleanup the as_text_generic macro
...
Also allow adding a \r at the end of each visual line
2018-05-18 23:06:06 +05:30
Kovid Goyal
2a713cab60
kittens should specify their own required input type
...
It is DRYer. Also replace the run_kitten function with just kitten that
takes no type of input argument. Backward compat for run_kitten is
maintained.
2018-05-18 22:55:42 +05:30
Kovid Goyal
26df57a1c7
More elegant handling for pressing enter with no valid current input in the hints kitten
2018-05-18 21:28:43 +05:30
Kovid Goyal
18893f86ce
Render a couple more powerline symbols directly, bypassing the font
...
There are apparently a set of "extra" powerline glyphs that need to be
boundary aligned. https://github.com/ryanoasis/powerline-extra-symbols
Fixes #550
2018-05-18 19:20:10 +05:30
Kovid Goyal
8fead5ebe8
Add a test function to test drawing of single box characters easily
2018-05-18 15:43:40 +05:30
Kovid Goyal
6020aadbf2
diff kitten: Show overall diff stats
2018-05-18 14:19:25 +05:30
Kovid Goyal
f8b6b532e0
diff kitten: Show scroll %
2018-05-18 13:36:12 +05:30
Kovid Goyal
05ec174868
@resize-window now has a useful return code
2018-05-18 00:01:31 +05:30
Kovid Goyal
3875ee021a
re-org screenshots
2018-05-17 23:53:36 +05:30
Kovid Goyal
2931afa0ae
Fix vertical biasing of last window in grid not working when number of windows is odd
2018-05-17 23:42:37 +05:30
Kovid Goyal
2803e45380
Fix swapped row/col when biasing grid layout
2018-05-17 23:39:29 +05:30
Kovid Goyal
965dde599e
Cleanup layout.py
2018-05-17 23:34:41 +05:30
Kovid Goyal
229ea45d81
...
2018-05-17 23:27:35 +05:30
Kovid Goyal
8ea84c97d5
Use an overlay window for window resizing
...
Also implement a remote command to resize windows
2018-05-17 23:26:41 +05:30
Kovid Goyal
7c47bd547f
Fix ctrl+alt+<special> not working in normal and application keyboard modes.
...
Fixes #548
2018-05-17 20:43:18 +05:30
Kovid Goyal
6ae58e6882
Add a couple more functions to --replay-commands
2018-05-17 20:15:59 +05:30
Kovid Goyal
3bc0f90a82
Fix incorrect parsing of --replay-commands
2018-05-17 20:06:59 +05:30
Kovid Goyal
2a99ef254f
Dont segfault when printing a freetype font object with a NULL postscript name
2018-05-17 19:49:31 +05:30
Kovid Goyal
5bc811f26e
Improve the help text for --replay-commands
2018-05-17 19:42:46 +05:30
Kovid Goyal
83893d762a
Implement resizing for the grid layout
2018-05-17 18:47:41 +05:30
Kovid Goyal
24bed6273b
Simplify grid layout code some more
2018-05-17 17:47:42 +05:30
Kovid Goyal
2a5b314f67
Simplify grid layout code
2018-05-17 17:20:09 +05:30
Kovid Goyal
e3c9fc3fba
DRYer
2018-05-17 17:17:03 +05:30
Kovid Goyal
b81700a8fd
DRYer
2018-05-17 17:12:24 +05:30
Kovid Goyal
b319fd4b93
Implement resizing for vertical and horizontal layouts
2018-05-17 17:09:03 +05:30
Kovid Goyal
23d6995558
...
2018-05-17 16:50:16 +05:30
Kovid Goyal
190612d507
Make the resize step size configurable
2018-05-17 16:48:35 +05:30
Kovid Goyal
cddfe425e1
Dont keep increasing bias in Tall layout when it wont change the actual layout
...
Also refactor the bias code so that it is shared with the fat layout.
2018-05-17 16:02:42 +05:30
Kovid Goyal
bc6a03a41b
Implement resizing for the Fat layout
2018-05-17 15:19:05 +05:30
Kovid Goyal
e053d1f566
Implement resizing of individual windows in a layout
...
See the Layouts section in the README for details. Fixes #362
Note that it is only implemented for the Tall layout currently. Other
layouts to follow. The implementation might also be refined in the
future.
2018-05-17 15:09:41 +05:30
Kovid Goyal
e429b8484c
Update kitty invocation when preprocessing README
2018-05-17 14:56:52 +05:30
Kovid Goyal
22159c5eb4
Fix mockup for testing
2018-05-16 16:43:39 +05:30
Kovid Goyal
903df9972a
...
2018-05-16 16:25:41 +05:30
Kovid Goyal
4dcbb1f077
Avoid needless re-allocation of Layout objects on layout change
...
Also allows layout instance data to be preserved when cycling layouts
2018-05-16 16:24:31 +05:30
Kovid Goyal
5158d49781
Generalize bias handling
2018-05-16 15:57:04 +05:30
Kovid Goyal
3fdf47c535
Allow specifying the width of the tall window in the Tall layout as a percentage of available space
...
Also remove the --window-layout option as it was redundant. Same effect
can be achieved using -o enabled_layouts=some_layout,*
2018-05-16 14:02:58 +05:30
Kovid Goyal
b59d1bda8b
Add a comment for RTL shaping
2018-05-16 07:00:36 +05:30
Kovid Goyal
1760fb9db2
Partial fix for rendering RTL languages like arabic
2018-05-16 06:56:16 +05:30
Kovid Goyal
082c771fc0
Fix typo in conf file
2018-05-16 00:08:52 +05:30