Commit Graph

  • cbbda23e01 Utility code to find longest common prefix/suffix and to quote strings for various shells Kovid Goyal 2022-09-18 19:31:24 +05:30
  • 1ff4f2df4f Refactor the CLI markup code to make it re-useable Kovid Goyal 2022-09-18 14:07:28 +05:30
  • 8796168469 Port code to truncate strings to visual width to Go Kovid Goyal 2022-09-18 13:17:39 +05:30
  • d16ad40bbf avoid extra string copy in Stringwidth Kovid Goyal 2022-09-18 10:42:43 +05:30
  • 5c0858d6b7 Start work on zsh completion serialization Kovid Goyal 2022-09-18 09:33:17 +05:30
  • a32a8d096d Allow commands to customize argument parsing Kovid Goyal 2022-09-17 12:41:10 +05:30
  • 67f556bd7c Add completion for the launch wrappers Kovid Goyal 2022-09-17 12:32:02 +05:30
  • 7737369fc9 Add completion for the kittens Kovid Goyal 2022-09-17 11:59:41 +05:30
  • 25a7ec9a07 Extra completion for some kitty options Kovid Goyal 2022-09-16 21:55:31 +05:30
  • c2a2b4c087 Add various special purpose entry points Kovid Goyal 2022-09-16 21:32:10 +05:30
  • 3bf20594b7 Wire up completion for rc command options Kovid Goyal 2022-09-16 20:53:05 +05:30
  • 3a8bab90dc Get rid of WordPrefix Kovid Goyal 2022-09-16 20:41:18 +05:30
  • 0ff2446a1a More completion work Kovid Goyal 2022-09-16 17:29:41 +05:30
  • 946d44c43f Implement completespec in go Kovid Goyal 2022-09-16 16:26:19 +05:30
  • 26d4f5bcc9 Use the new completionspec for rc cmds Kovid Goyal 2022-09-16 15:05:20 +05:30
  • d84efe105c ... Kovid Goyal 2022-09-16 14:28:54 +05:30
  • f657e6e916 Allow using a base directory other than the cwd when completing files Kovid Goyal 2022-09-16 14:17:07 +05:30
  • c5afceb4cb Basic completion for options Kovid Goyal 2022-09-16 14:08:22 +05:30
  • 18c3e46ac6 When completing on patterns exclude directories that only contain files that dont match Kovid Goyal 2022-09-16 08:56:07 +05:30
  • 3c29ce936b Dont recurse for file completion Kovid Goyal 2022-09-16 08:46:26 +05:30
  • c9d986f9a8 args completion for rc commands Kovid Goyal 2022-09-15 21:49:04 +05:30
  • d4b67f3b6a ... Kovid Goyal 2022-09-15 20:39:51 +05:30
  • 6faa908733 And more corner cases Kovid Goyal 2022-09-15 20:35:05 +05:30
  • ced741b247 More corner cases Kovid Goyal 2022-09-15 20:21:42 +05:30
  • c47ccc8a59 ... Kovid Goyal 2022-09-15 19:46:51 +05:30
  • 3326e9ef49 Move code to walk with symlinks to the utils module Kovid Goyal 2022-09-15 19:45:47 +05:30
  • 134fce8507 Allow completing paths with ~ prefix Kovid Goyal 2022-09-15 19:42:21 +05:30
  • 5d89a6c3c4 Work on completion of file args Kovid Goyal 2022-09-15 18:43:52 +05:30
  • 833e9625f9 Add a generated comment in *_generated.go in the style used by go generate Kovid Goyal 2022-09-15 14:10:57 +05:30
  • 21b572d69a Allow building kitty-tool as a static binary Kovid Goyal 2022-09-15 13:54:22 +05:30
  • 12d9787d0e update go deps Kovid Goyal 2022-09-13 15:29:28 +05:30
  • 8c6b391eda ... Kovid Goyal 2022-09-13 08:10:44 +05:30
  • 8c2e435793 Code to complete executables in PATH Kovid Goyal 2022-09-09 20:56:16 +05:30
  • 10cf7f06c6 Code to get file/dir completion candidates for a prefix Kovid Goyal 2022-09-09 19:47:30 +05:30
  • 4575a14873 work on framework for testing completion Kovid Goyal 2022-09-09 15:34:07 +05:30
  • d679ea2cdf Allow generating completions for multiple command lines for more efficient testing Kovid Goyal 2022-09-09 15:17:34 +05:30
  • 54378de52b More work on command completion Kovid Goyal 2022-09-09 15:10:38 +05:30
  • 63287e4115 More work on completions Kovid Goyal 2022-09-07 10:55:07 +05:30
  • d0efe00449 Use replace_if_needed() for at commands Kovid Goyal 2022-09-06 18:51:23 +05:30
  • d703cb51cd ... Kovid Goyal 2022-09-06 13:25:46 +05:30
  • 005a9c7090 Add an entry point for the completion tool Kovid Goyal 2022-09-06 13:17:15 +05:30
  • f4de6d2a10 More work on completions Kovid Goyal 2022-09-05 21:43:16 +05:30
  • e60b331152 start work on porting completion to Go Kovid Goyal 2022-09-05 10:42:12 +05:30
  • 3d79eb5730 more tests for indent and wrap Kovid Goyal 2022-09-03 14:40:49 +05:30
  • af7f4e97cf More work on the new formatter Kovid Goyal 2022-09-03 10:56:48 +05:30
  • aad8cb3d1e Use the new formatter for CLI help output Kovid Goyal 2022-09-03 07:20:04 +05:30
  • 40a9ab8929 Allow ignoring lines containing a sentinel Kovid Goyal 2022-09-03 07:09:27 +05:30
  • e433b90297 Dont drop trailing escape codes when stripping trailing whitespace Kovid Goyal 2022-09-03 07:01:27 +05:30
  • 1ac7d9c10d Basic wrap is working Kovid Goyal 2022-09-02 23:18:33 +05:30
  • ef5f0025e1 Start work on more sophisticated indent+wrap implementation Kovid Goyal 2022-09-02 18:09:03 +05:30
  • 32804f01b2 Allow parsing strings with escape code parser Kovid Goyal 2022-09-02 16:29:28 +05:30
  • 7ecc1b7950 Remove markup from ref_hyperlink text Kovid Goyal 2022-09-02 16:28:50 +05:30
  • a7f6105393 Use Unsafe rather than Dangerous to be consistent Kovid Goyal 2022-09-02 13:34:48 +05:30
  • 081390b5a2 Utility functions to allow using string/[]byte interchangeably without copies Kovid Goyal 2022-09-02 13:30:52 +05:30
  • 61094c6bfb Add strikethrough formatting Kovid Goyal 2022-09-02 13:30:23 +05:30
  • 6672904e64 Fix spurious error message when setting image to none Kovid Goyal 2022-09-01 21:36:22 +05:30
  • 905c4d641c Allow using many image formats in RC commands Kovid Goyal 2022-09-01 21:31:31 +05:30
  • fa7a6dfd4a Implement stdin echo loop for socket i/o as well Kovid Goyal 2022-09-01 19:23:26 +05:30
  • cb452ba9fc Implement sen text from stdin for the tty backend Kovid Goyal 2022-09-01 18:58:35 +05:30
  • 85169c989f ... Kovid Goyal 2022-09-01 16:20:37 +05:30
  • e8a321d097 Port code to serialize key events as CSI to Go Kovid Goyal 2022-09-01 16:10:01 +05:30
  • 3a198833da Simplify escape code wrapping Kovid Goyal 2022-09-01 15:29:20 +05:30
  • ea8fb10c05 Password input: Handle SIGTSTP Kovid Goyal 2022-09-01 13:53:04 +05:30
  • 67115530b4 Make the loop API a thin wrapper around internal methods Kovid Goyal 2022-09-01 12:14:03 +05:30
  • 7325921070 Allow cancel async commands without auth Kovid Goyal 2022-09-01 11:32:15 +05:30
  • f86ce03d3b Fix set-colors Kovid Goyal 2022-09-01 09:54:40 +05:30
  • 5cf10023c9 Nicer API for setting loop options Kovid Goyal 2022-09-01 09:53:40 +05:30
  • 93d08011f1 ... Kovid Goyal 2022-08-31 22:21:26 +05:30
  • 7f77f7e408 Only send cancel async if there is an async id Kovid Goyal 2022-08-31 21:52:35 +05:30
  • 65c3630099 send_text other than from stdin works Kovid Goyal 2022-08-31 21:51:49 +05:30
  • 457aab7c41 Simplify timer removal Kovid Goyal 2022-08-31 21:37:43 +05:30
  • dcec926590 Do not allow adding timers before loop is run Kovid Goyal 2022-08-31 21:24:13 +05:30
  • 0a2455c8be Get scroll_window working Kovid Goyal 2022-08-31 20:58:22 +05:30
  • bacca88213 Get set_font_size working Kovid Goyal 2022-08-31 20:41:28 +05:30
  • bd1b3d9f6e Implement streaming mode for socket IO Kovid Goyal 2022-08-31 20:25:42 +05:30
  • 364533b1ed Work on supporting streaming remote commands with passwords Kovid Goyal 2022-08-31 20:03:51 +05:30
  • d7985689c9 Allow debugprintln to controlling tty easily Kovid Goyal 2022-08-31 19:48:02 +05:30
  • 6d6bba4a4c debugprintln should be in-band for the loop Kovid Goyal 2022-08-31 15:27:08 +05:30
  • 5cc5759f3e flush_pending_writes must be non-blocking Kovid Goyal 2022-08-31 15:25:30 +05:30
  • a388a658ce Fix payload update code in multi send commands Kovid Goyal 2022-08-31 10:09:55 +05:30
  • b5e2871aa0 Remove not needed chunking code Kovid Goyal 2022-08-30 21:36:43 +05:30
  • 192eccc6cc More work on porting rc commands Kovid Goyal 2022-08-30 21:05:31 +05:30
  • a4b2e2a196 more work on porting command parsing to Go Kovid Goyal 2022-08-30 20:30:25 +05:30
  • 6f4968305a more work on porting rc command parsing to Go Kovid Goyal 2022-08-30 15:49:26 +05:30
  • 79c8862d4c Work on conversion of args parsing to go code Kovid Goyal 2022-08-30 00:21:59 +05:30
  • 441e4edfb2 Also ensure kitty-tool bootstrap is executable Kovid Goyal 2022-08-29 18:25:09 +05:30
  • ef71b071db Automap a bunch of json fields from identically named options Kovid Goyal 2022-08-29 12:10:23 +05:30
  • b33a684357 ... Kovid Goyal 2022-08-29 10:52:38 +05:30
  • 43b35f6f4e Move GoOption migration code to cli.py for re-use Kovid Goyal 2022-08-29 10:43:33 +05:30
  • 3b2c4561c2 Dont change the env for go tests Kovid Goyal 2022-08-28 21:41:32 +05:30
  • e69b02ad46 ... Kovid Goyal 2022-08-28 21:13:54 +05:30
  • 85b6053380 Run go tests in parallel Kovid Goyal 2022-08-28 21:11:48 +05:30
  • 249df69ac9 Use the new styling API for CLI infra Kovid Goyal 2022-08-28 10:16:18 +05:30
  • 4a4500d56b Dont make urls part of styling, instead have a dedicated UrlFunc API Kovid Goyal 2022-08-28 10:12:35 +05:30
  • be22f49012 Fix usage of numbered colors for underlines Kovid Goyal 2022-08-28 09:50:19 +05:30
  • f9695a7947 Add url support to styling Kovid Goyal 2022-08-28 09:22:10 +05:30
  • 29d9b70f0c More ansi styling tests Kovid Goyal 2022-08-28 09:11:13 +05:30
  • 42a8ca0842 Write some tests for the style wrapper Kovid Goyal 2022-08-27 14:15:43 +05:30
  • 91c61478dd Start work on easily generating ANSI formatted strings Kovid Goyal 2022-08-27 13:40:48 +05:30
  • fb482e28f6 ... Kovid Goyal 2022-08-27 12:58:48 +05:30