Commit graph

53 commits

Author SHA1 Message Date
Will 0d079a4d8a
feat(brewfather): add segment 2021-12-15 07:49:32 +00:00
will 2ccaf90cbf refactor(winreg): make windows registry query function more general
simplify config definition, requires one prop to define path and key
add variant return type
add template-accessible query functions on the segment for advanced use
2021-12-12 20:25:02 +01:00
Khaos66 403bf12401 refactor: refactored ignoreErr func to return bool value 2021-12-11 14:49:04 +01:00
Khaos66 63b20f7e43 fix(battery): ignore UnknownChareRate error
This error is returned when Windows can't get the charge rate from the battery
2021-12-11 14:49:04 +01:00
Jan De Dobbeleer 4294351e6f revert(windows): force the use of .exe
This reverts commit f00f5f9cf7.
Resolves #1387
2021-12-08 13:46:29 +01:00
Jan De Dobbeleer f00f5f9cf7 fix(windows): force the use of .exe
resolves #1369
2021-12-03 22:01:44 +01:00
Jan De Dobbeleer 17751107a8 feat(windows): registry query segment 2021-11-24 14:24:02 +01:00
Jan De Dobbeleer c5fb63885f refactor(cache): add correct unit indication 2021-11-23 11:17:37 +01:00
lnu 25be370618 feat(sysinfo): sysinfo segment
cpu, mem, load, ...
2021-11-19 13:44:00 +01:00
Jan De Dobbeleer 4f39b68d96 refactor: remove trace struct 2021-11-17 07:19:43 +01:00
Jan De Dobbeleer e0513e95b0 refactor: provide log output directly on debug 2021-11-17 07:19:43 +01:00
Jan De Dobbeleer 274f800ae2 chore: better logging for command output 2021-11-10 20:15:28 +01:00
George Schizas a01f4faa1e fix(windows): consistent casing for drive and only drive letters
resolves #1173
2021-11-05 19:33:54 +01:00
Jan De Dobbeleer 94b743c43d feat: environment error logging
relates to #1085
2021-10-20 13:17:10 +02:00
Jan De Dobbeleer a118e178b5 feat(cache): set cache directory correctly
resolves #1017
2021-10-03 10:47:44 +02:00
Jan De Dobbeleer e846f2b683 chore: add mocked cache 2021-09-23 23:03:46 +02:00
Jan De Dobbeleer 7738cad7cb feat(cache): add timestamp 2021-09-23 23:03:46 +02:00
Jan De Dobbeleer 7d2001c936 feat: cache capabilities 2021-09-23 23:03:46 +02:00
Jan De Dobbeleer 8d35689170 refactor: split concurrent map from cache implementation 2021-09-23 23:03:46 +02:00
Jan De Dobbeleer b2515650c1 fix(battery): map battery behavior before returning 2021-09-20 07:19:01 +02:00
Jan De Dobbeleer f7de8aed27 fix: support for windows arm64 2021-09-14 18:49:29 +02:00
Laurent Nullens bb246377ce
feat(git): display worktree count
resolves #913
2021-09-04 18:32:55 +00:00
lnu e618163da3 feat(owm): support all units + hyperlink + http timeout
new http_timeout param for segments executing http request
doc updated
json schema updated(missing data for owm + timeout)
hyperlink replacement regex updated to support http/https, fix an inssue
when a segment with hyperlink was on the right prompt(pwsh)
2021-08-19 09:04:52 +02:00
Jan De Dobbeleer f6c79050d0 fix: run commands faster 2021-08-10 06:27:50 +02:00
Jan De Dobbeleer 9e8a7182b6 refactor: better log output 2021-08-10 06:27:50 +02:00
Jan De Dobbeleer 073f18f53a feat(debug): trace system calls to log file 2021-08-01 15:34:07 +02:00
Jan De Dobbeleer b9906b2f7a feat: hide rprompt when the prompt is too large
relates to #715
2021-05-23 07:28:10 +02:00
Jan De Dobbeleer 5e9b04ae2f revert: hide rprompt when the prompt is too large
This reverts commit a8d4e51d54.
2021-05-22 21:20:54 +02:00
Jan De Dobbeleer a8d4e51d54 feat: hide rprompt when the prompt is too large
relates to #715
2021-05-22 20:25:43 +02:00
Jan De Dobbeleer 4030c32279 feat: add dart support 2021-05-14 21:28:16 +02:00
gitolicious 52b66d1e5b
feat: add OS template property 2021-04-24 19:31:56 +00:00
Jan De Dobbeleer 92a2f740e9 refactor: move battery logic to segment 2021-04-16 07:54:05 +02:00
lnu b9601b632a feat: show/hide stack count in path segment 2021-04-12 22:25:01 +02:00
Jan De Dobbeleer 90680f2c70 fix(battery): hide segment when no batteries
resolves #633
2021-04-12 19:17:58 +02:00
Jan De Dobbeleer ee93191aac fix(battery): count all battery information 2021-04-11 15:27:20 +02:00
lnu 3269a47ee7 feat: use RWMutex for map access 2021-03-01 07:11:01 +01:00
lnu 6add3bf2a0 fix: avoid error when duplicating wsl tab
use same osc escape code everywhere

detect wsl using env variable
2021-02-15 09:14:17 +01:00
Jan De Dobbeleer b830ae662a revert: use concurrent map for command caching
This reverts commit 509309c412.

resolves #394
2021-02-11 17:11:02 +01:00
Jan De Dobbeleer 509309c412 fix: use concurrent map for command caching
relates to #333
2021-01-29 19:31:00 +01:00
lnu 31c77af58f fix: convert exitErr to commandError if runCommand fails
exitError must not exit the runCommand helper, only commandError
safety check when casting in segment_language
2021-01-15 09:17:07 +01:00
lnu b1e2a52a04 fix: lock around shared map write 2021-01-10 12:17:01 +01:00
Jan De Dobbeleer 667151fe28 refactor: remove additional git calls 2021-01-08 20:59:11 +01:00
Jan De Dobbeleer 5d6d64508d refactor: fetch git enabled context via path 2021-01-08 20:59:11 +01:00
Jan De Dobbeleer c2bc901a41 refactor: command caching without leaking 2021-01-08 20:59:11 +01:00
Jan De Dobbeleer 836763c002 refactor: run commands natively 2021-01-08 20:59:11 +01:00
lnu abfbb27765 fix: don't check language version in Enabled()
fix: align dotnet segment with other languages
feat: missing command text + json schema updated
chore: doc updated
perf: cache executable path
chore: not supported version icon updated(previus one was unreadable)
2020-12-31 16:59:13 +01:00
Jan De Dobbeleer d9d2430ae9 fix: wait for command to complete
without wait(), the *ProcessState is nil, meaning we can't access
the ExitCode(). On Windows, calling wait() introduces a timeout
which makes things run slower, which is why we only call wait()
in case of an error. That should not be the main use-case.

relates to #285
2020-12-31 13:29:42 +01:00
Jan De Dobbeleer 4c771d3e15 fix: add timeout to http requests
this caused a serious delay on windows
2020-12-31 09:47:32 +01:00
Jan De Dobbeleer 5fa33f4c4f fix: use commandError on cmd failure
relates to #285
2020-12-31 09:06:13 +01:00
Jan De Dobbeleer e0a4482d4b fix: parse error message when running command 2020-12-30 20:10:42 +01:00