Commit graph

46 commits

Author SHA1 Message Date
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
Laurent Nullens 8c812812ee fix: *env.args.Shell not set in getShellName(cache never used)
*env.args.Shell was never set in getShellName.
2020-12-27 22:38:03 +01:00
Jan De Dobbeleer b427a0e8a4 refactor: cache shell name 2020-12-27 18:23:40 +01:00
Jan De Dobbeleer ed2eac8e12 feat: adjust source code layout 2020-12-25 20:11:24 +01:00
Renamed from environment.go (Browse further)