Commit Graph

  • 59edf1d349 Code to show help Kovid Goyal 2022-10-13 21:07:17 +05:30
  • 9419fbc77c Fix rendering when line wraps Kovid Goyal 2022-10-13 10:37:42 +05:30
  • d27cf045e5 ... Kovid Goyal 2022-10-09 09:32:28 +05:30
  • f7d44330a2 remove unused code Kovid Goyal 2022-10-09 09:25:23 +05:30
  • 834385baff Improve performance when pasting large amounts of text into readline by not redrawing on every char Kovid Goyal 2022-10-09 09:15:17 +05:30
  • c0f17c279e Add a generic ring buffer Kovid Goyal 2022-10-09 08:52:38 +05:30
  • 7264bea8c9 Fix selector incorrectly marking fd as ready on EINTR Kovid Goyal 2022-10-07 14:03:09 +05:30
  • 1058c999c8 ... Kovid Goyal 2022-10-07 13:56:09 +05:30
  • bf7dd1c369 Fix multiline prompts Kovid Goyal 2022-10-07 13:23:35 +05:30
  • 936a7a5f97 Dont write escape code for zero movement Kovid Goyal 2022-10-07 12:25:37 +05:30
  • 350060e0f6 ... Kovid Goyal 2022-10-07 12:04:37 +05:30
  • 430bd23870 Fix decoding of letter trailer CSI key event Kovid Goyal 2022-10-07 11:35:38 +05:30
  • 9f2b2eac85 More work on shell Kovid Goyal 2022-10-07 10:42:26 +05:30
  • fd36435262 Add some default readline bindings Kovid Goyal 2022-10-07 07:28:21 +05:30
  • 27418eed88 Beep when action could not be performed Kovid Goyal 2022-10-06 21:51:21 +05:30
  • 48f1690913 Wire up key event handling Kovid Goyal 2022-10-06 21:41:40 +05:30
  • eff239a195 Code to erase character ranges Kovid Goyal 2022-10-06 21:14:28 +05:30
  • 5e5cae8391 Code to move cursor right Kovid Goyal 2022-10-06 13:54:18 +05:30
  • 57310a772a Code to move cursor left Kovid Goyal 2022-10-06 13:25:10 +05:30
  • 066465bce7 Some tests for add_text Kovid Goyal 2022-10-05 19:35:15 +05:30
  • 1792c2268a Start writing tests for readline internal functions Kovid Goyal 2022-10-05 09:07:16 +05:30
  • 32059dba7e More work on readline Kovid Goyal 2022-10-04 17:56:20 +05:30
  • c8296a44eb More work on readline Kovid Goyal 2022-10-04 13:33:13 +05:30
  • 565526624f Start work on porting kitty shell to Go Kovid Goyal 2022-10-04 09:16:51 +05:30
  • f57832f501 Fix spurious rebuilds of generated go code Kovid Goyal 2022-10-04 08:50:19 +05:30
  • e536ef7844 Suggestions for sub command names as well Kovid Goyal 2022-09-30 19:37:59 +05:30
  • 0dab006733 Allow un-ambiguous prefixes for command names Kovid Goyal 2022-09-30 15:37:03 +05:30
  • 75ead358a2 Show suggestions for options based on levenshtein distance Kovid Goyal 2022-09-30 14:18:21 +05:30
  • 654bd23109 DRYer Kovid Goyal 2022-09-30 14:00:01 +05:30
  • 6b04c42730 update wcswidth go version to match unicode 15 update in master Kovid Goyal 2022-09-30 13:42:55 +05:30
  • 8f5302a650 Hook up kitty-tool completions with shell integration Kovid Goyal 2022-09-30 13:39:15 +05:30
  • 74b1cac344 Allow using unabiguous long option prefixes Kovid Goyal 2022-09-30 13:29:06 +05:30
  • 7d5849cc17 ... Kovid Goyal 2022-09-30 12:00:49 +05:30
  • d2a2af9672 Add completion for kitty-tool Kovid Goyal 2022-09-30 11:23:58 +05:30
  • 2633356842 No need to use a map Kovid Goyal 2022-09-27 11:18:29 +05:30
  • 3bd4fd999a All completion tests pass again Kovid Goyal 2022-09-26 11:54:57 +05:30
  • 262e2fb7a3 Various fixes from the completion merge Kovid Goyal 2022-09-26 11:22:48 +05:30
  • 97716fea8b More work on merging completions with parse tree Kovid Goyal 2022-09-26 07:34:49 +05:30
  • bf74413c1f Work on merging completion tree with parse tree Kovid Goyal 2022-09-25 20:51:38 +05:30
  • 79ca0408e7 split up types.go Kovid Goyal 2022-09-25 19:05:25 +05:30
  • 97acb60981 Move completion package into cli Kovid Goyal 2022-09-25 18:42:13 +05:30
  • 3662efdf80 Nicer handling of python for typecheck Kovid Goyal 2022-09-25 18:29:49 +05:30
  • e608a945de Output version information at bottom of help Kovid Goyal 2022-09-25 13:03:54 +05:30
  • 5771bd0c01 Make adding subcommands a bit nicer Kovid Goyal 2022-09-25 12:39:42 +05:30
  • 4396dede85 Get rid of the cobra dependency Kovid Goyal 2022-09-25 12:23:52 +05:30
  • cbc569af64 Remove no_response from json specs Kovid Goyal 2022-09-25 09:08:03 +05:30
  • 90c1745976 Fix parsing of list options Kovid Goyal 2022-09-23 21:16:53 +05:30
  • c4ab964d09 Tests for CLI parsing Kovid Goyal 2022-09-23 20:50:35 +05:30
  • 04022ed363 Various fixes to CLI parsing Kovid Goyal 2022-09-23 17:17:32 +05:30
  • 79cfc1e70a Move kitty-tool __complete__ to use the new CLI framework Kovid Goyal 2022-09-23 12:30:41 +05:30
  • e7c14c78d0 Work on outputting help for commands Kovid Goyal 2022-09-22 23:59:07 +05:30
  • cb2389efa5 Use the standard library deque Kovid Goyal 2022-09-22 23:57:33 +05:30
  • 49f5f25fb9 Run tests in the writeable src dir as the generated go files are present there Kovid Goyal 2022-09-22 00:29:05 +05:30
  • ff4353b209 ... Kovid Goyal 2022-09-21 23:52:33 +05:30
  • c07dc220a8 Fix frozen builds Kovid Goyal 2022-09-21 23:29:03 +05:30
  • 4316018966 ... Kovid Goyal 2022-09-21 23:11:52 +05:30
  • a0bf6177e2 Use a LRUCache rather than an Unbounded one Kovid Goyal 2022-09-21 23:02:25 +05:30
  • 3078b9074a Also report submatch positions Kovid Goyal 2022-09-21 22:49:37 +05:30
  • dffb87ced9 Make the cache re-useable Kovid Goyal 2022-09-21 22:02:47 +05:30
  • 4adea5b7fe Make ReplaceAll re-useable Kovid Goyal 2022-09-21 21:43:47 +05:30
  • 317b108497 Allow using :role:'payload' in addition to :role:payload as the former can be used in Go `` string literals Kovid Goyal 2022-09-21 20:53:19 +05:30
  • 7c41737370 Couple more errors found by linting Kovid Goyal 2022-09-21 19:51:09 +05:30
  • 4b6bae576d configure staticcheck Kovid Goyal 2022-09-21 19:35:46 +05:30
  • 8221713995 Allow defining options using a struct Kovid Goyal 2022-09-21 19:15:55 +05:30
  • ef49634353 Fix some issues reported by staticcheck Kovid Goyal 2022-09-21 19:10:57 +05:30
  • d6f42a11d7 Run go vet on CI Kovid Goyal 2022-09-21 17:29:32 +05:30
  • 800dbf1f4d extra message when tests have failed Kovid Goyal 2022-09-21 11:45:57 +05:30
  • b1e08adbce Utility function to sort with key Kovid Goyal 2022-09-21 11:00:40 +05:30
  • e7f38929d9 DRYer Kovid Goyal 2022-09-21 10:51:43 +05:30
  • d0e133885c Install Go 1.18 on CI Kovid Goyal 2022-09-21 10:46:58 +05:30
  • 2cacd7a64a get rid of interface{} since we now require Go 1.18 Kovid Goyal 2022-09-21 08:11:46 +05:30
  • a44c89504b More convenient interface for sorting Kovid Goyal 2022-09-21 08:04:57 +05:30
  • 8807f6d539 Code to get exe name for usage message Kovid Goyal 2022-09-21 07:59:07 +05:30
  • 2f83bbdc85 command validation Kovid Goyal 2022-09-21 07:34:07 +05:30
  • 41a841c83d Validate string slice fields Kovid Goyal 2022-09-21 06:52:45 +05:30
  • 0cf8876f8a Validate count struct fields Kovid Goyal 2022-09-21 06:40:03 +05:30
  • a3a89b3e21 More efficient multi line scanning Kovid Goyal 2022-09-21 06:37:23 +05:30
  • 2ddbe2a2bc Automatically camel-case destination Kovid Goyal 2022-09-21 05:31:19 +05:30
  • 707963b694 Code to conveniently read option values into a struct Kovid Goyal 2022-09-21 05:07:40 +05:30
  • 1811949706 Implement cloning of commands Kovid Goyal 2022-09-20 20:44:16 +05:30
  • bc38bd75fd Start work on getting rid of the cobra dependency Kovid Goyal 2022-09-20 19:31:17 +05:30
  • 54ec486d3a Now completion for hyperlinked_grep is automatic thanks to delegation Kovid Goyal 2022-09-19 23:40:03 +05:30
  • 5666b1b0fd Implement completion for fish Kovid Goyal 2022-09-19 23:19:36 +05:30
  • ef9b765f81 Dont count bash's idiotic option equals as arguments Kovid Goyal 2022-09-19 20:48:07 +05:30
  • a2bb360eec Dont output escape strings in descriptions Kovid Goyal 2022-09-19 20:32:10 +05:30
  • e3b8de1ac0 Update test for new exe search Kovid Goyal 2022-09-19 20:03:29 +05:30
  • 4cbd2a0ee0 ... Kovid Goyal 2022-09-19 19:55:00 +05:30
  • 7cf9b21fc0 Show local executables for kityt command completion even without ./ Kovid Goyal 2022-09-19 19:47:18 +05:30
  • 454c2e32e7 ... Kovid Goyal 2022-09-19 19:38:10 +05:30
  • 53dc079c10 Use compopt to manage files and spaces Kovid Goyal 2022-09-19 19:36:36 +05:30
  • 08c697e99a Get delegate based completion working for bash Kovid Goyal 2022-09-19 19:07:46 +05:30
  • 1dce092ac0 Add trailing spaces for bash completion Kovid Goyal 2022-09-19 17:47:37 +05:30
  • 24c2d27eea handle bash splitting completion cmdline on equals Kovid Goyal 2022-09-19 17:37:25 +05:30
  • b04b483b3f Remove common prefix for bash as well Kovid Goyal 2022-09-19 17:09:42 +05:30
  • a7c997c6ef Add a debug function to print to parent kitty stdout Kovid Goyal 2022-09-19 17:07:53 +05:30
  • 266e51310c Basic BASH completion Kovid Goyal 2022-09-19 15:12:28 +05:30
  • 928a4db817 Implement delegate based completion fof the ssh and hyperlinked_grep kittens Kovid Goyal 2022-09-19 13:31:32 +05:30
  • fd631bf402 Delegate based completion for @launch args Kovid Goyal 2022-09-19 12:23:45 +05:30
  • dc403156a9 Delegate based completion for kitty cmd Kovid Goyal 2022-09-19 12:17:53 +05:30
  • 2cc359ccc8 Get zsh completion working apart from delegation Kovid Goyal 2022-09-19 08:54:54 +05:30