Commit Graph

455 Commits

Author SHA1 Message Date
f08cac491c Use rune instead of byte when traversing strings 2023-02-05 02:13:42 +08:00
9062c24a7e Allow search strings to escape special chars ' ', ':' and '-' using '\' 2023-02-05 02:13:42 +08:00
226b39609f Cleanup TUI code now that we persist table entries in the model 2022-12-18 22:29:23 -08:00
9322614a91 Add shortcut to delete entries in the TUI to fix #33 2022-12-18 22:02:29 -08:00
554d518caa Persist history entries in the TUI model to prep for #33 2022-12-18 21:26:00 -08:00
c0bd577084 Add test to confirm that window resizing works 2022-12-18 01:01:05 -08:00
5f95ac48a4 Add control-d as an alternate key binding to close the TUI to fix #61 (plus some tests) 2022-12-18 00:27:29 -08:00
d15376f37d Refactor out deletion request handling to prep for #33 2022-12-18 00:19:52 -08:00
10c8b97e84 Add comment 2022-12-17 21:55:30 -08:00
2edbf3977f Add test for left scrolling in the input box 2022-12-17 12:14:28 -08:00
e6186d17b1 Fix TUI cursor bug by upgrading bubbles to include commit d1775121146a88a44a48562490cf08b7dd9df1c4 2022-12-17 11:54:51 -08:00
f8b51e49da Support customizing HISHTORY_PATH for people who want to install hishtory in an alternate location to fix #54 2022-12-16 22:22:57 -08:00
da35036aad Add emacs key bindings for up and down to fix #55 2022-12-16 21:20:00 -08:00
7c86b812bf Add support for linux arm64 for #48 2022-12-11 20:39:45 -08:00
233ca7ecd3 Treat TLS timeout as an offline error for #50 2022-12-10 09:43:02 -08:00
a481701cda Add TODO 2022-11-29 17:17:45 -08:00
35444bf56e Swap ioutil to non-deprecated alternatives + clean up pre-commit errors 2022-11-27 11:59:06 -08:00
369e7ec8ea Delete unused msg type 2022-11-27 09:03:12 -08:00
5249ee6709 Add better handling for invalid searches in the TUI + better error messages in a couple other places to improve #40 2022-11-27 08:54:34 -08:00
c603537137 Optimize the apiSubmit function to ensure that it doesn't lead to errors from large insertions 2022-11-26 10:31:43 -08:00
a390bacf89 Support multi-line commands from zsh to fix #34 2022-11-19 22:27:08 -08:00
f5adac5140 Move code out of lib that is only referenced for one command 2022-11-19 17:14:27 -08:00
ab6bb719a7 Move code out of lib that is only referenced for one command 2022-11-19 17:12:43 -08:00
d9c4a59ddd Move code out of lib that is only referenced for one command 2022-11-19 17:06:28 -08:00
f53e02731d Replace newlines with semicolons to fix #34 2022-11-17 23:20:11 -08:00
abcc0566d5 Fix action goldens for macos 2022-11-16 22:03:08 -08:00
ec830508ef Fix goldens for github actions 2022-11-16 22:00:23 -08:00
d4efc62df1 Add client-side code to ask for feedback when uninstalling 2022-11-16 21:54:05 -08:00
50dfa8ec5c Add missing new lines 2022-11-16 21:31:48 -08:00
303033ef1f Update golden for github action only failure 2022-11-16 20:47:21 -08:00
86f9d67aff Fix test failures caused by the cobra install command not respecting the secret key
Also added a persistLog() function so that I can easily inspect the hishtory logs from test runs.
2022-11-16 20:28:25 -08:00
fe6394d1b5 Some test fixes for the cobra integration 2022-11-16 08:03:23 -08:00
c59de42008 More refactoring to use cobra 2022-11-16 08:03:23 -08:00
342a02a843 Add initial cobra implementation for config-* 2022-11-16 08:03:23 -08:00
49a1035169 Fix flakey test failures by removing cache=shared which is a discouraged mode (https://www.sqlite.org/sharedcache.html). WAL is sufficient for our purposes. Plus fix a bug where the TUI would go into an infinite loop if there were zero results. 2022-11-15 23:20:19 -08:00
a18d444d09 Treat connect timeouts as network failures to fix #30 2022-11-14 16:29:55 -08:00
c36e147fae respect zdotdir to fix #29 2022-11-13 15:59:59 -08:00
3e2373d76e More fixes for github action failures + add link to where to file a bug 2022-11-13 06:42:37 -08:00
e6b1bfd589 Better failure messages for action only test failures 2022-11-13 06:35:03 -08:00
0cfb8249d9 More changes to make tests pass on github actions 2022-11-13 06:25:16 -08:00
86adcb64f6 Remove debug print 2022-11-12 18:46:14 -08:00
0abfefa80a Filter out pipefails in test outputs 2022-11-12 17:27:24 -08:00
0268554903 Rework history importing to ensure we read from HISTFILE exactly once and still always read the standard bash/zsh hist files 2022-11-12 16:39:21 -08:00
15abcd8d13 Strip history entries with zsh weirdness rather than skip them + ensure the hishtory import command runs a full re-import 2022-11-12 16:30:59 -08:00
e6fc09cc5d Remove debug logs 2022-11-12 16:08:39 -08:00
5b66943b9a Update isAction golden after last commit + remove shell:bash that was only needed for windows 2022-11-12 08:07:49 -08:00
1792e694b0 Make the timestamp command super long to force table sizing to be consistent + add an explicit HISHTORY_SKIP_INIT_IMPORT in the tests 2022-11-12 07:50:06 -08:00
8894328483 Remove incorrect new line in golden file 2022-11-12 07:03:19 -08:00
e485dfdaf6 Split the timestamp format test on is_action 2022-11-12 06:39:51 -08:00
6e7822ebae Attempt to fix github action only test failures 2022-11-12 06:18:05 -08:00