Commit Graph

2164 Commits

Author SHA1 Message Date
David Dworken
d8ef46367c Add tests for tab completions 2023-12-20 22:23:40 -08:00
David Dworken
9cbd6d8598
Increase test timeout since MacOS tests sometimes take more than 60 minutes 2023-12-20 20:02:06 -08:00
David Dworken
2b327f965a
Update to latest version of gotestsum from main rather than from my fork, now that my patch has been merged 2023-12-20 19:57:02 -08:00
David Dworken
fa7d6be54d Add basic validation using the published version of hishtory too 2023-12-20 19:41:21 -08:00
David Dworken
3ce76d154a
Add timestamp to testlog 2023-12-20 19:41:00 -08:00
David Dworken
fbe8e777a4
Remove unnecessary version checking now that multiple versions have been released 2023-12-20 16:43:54 -08:00
David Dworken
a2d8a1065b
Add TestLog call to help debug mysterious timeouts for certain fuzz tests 2023-12-20 16:25:41 -08:00
David Dworken
81081073a3
Add test log as an exported file from github actions 2023-12-20 15:02:16 -08:00
David Dworken
81733cd25c
Add additional assertions to make the checks stronger 2023-12-20 14:58:10 -08:00
David Dworken
b98b8cca52 Update test golden name to remove reference to BetaMode 2023-12-20 14:56:09 -08:00
David Dworken
8f8f4449bf Simplify tests for removing duplicate rows to avoid flaky failure caused by extra newline 2023-12-20 14:56:09 -08:00
David Dworken
5e415469d8 Remove extra scrolled color test since the color rendering seems flaky 2023-12-20 14:56:09 -08:00
David Dworken
4c89010874 Add extra colored assertion for removing duplicate rows to debug an interesting test failure for highlighting search matches 2023-12-20 14:56:09 -08:00
David Dworken
3c33513fa3 Improve logic for padding for highlighting search queries to fix off-by-one error that happens when there are no matches 2023-12-20 14:56:09 -08:00
David Dworken
9070b85f36 Revert "Revert "Enable highlighting of search matches by default for new installs (see #112)" because it breaks some tests"
This reverts commit a453a858b6.
2023-12-20 14:56:09 -08:00
David Dworken
f4ee4e7175
Make linux labeling more precise for AI completions 2023-12-19 20:54:56 -08:00
David Dworken
9b5a09f85e
Fix incorrect argument order 2023-12-19 20:51:02 -08:00
David Dworken
bf1bae4ff2 Add TODO 2023-12-19 20:50:29 -08:00
David Dworken
8fd809fdc8 Improve AI suggestions by specifying shell name and OS in OpenAI query 2023-12-19 20:50:29 -08:00
David Dworken
d3baf03dde Add TODO 2023-12-19 19:12:04 -08:00
David Dworken
054744248c Enable hishtory shell completions by default 2023-12-19 19:12:04 -08:00
David Dworken
8082bd5a2d Add support for single quotes in search queries, and add a heuristic to avoid consuming unclosed quotes 2023-12-19 19:09:21 -08:00
David Dworken
60f5a222c0
Add config-remove as an alias for config-delete 2023-12-19 15:03:55 -08:00
David Dworken
47d6581f64
Add gitignore for macos ds_store files 2023-12-19 10:47:35 -08:00
David Dworken
c735fee3d5
Add aliases for plural config options in case people type the singular version 2023-12-19 09:34:12 -08:00
David Dworken
e3b8545116
Update README to deprioritize hishtory query (since the TUI is better maintained these days) and to document updating the color scheme 2023-12-18 21:08:08 -08:00
David Dworken
d05ca081ee
Release v0.263 2023-12-18 20:56:46 -08:00
David Dworken
8b7e54eab4
Add support for configuring the TUI color scheme, for #134 (#146)
* Add support for configuring the TUI color scheme, for #134

* Add tests for getting and setting the custom color scheme, and support full colors where terminals support them

* Add comments to document termenv.ANSI setting, and fix tests so they work uniformly
2023-12-18 20:32:11 -08:00
David Dworken
49fd540014 Release v0.262 2023-12-13 08:18:47 -08:00
David Dworken
1b3fa944bd
Add support for quoted searchs for exact matches, for #135 (#145)
* Add support for quoted searchs for exact matches, for #135

* Add support for quoting search queries

* Fix spliteEscaped so that it works with escaping dashes and colons in search queries
2023-12-12 22:20:49 -08:00
David Dworken
1be8e2cb47
Add some extra assertions to test various config-get commands 2023-12-11 20:49:28 -08:00
David Dworken
6071306372
Release v0.261 2023-12-11 20:44:29 -08:00
David Dworken
559fac57f9
Fix bug that made config-get timestamp-format require an argument 2023-12-11 20:44:18 -08:00
David Dworken
f08377f7f7 Release v0.260 2023-12-10 13:40:23 -08:00
David Dworken
3a01e47701
Refactor: Move UsageData and Device to the backend/server directory since they are purely server-side constructs 2023-12-10 10:32:04 -08:00
David Dworken
7272ca8448
Delete data from backend when uninstalling, fixes #132 (#143) 2023-12-10 09:15:11 -08:00
David Dworken
3a49c9c11f
Make hishtory work with set -o nounset for bash and zsh, for #142 (#144) 2023-12-10 09:14:12 -08:00
David Dworken
0a81799609
Remove PR trigger for SLSA releaser, since it purposefully can't run on non-master branches 2023-12-09 15:53:05 -08:00
David Dworken
2d2c393bf9
Fix TUI code that tracked whether a search query is pending so it doesn't show the pending message when no query is pending 2023-12-09 15:51:04 -08:00
David Dworken
8419a883b4
Normalize hostnames in goldens so that golden files work well for local tests too 2023-12-09 15:12:40 -08:00
David Dworken
0a8879997f
Update .gitignore to ignore the server binary when it is in the root of the git directory 2023-12-09 15:10:20 -08:00
David Dworken
cc123854a0
Release v0.259 2023-12-06 20:46:34 -08:00
David Dworken
49daaa4da5
Update tests after #139 2023-12-06 20:46:19 -08:00
David Dworken
a26fc5b360
Add more special handling for extra tiny terminals (#140)
* Add more special handling for extra tiny terminals

* Add tests for extra compact terminals
2023-12-06 16:12:41 -08:00
David Dworken
3d6578c7f6
Add TODO for testing for #139 2023-12-05 21:44:39 -08:00
Ben
c8643d5a2b
Filter duplicates with map (#139)
The previous method of filtering duplicates only worked on duplicates that occurred consecutively. Since dupes happen out of order often, this switches the logic to instead use a map of seen commands and filter based on that.
2023-12-05 21:43:01 -08:00
David Dworken
be3ad76e68
Release v0.258 2023-12-03 21:59:24 -08:00
David Dworken
8b83e2bbb5
Improve vertical sizing for small terminals, fixes #137 (#138)
* Improve vertical sizing for small terminals, fixes #137

* Add tests for tiny terminals + update test goldens for tiny terminals after compact sizing
2023-12-03 21:56:45 -08:00
David Dworken
acdcd9569a
Fix error checking so that if /tmp/test-goldens/ exists, then we don't error out 2023-12-03 16:58:31 -08:00
David Dworken
f88e1d5b3b
Add dollar sign to fix github actions templating for outputs 2023-12-03 16:58:13 -08:00