Commit Graph

960 Commits

Author SHA1 Message Date
David Dworken
6aaf1cbe70
Fix import 2024-08-25 18:07:16 -07:00
David Dworken
6604c63b26
Merge branch 'master' into import 2024-08-25 18:06:21 -07:00
David Dworken
c8c1523683
Update test goldens + drop duplicate macos version from go tests 2024-08-25 16:04:55 -07:00
David Dworken
7bbd0cb036
Allow usage of OpenAI integration in offline mode for #220
Offline mode is more about disabling syncing, so it is reasonable to still allow AI completions if the user has explicitly turned it on.
2024-08-25 15:31:11 -07:00
David Dworken
24f69ca29d
Limit max number of log files kept for #219 -- So far we haven't had any use cases for historical logs for debugging, so this probably isn't needed 2024-08-25 15:16:09 -07:00
David Dworken
9b7d7c57b5
Update goldens for test broken by go update 2024-08-25 15:14:13 -07:00
David Dworken
904964e177
go get -u + fix build error 2024-08-25 14:39:57 -07:00
David Dworken
7a19b4defd
Upgrade to go1.23 and swap to using the new iters package 2024-08-25 12:24:19 -07:00
David Dworken
df6c853fdb
Merge branch 'master' into import 2024-08-25 11:58:18 -07:00
David Dworken
3875bddddc
Add ability to configure log-level and update many log lines to use the correct log level, fixes #211 #219 2024-08-25 11:50:46 -07:00
David Dworken
e8b2022746
Fix typo in error message 2024-08-18 21:55:24 -07:00
David Dworken
9abc3c59bf
Delete tmp file after hishtory upgrade to fix #227 2024-08-18 21:55:05 -07:00
Pavel Griaznov
decba84d9b
run "make fmt" (#233) 2024-08-18 14:12:55 -07:00
David Dworken
9c37c2722b
Add ability for the client to configure the model via an environment variable 2024-08-11 12:29:38 -07:00
David Dworken
023141761e
Update incorrect docs on ClientConfig struct 2024-08-11 12:29:38 -07:00
Pavel Griaznov
5056fb5527
ai: add some new env variables to control OpenAI requests (#231)
Co-authored-by: David Dworken <david@daviddworken.com>
2024-08-11 12:29:38 -07:00
David Dworken
cc65735b0e
Add test for forced compact mode (from #237) 2024-08-11 12:29:38 -07:00
David Dworken
02f6934d9d
Move checking of forced compact mode into helper functions to ensure it is checked everywhere (follow up to #237) 2024-08-11 12:29:38 -07:00
David Dworken
eb7af4b276
Add config-get compact-mode command (as needed by #237) 2024-08-11 12:29:38 -07:00
David Dworken
1948541b98
Change compact-mode setting that was added in #237 to respect the convention of taking in an argument 2024-08-11 12:29:38 -07:00
Pavel Griaznov
ad8775c334
add forceComapctMode config entry (#237) 2024-08-11 12:29:38 -07:00
David Dworken
9b8baa8274
Add more short column name alternatives similar to #228 2024-08-11 12:29:38 -07:00
Pavel Griaznov
637b2e160e
Add new short name for "ExitCode" - "$?" (#228) 2024-08-11 12:29:38 -07:00
Pavel Griaznov
39044e2f62
use http.DefaultClient (#232) 2024-08-11 12:29:38 -07:00
David Dworken
418f4ff3f9
Add integration test for #226 2024-08-11 12:29:38 -07:00
David Dworken
c2f5bd1a99
Add additional fallback method for retrieving the CWD to further improve the situation for #226 2024-08-11 12:29:38 -07:00
David Dworken
03363efbf6
Add basic fix for #225 by escaping tab characters before rendering
This is a tricky bug to fix because the width of a tab character varies depending on context. This means that when we're trying to build a table and calculating the width of columns for budgeting, we can't actually know the width of a tab without knowing exactly what characters come before it. This is in theory doable, but it leads to some really complex code that I'd rather not adopt.
2024-08-11 12:29:38 -07:00
David Dworken
c10afa40c3
Add ability to skip config modifications for #212 (#216)
* Add ability to skip config modifications

* Update golden names to fork on OS

* Remove incorrect newline in golden
2024-08-11 12:29:38 -07:00
David Dworken
ea25e4f981
Add full fix for #215 along with a test to reproduce the issue (#218) 2024-08-11 12:29:38 -07:00
David Dworken
6173de2dea
Fix duplicate pre-saving issue reported in #215 (#217) 2024-08-11 12:29:37 -07:00
David Dworken
f636649658
Revert "Fix duplicate pre-saving issue reported in #215"
This reverts commit 336b331687.
2024-08-11 12:29:37 -07:00
David Dworken
f0dbf02d63
Fix duplicate pre-saving issue reported in #215 2024-08-11 12:29:37 -07:00
guangwu
2b024c8054
fix: close file (#213) 2024-08-11 12:29:37 -07:00
David Dworken
ef12e998bb
Add support for enabling/disabling syncing post-install 2024-08-11 12:29:37 -07:00
David Dworken
a4c3afeb0f
Add support for custom key bindings for #190 (#209)
* Add support for custom key bindings for #190

* Add tests for configuring custom key bindings

* Simplify key bindings test

* Add docs on custom key bindings + error message for unhandled actions
2024-08-11 12:29:37 -07:00
David Dworken
5c6006d581
Remove darwin-21 goldens since they're no longer used now that GH upgraded their macos image (#210) 2024-08-11 12:29:37 -07:00
David Dworken
b4f4da5fef
Fix test broken by 7ae9f15b by making sure input is sent and processed as separate events and updating the golden to reflect this 2024-08-11 12:29:37 -07:00
David Dworken
dc627f09cd
Fix test broken by 7ae9f15b by making sure input is sent and processed as separate events 2024-08-11 12:29:37 -07:00
David Dworken
1def962555
Fix test broken by 7ae9f15b by making sure input is sent and processed as separate events 2024-08-11 12:29:37 -07:00
David Dworken
60cbb1976c
Fix double-syncing error where devices receive entries from themselves #202 (#204)
* Fix double-syncing error where devices receive entries from themselves

* Fix incorrect error message

* Add TODO

* Update TestESubmitThenQuery after making query more efficient

* Update TestDeletionRequests and remove unnecessary asserts

* Swap server_test.go to using require

* Fix incorrect require due to typo
2024-08-11 12:29:37 -07:00
David Dworken
e7b4395b16
Add --port flag for the web UI for #203 2024-08-11 12:29:37 -07:00
David Dworken
ca90ab65c9
Add index of start time so that queries with a LIMIT clause can avoid a full table scan (for #202) 2024-08-11 12:29:37 -07:00
David Dworken
5290f6dfb8
Add benchmarking for searching for #202 2024-08-11 12:29:37 -07:00
David Dworken
38ce0abd9a
Revert "Add mouse scrolling support for #200" since it breaks the ability to highlight text
This reverts commit 7d9bb6654d.
2024-08-11 12:29:37 -07:00
David Dworken
6c1054351f
Add mouse scrolling support for #200 2024-08-11 12:29:37 -07:00
David Dworken
a936644385
Clean up: Remove duplicated code by calling existing utility function 2024-08-11 12:29:37 -07:00
David Dworken
3589e8cf49
Add support for forcing init without prompting via --force flag for #198 2024-08-11 12:29:37 -07:00
David Dworken
68b3311a07
Add test for horizontal scrolling other columns for #188 2024-08-11 12:29:37 -07:00
David Dworken
8e7096cff8
Remove minor version numbers from os versions for golden files for tests 2024-08-11 12:29:37 -07:00
David Dworken
2b4be24789
Enable colored golden tests for linux (#184)
* Enable golden tests for linux and ensure all goldens get saved as outputs

* Swap in OS specific goldens

* Update colored goldens to take into account OS version, since different macos versions have different behavior here

* Update goldens

* Re-enable golden tests

* Add missing golden

* Empty commit

* Remove linux kernel version from OS name
2024-08-11 12:29:37 -07:00