Kovid Goyal
d9d2e31318
Another place where [:max_length] is used without checking
2023-04-07 18:08:38 +05:30
Kovid Goyal
1dd3490611
Fix #6160
2023-04-06 15:14:21 +05:30
Kovid Goyal
3ee77a3a57
Fix #6154
2023-04-04 21:18:27 +05:30
Kovid Goyal
e07f2df8d0
Fix rendering of file added/removed lines
2023-04-03 11:07:51 +05:30
Kovid Goyal
bca67cde6f
Fix default for syntax_aliases not being respected
2023-04-02 15:07:41 +05:30
Kovid Goyal
dfa41f01fd
Fix panic caused by incorrectly constructed empty line
...
Also be more defensive in draw_screen() about rendering lines.
2023-04-02 10:18:23 +05:30
Kovid Goyal
e0cdc26e68
Fix placement of images in diff broken by new render layout
2023-03-30 11:21:28 +05:30
Kovid Goyal
e73282ceb0
Only send graphics protocol commands if there are actual images to diff
2023-03-30 11:06:44 +05:30
Kovid Goyal
9919767aef
Remove unused code
2023-03-30 10:26:39 +05:30
Kovid Goyal
c767f7b57f
...
2023-03-30 07:58:00 +05:30
Kovid Goyal
34526517de
Allow passing multiple options to control how wrapping is done
2023-03-29 20:56:24 +05:30
Kovid Goyal
7169a89591
Add shortcuts for copying to clipboard
2023-03-29 19:56:08 +05:30
Kovid Goyal
37edc728a9
Implement drag scrolling for the diff kitten
2023-03-29 17:14:13 +05:30
Kovid Goyal
aebfdaa69a
Refactor diff mouse selection to use new render layout
2023-03-29 14:32:36 +05:30
Kovid Goyal
468168b9de
Refactor diff search to use new render layout
2023-03-29 13:22:34 +05:30
Kovid Goyal
3dbb830a0e
Refactor diff rendering
...
Dont store full rendered lines, instead fill them up at actual draw
time. Makes implementing mouse selection and searching more robust.
2023-03-29 11:55:03 +05:30
Kovid Goyal
e095a2ab43
Fix #6142
2023-03-28 21:06:39 +05:30
Kovid Goyal
7ed7e82637
Use a filler char other than space
2023-03-28 18:01:04 +05:30
Kovid Goyal
67a9def013
Get copy to primary selection working
2023-03-28 17:15:28 +05:30
Kovid Goyal
8867818dfe
DRYer
2023-03-28 11:55:08 +05:30
Kovid Goyal
00d4841304
Make the mouse selection code re-useable
2023-03-28 11:48:22 +05:30
Kovid Goyal
277dea647e
More work on mouse selection
2023-03-28 10:29:45 +05:30
Kovid Goyal
45c1e36de9
More work on mouse selection
2023-03-28 08:10:29 +05:30
Kovid Goyal
d19f28f2b4
More work on mouse selection in the diff kitten
2023-03-27 21:23:31 +05:30
Kovid Goyal
80204c6056
Use join_half_lines in a few more places
2023-03-27 18:01:53 +05:30
Kovid Goyal
d33b83e6ea
More work on mouse selections
2023-03-27 17:56:00 +05:30
Kovid Goyal
a22933afbc
DRYer
2023-03-27 17:19:13 +05:30
Kovid Goyal
840caf5fd5
Start work on mouse handling in diff kitten
2023-03-27 17:06:56 +05:30
Kovid Goyal
ff55121094
Move the kittens Go code into the kittens folder
2023-03-27 13:06:02 +05:30
Kovid Goyal
d30091034a
Remove the python diff kitten
2023-03-27 11:46:22 +05:30
Kovid Goyal
2ac170c1b1
Allowing using the anchored diff from the Go stdlib as the diff implementation
2023-03-27 07:53:56 +05:30
Kovid Goyal
44ff6bd1dd
Start work on porting diff kitten
2023-03-27 07:53:53 +05:30
Kovid Goyal
073b47a236
Revert #6114
...
Frozen kitty builds dont have python files (they are loaded from a
single mmmaped archive), so the test will prevent any
kittens from being found.
Have make clean remove leftover kittens directories
2023-03-18 15:26:33 +05:30
Kovid Goyal
e4611d0c81
...
2023-03-17 09:02:58 +05:30
pagedown
97ef09b633
Fix empty folders being considered as kitten
...
When pulling a git commit that contains delete folder actions, the local
folders will not be deleted.
2023-03-16 08:20:05 +08:00
Kovid Goyal
9443b0e361
Remove themes python code
2023-03-14 20:28:45 +05:30
Kovid Goyal
6794ec1de7
Wire up the new subseq match code
2023-03-14 12:29:44 +05:30
Kovid Goyal
29dd2438c9
Port the subseq matcher to Go
2023-03-14 12:29:44 +05:30
Kovid Goyal
f9b0b54ee5
Start work on porting themes kitten to Go
2023-03-14 12:29:44 +05:30
pagedown
2416122647
...
2023-03-14 14:30:11 +08:00
Kovid Goyal
7acc6bdeb8
Move splitlines_like_git to a more appropriate home
2023-03-10 17:26:06 +05:30
Kovid Goyal
b76b0c61ed
Port custom processor for hints
2023-03-10 10:45:37 +05:30
Kovid Goyal
69916ca4e8
Remove python implementation of hints
2023-03-10 07:16:25 +05:30
Kovid Goyal
5b3f5dd02d
Port all remaining hints matching tests
2023-03-09 20:53:46 +05:30
Kovid Goyal
0e5ed29d83
Fix generation of url regex for Go
2023-03-09 19:00:56 +05:30
Kovid Goyal
09ceb3c0be
Start work on porting hints kitten to Go
2023-03-09 19:00:56 +05:30
Kovid Goyal
88443ef8a5
icat: allow specifying image ids
2023-03-09 10:17:53 +05:30
Kovid Goyal
f157882856
Finish porting of ask kitten to Go
2023-03-07 17:06:00 +05:30
Kovid Goyal
0aa55fb755
Start work on porting the ask kitten
2023-03-07 13:55:44 +05:30
Kovid Goyal
16c7681c7c
diff kitten: Speedup patch parsing by working with bytes rather than unicode
...
Also change the line split algorithm to only split on \n, \r and \r\n.
This is hopefully closer to what git/diff generate in their patch files.
I cant find any documentation specifying this however.
Fixes #6052
Fixes #6092
2023-03-06 09:55:55 +05:30