Commit Graph
227 Commits
Author SHA1 Message Date
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 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 7acc6bdeb8 Move splitlines_like_git to a more appropriate home 2023-03-10 17:26:06 +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
Kovid Goyal fbfb779a19 Clarify what pygments style does 2023-02-20 16:38:22 +05:30
Kovid Goyal 836b652f4d Enable checks for unused noqa 2023-01-09 17:28:35 +05:30
Kovid Goyal 6e41409a3f Dont run isort on generated conf files 2023-01-09 16:51:59 +05:30
Kovid Goyal 7fe5d7b58f Replace isort with ruff 2023-01-09 16:47:42 +05:30
Kovid Goyal a068e3e655 Fix issues reported by ruff 2023-01-09 15:54:41 +05:30
Kovid Goyal 1b5fac3189 Cleanup previous PR 2023-01-06 14:25:21 +05:30
TrellixVulnTeam 1223130ef7 Adding tarfile member sanitization to extractall() 2023-01-06 08:07:51 +00:00
pagedown a131f9a82e Refactor: Use a consistent name for beam cursor shape 2022-11-19 10:34:50 +08:00
Kovid Goyal 7737369fc9 Add completion for the kittens 2022-11-14 15:41:58 +05:30
Kovid Goyal b247759d30 DRYer 2022-09-11 13:15:42 +05:30
pagedown 0d116e6ef0 Use four spaces to indent 2022-08-08 22:31:55 +05:30
pagedown c3df6d2fe3 Remove executable perms from kitten files 2022-06-28 11:59:47 +08:00
Kovid Goyal 79f7954048 Cleanup previous PR 2022-06-06 17:19:52 +05:30
Suvayu Ali 20b6a97159 Update in response to feedback
- one configuration option: ignore_paths
- use shlex to parse option to support whitespace and in-line comments
- change option type to Tuple[str, ...]
- remove ignored directories from dirnames to prevent scanning
2022-06-06 11:00:45 +02:00
Suvayu Ali eea652f1d0 kittens/diff: move empty pattern check to dir tree walk 2022-06-05 10:11:21 +02:00
Suvayu Ali fbf1ec43c7 diff kitten: add options to ignore paths when comparing directories
Tested locally & over SSH:

    $ kitty +kitten diff /local/path /local/path2
    $ kitty +kitten diff /local/path ssh:remote:/path
2022-06-05 00:11:30 +02:00
pagedown bb78dc5ccb Docs: Fix the help text of query_terminal and other minor tweaks
Use --match-tab in broadcast kitten example.
2022-04-29 01:30:45 +08:00
Kovid Goyal 1a2d9c6fba Fix a couple of issues highlighted by updated mypy 2022-04-28 07:03:35 +05:30
pagedown 510022c3c1 Docs: Improve the documentation for kittens
Add more text roles and links.
Add an example that broadcasts only to other windows in the current tab.
Initial capitalization of the key names in the kbd text role.
Add Python type hints for custom kittens.
Note about hyperlink support for ls on macOS.
Add description text for show_key.
2022-04-27 16:14:54 +08:00
Kovid Goyal 6174c2008f ... 2022-04-20 10:10:05 +05:30
Kovid Goyal 402fac3edf ... 2022-04-19 10:53:18 +05:30