David Dworken
|
8443292070
|
Augment IsOfflineError(err) so that it detects if the hishtory server is down, and will then treat all API errors as offline errors
|
2023-09-23 16:40:03 -07:00 |
|
David Dworken
|
2490082088
|
no-op refactoring: Move history entry building code from lib.go to cmd file for saving history entries
|
2023-08-27 22:05:24 -07:00 |
|
David Dworken
|
25ec191f1a
|
Implement pre-saving feature to ensure that long-running/non-terminating commands are saved in hishtory
|
2023-08-27 14:24:59 -07:00 |
|
David Dworken
|
ff24b66fce
|
Fix unescape function per comments on #73 and add tests for searching for a backslash
|
2023-02-20 15:46:39 -08:00 |
|
David Dworken
|
f2298def32
|
Ignore a single dash as a token to improve search behavior for queries like 'ls -' to improve #67
|
2023-02-18 21:46:51 -08:00 |
|
David Dworken
|
2ae54ef74e
|
Simplify stripBackslash
|
2023-02-14 08:47:38 -08:00 |
|
David Dworken
|
a5926af49c
|
Unit tests for Search taking advantage of escaping
|
2023-02-13 22:32:42 -08:00 |
|
David Dworken
|
162dd86893
|
Add unit tests + rename method
|
2023-02-13 22:26:02 -08:00 |
|
David Dworken
|
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 |
|
David Dworken
|
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 |
|
David Dworken
|
c59de42008
|
More refactoring to use cobra
|
2022-11-16 08:03:23 -08:00 |
|
David Dworken
|
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 |
|
David Dworken
|
e6b1bfd589
|
Better failure messages for action only test failures
|
2022-11-13 06:35:03 -08:00 |
|
David Dworken
|
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 |
|
David Dworken
|
185d2739c7
|
Add offline mode for hiSHtory
|
2022-11-03 13:16:45 -07:00 |
|
David Dworken
|
1b460adb31
|
Fix build failure in lib_test
|
2022-11-01 12:15:35 -07:00 |
|
David Dworken
|
2efa93762a
|
Another attempt at getting github actions to pass
|
2022-11-01 11:03:49 -07:00 |
|
David Dworken
|
8a3969cfc4
|
Add basic untested ability to do searches using atoms containing custom columns
|
2022-11-01 10:23:35 -07:00 |
|
David Dworken
|
cdc5421a7b
|
Move testutils to a separate package so as to move test-only code out of the main binary
|
2022-10-27 21:53:47 -07:00 |
|
David Dworken
|
aa3f449885
|
Skip recording empty history commands
|
2022-10-23 15:40:30 -07:00 |
|
David Dworken
|
1aae1be8a6
|
Add more tests
|
2022-10-17 20:35:32 -07:00 |
|
David Dworken
|
9da18eb7d5
|
Chunk the uploads when reuploading to avoid having one giant request
|
2022-10-10 22:04:59 -07:00 |
|
David Dworken
|
6b29591eec
|
Re-add running the test server for some tests do actually sometimes need it
|
2022-09-27 22:25:14 -07:00 |
|
David Dworken
|
070f8cf3d3
|
Add more timestamp stripping tests
|
2022-09-27 22:07:54 -07:00 |
|
David Dworken
|
9a4e3a0a24
|
Add another time format test
|
2022-09-27 21:25:33 -07:00 |
|
David Dworken
|
bd70b68ffc
|
Remove test that no longer applies
|
2022-09-22 18:21:03 -07:00 |
|
David Dworken
|
ee6680f571
|
Remove debugging information and give up on that test, and add work around for weird zsh bug with importing
|
2022-09-22 18:09:51 -07:00 |
|
David Dworken
|
ceb1becfa6
|
Fix ctx wiring so installs work properly
|
2022-09-20 23:30:57 -07:00 |
|
David Dworken
|
694c2e2679
|
Untested: ctx wired through
|
2022-09-20 22:28:40 -07:00 |
|
David Dworken
|
e47bcfc993
|
Part way through migrating to context
|
2022-09-20 22:03:15 -07:00 |
|
David Dworken
|
d54bece705
|
Add HomeDirectory to HistoryEntry so we can query with or without ~/ in the cwd atom
|
2022-09-07 23:20:31 -07:00 |
|
David Dworken
|
b63cc313fd
|
Better timestamp stripping
|
2022-09-01 23:22:53 -07:00 |
|
David Dworken
|
e8f001c78b
|
Add basic support for stripping out HISTTIMEFORMAT prefixes
|
2022-06-12 21:28:19 -07:00 |
|
David Dworken
|
3f32891469
|
Revert "Half implement querying based on relative and non-relative paths"
This reverts commit af05d823fe . I will pick up work on this later.
|
2022-06-12 20:28:40 -07:00 |
|
David Dworken
|
af05d823fe
|
Half implement querying based on relative and non-relative paths
|
2022-06-12 20:28:33 -07:00 |
|
David Dworken
|
c79a510b9c
|
Maybe working xattr support for code signing
|
2022-04-25 22:03:31 -07:00 |
|
David Dworken
|
74caf87eda
|
Add basic xattr implementation (commiting to save it, about to delete most of it)
|
2022-04-25 21:42:28 -07:00 |
|
David Dworken
|
77f9ee707c
|
Fix date in both places :)
|
2022-04-18 22:50:26 -07:00 |
|
David Dworken
|
d6a142dfe7
|
Fix failing lib_test + add test for displaying the correct cwd in the table
|
2022-04-18 22:45:07 -07:00 |
|
David Dworken
|
aae18d44b9
|
Working basic zsh integration (with lots of failing tests that are currently getting skipped)
|
2022-04-17 19:54:17 -07:00 |
|
David Dworken
|
8259fc4e45
|
For some reason macos includes N at the end of ints, fix this
|
2022-04-17 11:09:30 -07:00 |
|
David Dworken
|
62a83b76b1
|
Add a test for displaying a table
|
2022-04-16 01:09:25 -07:00 |
|
David Dworken
|
a9af51f5b2
|
Improved tests
|
2022-04-16 00:56:08 -07:00 |
|
David Dworken
|
ab0d9d4c90
|
optimize test runtime by running a single server instance per-file rather than one per test
|
2022-04-15 11:20:23 -07:00 |
|
David Dworken
|
b09b725f49
|
Properly skip recording of commands prefixed with a space to match bash's history behavior
|
2022-04-15 00:04:49 -07:00 |
|
David Dworken
|
ac18b3d93e
|
more tests + some todos where I could add even more
|
2022-04-09 13:09:46 -07:00 |
|
David Dworken
|
b92087fc1d
|
Try again to fix timezone test
|
2022-04-09 12:57:58 -07:00 |
|
David Dworken
|
c8ba560e0c
|
handle github api rate limit, tests for the update command, and fix timezone bug in tests
|
2022-04-09 12:50:01 -07:00 |
|
David Dworken
|
e9d19eb782
|
fix hardcoded username in tests + another attempt at enabling bash job control + test that building docker containers works
|
2022-04-09 12:19:01 -07:00 |
|
David Dworken
|
c2465d7c99
|
refactored to move no longer shared things out of the shared/ folder
|
2022-04-07 21:05:58 -07:00 |
|