Jan De Dobbeleer
5d1cd6209a
fix(pwsh): force console to UTF-8 from module
2021-12-27 13:39:43 +01:00
Jan De Dobbeleer
3c40c04d36
feat: deprecate envvar segment
...
favors text in a more generic way
2021-12-26 19:46:28 +01:00
Khaos
ce04362bb4
feat(wifi): read wifi state using native methods
2021-12-26 17:17:44 +01:00
lnu
393f99da93
fix(git): submodules support
2021-12-24 16:13:25 +01:00
Robbert Verbruggen
b245398661
feat(ipify): segment to show your external IP address
...
closes #1492
2021-12-23 15:56:27 +01:00
lnu
77993158e2
fix(git): use the right git executable for WSL
...
git executable detection
path conversion when needed
2021-12-23 10:48:54 +01:00
Jan De Dobbeleer
62b2a5cb16
fix(pwsh): do not trim paths
...
resolves #1477
2021-12-22 14:46:51 +01:00
Jan De Dobbeleer
d3e638e067
fix(git): use actual path instead of empty -C operator
...
relates to #1474
2021-12-21 20:35:17 +01:00
Jan De Dobbeleer
b400f05555
refactor: undo specific cmd invocation
2021-12-21 20:35:17 +01:00
memcpy-rand-rand-rand
0b4f3e1771
feat(brewfather): unit conversion routines
...
functions available to template
documentation
tests
2021-12-20 18:42:44 +01:00
Jan De Dobbeleer
a88036fc69
perf: avoid InBounds checks
2021-12-18 20:18:54 +01:00
Jan De Dobbeleer
7805ee1a27
feat(path): add template
2021-12-17 22:52:17 +01:00
Jan De Dobbeleer
9edd53e679
fix(kubectl): parse yaml instead of csv
...
closes #1439
2021-12-17 22:52:17 +01:00
Jan De Dobbeleer
181d906e8a
fix(debug): render powerline correctly
2021-12-17 12:22:14 +01:00
Jan De Dobbeleer
2fddfa1716
fix: do not print empty powerline symbol
...
relates to #1433
2021-12-17 12:22:14 +01:00
Jan De Dobbeleer
9ae5217a97
fix(bash): do not provide pwd
...
resolves #1441
2021-12-16 20:06:14 +01:00
Jan De Dobbeleer
1282cb24d8
refactor: cleaner segment render logic
2021-12-16 19:57:24 +01:00
Jan De Dobbeleer
df78bad3b5
feat: expand parent colors
2021-12-16 19:57:24 +01:00
Jan De Dobbeleer
e8f9bb20b0
fix: loop colors correctly
2021-12-16 19:57:24 +01:00
memcpy-rand-rand-rand
89ece8d68a
feat(brewfather): new fields, fixes
...
add batch fields
update doc with new fields and fix ref to .DefaultString
complete schema definition
2021-12-16 16:16:48 +01:00
Jan De Dobbeleer
31d088d56a
fix(kubectl): validate array length before indexing values
...
relates to #1439
2021-12-15 19:26:23 +01:00
Will
0d079a4d8a
feat(brewfather): add segment
2021-12-15 07:49:32 +00:00
Jan De Dobbeleer
a595278f5f
fix(cygwin): get correct path
2021-12-14 22:11:05 +01:00
Jan De Dobbeleer
af112277a8
feat(go): parse go.mod file for version
2021-12-14 09:42:30 +01:00
Jan De Dobbeleer
84e3bea1ea
fix(git): include al untracked files
...
relates to #1422
2021-12-13 17:40:41 +01:00
Jan De Dobbeleer
78f9a3e3c6
fix(git): add untracked to status
...
resolves #1422
2021-12-13 14:00:28 +01:00
lnu
fe3bab8e8a
fix(yaml): try int parsing before fallback
...
json and yaml returns 2 different types
float64 vs int
2021-12-13 13:26:29 +01:00
Jan De Dobbeleer
b8e8eddd01
fix: remove map cache
2021-12-13 12:15:04 +01:00
Khaos66
0fb5951375
feat(wakatime): add segment
2021-12-13 11:58:54 +01: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
Khaos
457f439a9f
feat(plastic): add Plastic SCM segment
...
* feat(plastic): added Plastic SCM segment
* refactor(plastic): polished new Plastic SCM segment
* refactor: moved common scm segment code into base type
git and plastic share some common methods and status properties. So moving them in a base type keeps the code base DRY
* doc(plastic): Added docs for manual testing Plastic SCM
* fix(plastic): Show files with merge conflicts as unmerged
* fix(plastic): adhere to empty string check guidelines
* fix(plastic): fixed linter errors
* fix(pwsh): alert when we can't download dependencies
resolves #1382
* refactor(plastic): polished new Plastic SCM segment
* refactor: moved common scm segment code into base type
git and plastic share some common methods and status properties
* docs(plastic): added docs for manual testing Plastic SCM
* fix(plastic): show files with merge conflicts as unmerged
* fix(plastic): adhere to empty string check guidelines
* fix(plastic): fixed linter errors
Co-authored-by: Jan De Dobbeleer <jan.de.dobbeleer@gmail.com>
Co-authored-by: Jan De Dobbeleer <2492783+JanDeDobbeleer@users.noreply.github.com>
2021-12-11 22:08:47 +01:00
Jan De Dobbeleer
d52f917782
feat(path): agnoster left
...
resolves #1411
2021-12-11 20:40:32 +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
Laurent Nullens
c67148670c
fix(git): worktree folder init
2021-12-09 15:13:47 +00:00
lnu
d3c3dea1d7
feat(language): parameter for version detection
...
applied to angular segment to read version from package.json
2021-12-09 16:01:10 +01:00
Jan De Dobbeleer
d9e642a132
fix(git): initialize status correctly
2021-12-08 14:53:41 +01:00
Jan De Dobbeleer
930fc2bfcc
refactor(git): branch status as setter
2021-12-08 13:46:29 +01:00
Jan De Dobbeleer
04f841d1b3
fix(git): initialize status correctly
2021-12-08 13:46:29 +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
75eb09e6dc
fix(color): do not fail on nil colors
...
resolves #1388
2021-12-08 13:46:29 +01:00
Jan De Dobbeleer
98472abafc
feat(git): better logic
2021-12-08 13:46:29 +01:00
Jan De Dobbeleer
796ec4125d
feat(node): templating support
...
resolves #1253
2021-12-04 13:13:05 +01:00
Jan De Dobbeleer
29afb86e61
feat(python): virtual env in template
2021-12-04 13:13:05 +01:00
Jan De Dobbeleer
f495a7093a
feat(language): add error text to template properties
2021-12-04 13:13:05 +01:00
Jan De Dobbeleer
e866c6bf76
feat(python): add virtual env name to template properties
2021-12-04 13:13:05 +01:00
Jan De Dobbeleer
39a27b29ad
refactor(session): deprecate ssh_icon
2021-12-04 13:13:05 +01:00
Jan De Dobbeleer
a08a3a9a21
feat(session): refactor for template
2021-12-03 23:50:50 +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
3a4e21c36d
docs(language): template properties
2021-12-03 22:01:44 +01:00
Jan De Dobbeleer
a24786b97d
feat(language): expose version info
2021-12-03 20:27:29 +01:00
Jan De Dobbeleer
7b5572e73c
fix: create properties when nil
...
resolves #1366
2021-12-03 12:22:22 +01:00
Jan De Dobbeleer
6b02ae47f7
feat: sign releases with cosign
2021-12-02 22:53:04 +01:00
Jan De Dobbeleer
06258dc256
fix(pwsh): allow powershell 5 init
2021-12-01 19:30:35 +01:00
Jan De Dobbeleer
7fae781fff
feat: fish rprompt
...
resolves #1356
2021-12-01 19:22:11 +01:00
Jan De Dobbeleer
853219d0c5
refactor: rename to test
2021-12-01 18:54:00 +01:00
Jan De Dobbeleer
7b4333ae77
feat: smaller binaries
2021-11-30 21:14:08 +01:00
memcpy-rand-rand-rand
d87b147544
feat(winreg): adjust return logic in enabled
2021-11-29 16:22:03 +01:00
will
18570c9cd0
feat(winreg): squashed commits
2021-11-29 16:22:03 +01:00
Jan De Dobbeleer
a2be3faefe
refactor: display themes function in PowerShell
2021-11-28 15:24:48 +01:00
Jan De Dobbeleer
a357becb85
feat: pwsh module as install facilitator
2021-11-28 15:24:48 +01:00
Jan De Dobbeleer
337ed4a155
refactor: align POSH_THEME cross shell
2021-11-27 13:39:40 +01:00
Stefan Hacker
7a73bcff0b
feat: enable kubectl segment to read kubeconfig
...
This extends the kubectl segment to optionally not rely on the
kubectl command and instead to directly parse kubeconfig files like
kubectl does. This is meant as a performance optimization similar
to how the git segment can determine the current branch itself
without calling to git. Especially on Windows and in the presence
other factors slowing process creation like like AntiVirus this
can make shells using the segment considerably more responsive.
The functionality is enabled using the new parse_kubeconfig prop.
It defaults to false to prevent breaking existing users in case
there are any unanticipated behavioral changes.
Additionally the new template properties Cluster and User were
added as they are easily available and helpful in kubectl
setups with more elaborate configuration.
2021-11-26 18:22:40 +01:00
Jan De Dobbeleer
900f5bc672
chore(go): remove unused dependency
2021-11-26 14:25:20 +01:00
Jan De Dobbeleer
c30901ba81
chore(go): update dependencies
2021-11-26 14:25:20 +01:00
lnu
435e362256
feat(language): add configurable extensions
2021-11-26 13:09:02 +01:00
Jan De Dobbeleer
09df670e07
refactor: use properties as map type
2021-11-26 11:11:07 +01:00
Jan De Dobbeleer
e8a4fa19b7
fix(git): do not use git.exe on WSL 1
2021-11-25 14:28:18 +01:00
Jan De Dobbeleer
b94e96dd15
refactor(battery): remove legacy properties
2021-11-25 13:59:36 +01:00
Jan De Dobbeleer
fa38b516b1
refactor(battery): use struct inheritance
2021-11-25 13:59:36 +01:00
Jan De Dobbeleer
5b5666b5b0
feat: add go-releaser
2021-11-25 10:58:30 +01:00
Jan De Dobbeleer
4cbb3e6cf3
fix(winreg): fallback value on error or empty
2021-11-25 09:31:18 +01:00
Jan De Dobbeleer
30c82c2f56
chore(nightscout): add all object properties
2021-11-25 09:00:59 +01:00
Jan De Dobbeleer
1075b82e10
fix(nightscape): do not fail on empty array
2021-11-25 09:00:59 +01:00
Jan De Dobbeleer
30ea89a45b
refactor: inherit struct
2021-11-24 14:28:32 +01:00
Jan De Dobbeleer
17751107a8
feat(windows): registry query segment
2021-11-24 14:24:02 +01:00
Mike Sigsworth
4a68c444c6
feat(wifi): added wifi segment for windows and wsl
2021-11-24 11:31:43 +01:00
Scott Hanselman
fd81f4a00c
feat: nightscout segment
2021-11-24 11:05:06 +01:00
Jan De Dobbeleer
c5fb63885f
refactor(cache): add correct unit indication
2021-11-23 11:17:37 +01:00
Jan De Dobbeleer
ea35416363
fix(palette): create AnsiColors on plain block init
2021-11-22 22:08:21 +01:00
Yehor Borkov
9ecd7c09a4
feat(palette): a map of named color values
...
introducing a map of named standard color
values that can be referenced in theme segments
2021-11-22 15:25:56 +01:00
Laurent Nullens
a71d1f7454
feat(terraform): use template
2021-11-20 10:14:26 +00:00
lnu
25be370618
feat(sysinfo): sysinfo segment
...
cpu, mem, load, ...
2021-11-19 13:44:00 +01:00
Jan De Dobbeleer
2c1d5cf6e4
fix(cmd): allow all types of path separators
2021-11-19 08:52:38 +01:00
Jan De Dobbeleer
79c5ad845f
feat(cmd): transient prompt
2021-11-19 00:08:17 +01:00
Jan De Dobbeleer
5ddb0d8896
feat(cmd): add tooltip functionality
2021-11-19 00:08:17 +01:00
Ted Ballou
bcdfb8180b
feat(git): add symbol to the branch name when truncating
2021-11-18 19:58:57 +01:00
Jan De Dobbeleer
14bd8b0f29
chore: show total duration in debug
2021-11-17 08:29:17 +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
8837c127ed
chore: ask debug log for bug report
2021-11-17 07:19:43 +01:00
Jan De Dobbeleer
b1b7576a90
chore: show version and log on debug
2021-11-17 07:19:43 +01:00
Jan De Dobbeleer
10d8f5a013
fix: use reference colors in transient prompt
2021-11-16 00:31:06 +01:00
Jan De Dobbeleer
290b1a3d8c
fix(envvar): use template for string value
2021-11-15 13:28:53 +01:00
Jan De Dobbeleer
6eb9a2e492
fix(image): remove braille blank before export
2021-11-15 13:12:18 +01:00
Jan De Dobbeleer
f850f3b805
feat(exit): add template properties
2021-11-15 11:39:34 +01:00
Jan De Dobbeleer
f5aeed466e
feat(executiontime): add template properties
2021-11-15 11:39:34 +01:00
Jan De Dobbeleer
2040771190
feat(env): add template properties
2021-11-15 11:39:34 +01:00
Mansur
c1bc4404e0
fix: node segment enable_version_mismatch
2021-11-15 10:35:45 +00:00
Jan De Dobbeleer
2a44dca898
fix(cmd): only call supported lua functions
2021-11-13 21:24:52 +01:00
Jan De Dobbeleer
b3371136c7
feat(cmd): support Windows CMD
2021-11-13 19:41:42 +01:00
Jan De Dobbeleer
1d192d63d8
feat: render rprompt separately
2021-11-13 19:41:42 +01:00
Laurent Nullens
2733865edf
fix(git): read real worktree folder from gitdir
2021-11-12 07:59:03 +00:00
Jan De Dobbeleer
18a3b82dd1
fix: add stack trace when errors happen in segments
...
relates to #1182
2021-11-12 08:42:28 +01:00
Jan De Dobbeleer
ae9fb25db6
revert: fetch info from the working directory
...
This reverts commit cb17bb914a
.
2021-11-11 08:48:45 +01:00
Jan De Dobbeleer
1866adfb88
fix: feed PWD to cli for init
...
relates to #1207
2021-11-10 20:45:27 +01:00
Jan De Dobbeleer
d3ab141cd5
fix: set active colors in debug
2021-11-10 20:15:28 +01:00
Jan De Dobbeleer
2d3b6e4e23
fix(java): support Zulu builds
...
resolves #1202
2021-11-10 20:15:28 +01:00
Jan De Dobbeleer
274f800ae2
chore: better logging for command output
2021-11-10 20:15:28 +01:00
Jan De Dobbeleer
35e0a6d42c
fix(az): allow color templates
2021-11-09 19:57:05 +01:00
Jan De Dobbeleer
2d25c59c00
fix(git): remove Repo struct
2021-11-09 17:16:37 +01:00
Jan De Dobbeleer
cb17bb914a
fix: fetch info from the working directory
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
bf16671587
refactor(git): add upstream icons
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
114cda474a
fix(git): fetch detailed information when enabled
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
d1ff9a96ce
refactor: deprecate display_branch_status
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
0fbc8910bd
chore: adjust powerline symbol to glyph
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
ef3b620513
docs(git): correct property definitions
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
1402dcbcfe
refactor(git): rename properties to fetch
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
42f18697fd
refactor(git): move deprecated functions
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
3f8400e8f1
refactor(git): add branch status to template
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
4dbed1176c
refactor(git): add upstream icon to repo
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
f8fa3ae8af
refactor(git): allow status in template
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
64b63be4d2
refactor(git): add template capabilities
2021-11-09 13:26:59 +01:00
Laurent Nullens
93afdca084
feat(dotnet): template + semver regex
2021-11-07 18:55:22 +00:00
Jan De Dobbeleer
9323f89704
feat(color): allow override from parent
...
BREAKING CHANGE: this removes the inherit keyword used in color
overrides. Migration from inherit to parentBackground or
parentForeground is needed to stay compatible.
2021-11-06 13:29:31 +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
8b20d8fd81
feat: plain text prompt
...
resolves #1142
2021-11-05 09:09:17 +01:00
Jan De Dobbeleer
aa94042bd5
refactor: rename prompt writer
2021-11-05 09:09:17 +01:00
lnu
67ce40e7d7
feat(owm): add template support
2021-11-03 11:07:36 +02:00
Aaron Sherber
97774fe66b
fix(pwsh): fix remove-variable statements
2021-11-02 08:13:22 +02:00
Jan De Dobbeleer
d328c81932
fix(pwsh): rename general variables
...
resolves #1148
2021-11-01 23:57:25 +02:00
Jan De Dobbeleer
3a1cbb904c
fix: clear parent colors after block rendering
...
relates to #1137
2021-10-30 11:48:31 +02:00
lnu
1b29ae136d
fix: wrong background for powerline in some cases
...
activeBackground color is wrong when a diamong segment follows a
powerline segment.
2021-10-29 19:00:44 +02:00
Jan De Dobbeleer
3c3da5e9df
chore(pwsh): warm user we're unable to set the console to UTF-8
...
relates to #1100
2021-10-28 11:42:37 +02:00
Jan De Dobbeleer
dbee7edde7
fix(pwsh): set env vars in restricted mode
...
resolves #1100
2021-10-28 11:42:37 +02:00
lnu
9f80243b1e
feat(php): extensions added + doc updated
2021-10-27 18:22:23 +02:00
lnu
42aac1fbf4
feat: php language segment
2021-10-27 12:57:15 +02:00
Jan De Dobbeleer
8702098032
fix(azfunc): ignore newline in version
...
resolves #1108
2021-10-26 20:56:19 +02:00
Jan De Dobbeleer
d84b92ef13
feat(colors): current color override
...
relates to #1099
2021-10-25 19:28:08 +02:00
Jan De Dobbeleer
7e5b9fa725
feat(python): default to home enabled and environment
...
resolves #1104
2021-10-24 19:07:29 +02:00
Jan De Dobbeleer
eca24bebcc
fix: inherit Transparent when no parent
2021-10-24 19:07:29 +02:00
Jan De Dobbeleer
631aace7a8
fix(git): cache command on windows
2021-10-20 22:27:07 +02:00
Jan De Dobbeleer
cdc2998ed8
feat(git): ignore repo based on exclude_folders
2021-10-20 17:12:29 +02:00
Jan De Dobbeleer
a30cbf95c0
chore: update dependencies
2021-10-20 14:07:26 +02:00
Jan De Dobbeleer
94b743c43d
feat: environment error logging
...
relates to #1085
2021-10-20 13:17:10 +02:00
Jan De Dobbeleer
7e9247b56e
fix(bash): ignore null byte in input
...
resolves #1083
2021-10-19 21:11:29 +02:00
Thomas Adams
f08c283105
feat: angular cli segment
2021-10-17 13:30:55 +02:00
Alex
da1bb46a94
fix(path): correctly handle replaced paths for letter style
2021-10-17 13:06:16 +02:00
Laurent Nullens
e3c069e5e6
feat(dotnet): display segment extensions updated
...
display segment when global.json exists
2021-10-13 17:05:46 +02:00
bewing
b8d3f5781c
fix(wsl): spotify support
...
If we are in a WSL environment and tasklist.exe is in our PATH, leverage
it to scan for the Spotify.exe window title. Add unit tests and a new
mock for env.isWSL
2021-10-11 09:02:51 +02:00
Jan De Dobbeleer
f64a8fa51a
fix: escape path with spaces for config file
2021-10-11 07:02:20 +02:00
Jan De Dobbeleer
609a534d73
fix: escape executable path on zsh and bash
...
resolves #1031
2021-10-10 09:33:45 +02:00
Jan De Dobbeleer
d0816773a5
fix(text): disable when text resolves to empty
2021-10-06 21:55:40 +02:00
Jan De Dobbeleer
1cff56a709
refactor: do not write empty cache list
2021-10-03 10:47:44 +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
1f3127cdb1
fix(fish): cache status code
...
resolves #1013
2021-10-03 07:01:49 +02:00
lnu
f67ee8e609
fix(path): display root path icon when using agnoster
2021-09-30 12:18:49 +02:00
Jan De Dobbeleer
44b970fc02
chore: remove comments
2021-09-28 20:23:44 +02:00
Jan De Dobbeleer
36c318a02a
fix: set correct color for diamonds on inheritance
2021-09-28 20:23:44 +02:00
Jan De Dobbeleer
3d4b3c891c
fix: do not print invisible text
2021-09-28 20:23:44 +02:00
lnu
4bf820b10f
fix: set shell in Export-PoshImage
...
When the shell is not set, some ansi characters are added at the end of the prompt
fix #980
2021-09-26 09:46:01 +02:00
Jan De Dobbeleer
0bbc26d635
fix: inherit parent colors in override
2021-09-25 20:52:20 +02:00
Jan De Dobbeleer
b3f537cb76
refactor: color logic performance
2021-09-25 11:25:04 +02:00
Jan De Dobbeleer
0e26aa2ace
feat: inherit colors between segments
2021-09-24 19:41:11 +02:00
lnu
95f776a8ed
fix(owm): cache also the url used to get the data
...
The url is used after do generate the hyperlink
2021-09-24 14:51:12 +02:00
Jan De Dobbeleer
57174b6424
refactor(owm): rename properties
2021-09-24 08:06:20 +02:00
Jan De Dobbeleer
aa5a235953
fix(pwsh): validate correct AZ context object
2021-09-24 08:06:20 +02:00
lnu
ba71a4a16d
fix: cache_timeout mismatch + variable naming + schema.json
2021-09-24 07:32:57 +02:00
lnu
6097d2d357
feat(owm): response caching added
...
default timeout of 10 minutes. A value of 0 disables the cache.
Original concept by boarder2
2021-09-24 07:32:57 +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
Nick Craver
4bcef332a5
fix: os fonts in theme renders
...
There's a bug in the wiki ranges that I noticed in the
final Ubuntu renders cutting off the Ubuntu logo,
this should resolve it.
Issue filed on nerd fonts to fix the wiki here:
ryanoasis/nerd-fonts#667
2021-09-21 20:11:38 +02:00
Aaron Sherber
7e4865779a
feat: flexible matching for include/exclude folders
2021-09-21 06:31:50 +02:00
Jan De Dobbeleer
b2515650c1
fix(battery): map battery behavior before returning
2021-09-20 07:19:01 +02:00
Aaron Sherber
5db251ce53
feat(path): flexible matching for mapped-locations
2021-09-18 22:03:00 +02:00
Jan De Dobbeleer
e1be81e658
fix(battery): skip nil value batteries
2021-09-18 20:09:11 +02:00
Jan De Dobbeleer
3f2b89f475
fix(windows): get console width correctly
2021-09-18 20:03:02 +02:00
Nick Craver
e27d34a1cb
feat: improved theme png rendering
...
* feat: improved theme png rendering
Overall this improves glyph rendering in the theme PNGs for docs.
Changes:
- Replaces VictorMono with latest Hack nerd font
- When calculating overall width, count glyphs as double wide
- When rendering a glyph, allow ~1.7x space (this seemed right testing many)
I hope this is a net improvement that helps theme renders be a bit more accurate and shine!
* move to 2x for overall width expansion
1.7 introduces some odd offset problems with some backgrounds - 2x is stable.
* Based on data from:
https://github.com/ryanoasis/nerd-fonts/wiki/Glyph-Sets-and-Code-Points
...checking those points for nerd font glyphs in play
I'm unfamiliar with Go here and maybe there's a better way to implement,
but the results are much improved.
* tweak ranges and bg position for font diff
* exclude pixelated (e0c4-e0c7) from doube-width
* simplify cyclomatic complexity
Go checks were unhappy - this isn't a hot path so breaking it out
into a format that matches the docs, for easier maintenance.
* I have no idea what I'm doing
...but I hope this works - bit simpler layout to maintain too.
* fix: add comments
Good PR feedback - adding some more commentary for anyone coming across these bits later
* typo
2021-09-18 15:37:15 +02:00
Jan De Dobbeleer
2ed5d31f4f
feat(az): use template for more flexibility
...
BREAKING CHANGE: this makes it so people have to remove the switches
in favor of the new template.
2021-09-18 13:21:28 +02:00
Aaron Sherber
f412ef6644
feat: allow for custom text in place of shell names
2021-09-17 19:48:00 +00:00
Nick Craver
bf51f59ceb
feat: image background color
2021-09-17 20:34:43 +02:00
Jan De Dobbeleer
6bef088b83
feat: allow auto hiding of rprompt on Windows
2021-09-17 09:40:12 +02:00
lnu
cb9a090ec7
feat(battery): display_charged parameter added
...
display_charging splitted to two parameters instead of a single one
BREAKING CHANGE: from now display_charging will handle the charging
status only.
2021-09-16 20:17:41 +02:00
Jan De Dobbeleer
86b3e1cc62
fix(bash): remove leading space
...
relates to #953
2021-09-14 19:54:09 +02:00
Jan De Dobbeleer
f7de8aed27
fix: support for windows arm64
2021-09-14 18:49:29 +02:00
Aaron Sherber
3ecdffd86c
fix: recognize tag and commit merges
2021-09-14 07:10:13 +02:00
Aaron Sherber
18dcf4be21
fix: recognize remote branch merge
2021-09-13 17:46:49 +02:00
Jan De Dobbeleer
fb1c704d14
refactor: adjust build directives for go 1.17
2021-09-09 20:15:43 +02:00
Jan De Dobbeleer
78d0a42556
fix(transient): do not run when no config
2021-09-09 20:15:43 +02:00
Jan De Dobbeleer
13cb9a6a58
fix: correct error printing for eval
2021-09-09 20:15:43 +02:00
Jan0660
ffad394a4f
feat(memory): add use_available and memory_type
2021-09-04 23:23:38 +02:00
Jan De Dobbeleer
4305b3ad51
feat: support pnpm
...
resolves #926
2021-09-04 20:46:50 +02:00
Laurent Nullens
bb246377ce
feat(git): display worktree count
...
resolves #913
2021-09-04 18:32:55 +00:00
Jan0660
75c357a7f0
fix(memory): improve code readability
2021-09-03 22:49:56 +02:00
Jan0660
daf91dc85a
feat: memory segment
2021-09-03 22:49:56 +02:00
Jan De Dobbeleer
7fd3091187
chore: update go dependencies
2021-09-01 13:48:21 +02:00
Jan De Dobbeleer
d16bade426
feat: update to go 1.17
2021-09-01 13:48:21 +02:00
Jan De Dobbeleer
e6bc625564
fix(bash): quote the timer path
...
resolves #914
2021-09-01 13:48:21 +02:00
lnu
d8c19d0c6d
fix(owm): icon display at night
...
Icon id is different for day/night
2021-09-01 12:25:42 +02:00
Sebastian Mineur
2b53796c1a
feat(path): add 'max_depth' option for 'agnoster_short'
2021-08-20 15:06:37 +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
lnu
5500530d9f
chore: upgrade sprig to v3
...
#900
2021-08-16 08:33:17 +02:00
Nico Glas
4f08d660b9
feat(segment): open weather map
2021-08-15 19:11:02 +00:00
Laurent Nullens
3f02ad4eb3
fix: avoid variable expansion when using postfix in zsh
...
% must be escaped otherwise zsh try to apply variable expansion
Co-authored-by: Jan De Dobbeleer <2492783+JanDeDobbeleer@users.noreply.github.com>
2021-08-15 09:45:44 +02:00
Jan De Dobbeleer
dff3986258
refactor(git): fetch branch name from HEAD file
2021-08-10 06:27:50 +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
995bd5c720
chore(go): update dependencies
2021-08-10 05:58:35 +02:00
Jan De Dobbeleer
9bd21c6573
feat(text): add template support
...
resolves #884
2021-08-10 05:58:35 +02:00
Jan De Dobbeleer
9f4f9d30db
fix(init): quote path for spaces
...
resolves #879
2021-08-10 05:58:35 +02:00
Jan De Dobbeleer
68f576692b
feat(path): use second letter for .folder
...
resolves #886
2021-08-10 05:58:35 +02:00
Evgeny Morozov
84183b7506
fix(aws): override default region if AWS_REGION is set
...
Co-authored-by: Evgenii Morozov <emorozov@goodgamestudios.com>
2021-08-04 20:46:59 +02:00
lnu
94e3d9e0fd
perf(git): read origin url from config
...
new properties added: isWorktree and gitRootFolder
2021-08-02 20:06:15 +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
c4db62c644
feat(language): allow enabling or disabling HOME folder
...
closes #874
2021-07-31 18:02:05 +02:00
Chris Donnelly
1868e15137
fix(git): cherry-pick/revert tests actually pass now
2021-07-30 16:04:50 +02:00
Chris Donnelly
da83ecee87
fix(git): additional mocks required
...
The mock environment was panicking because the test for `sequencer/todo`
checks the full path exists rather than checking for sequencer/ first.
The additional mock for the file covers this.
I am also reorganizing the mocks so they are sorted by type/method.
2021-07-30 16:04:50 +02:00
Chris Donnelly
27654dbd56
fix(git): tests covering revert/sequencer
2021-07-30 16:04:50 +02:00
Chris Donnelly
c7b78c3de3
fix(git): support in-progress cherry-pick/revert
...
When a cherry-pick is in progress, .git/CHERRY_PICK_HEAD doesn't exist,
so read .git/sequencer/todo instead.
The canonical git prompt in git/git/contrib has this in the "sequencer" section,
which handles cherry-pick operations.
This includes support for "git revert", so I am also adding that.
I chose the fa-undo icon for "revert".
@see https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
2021-07-30 16:04:50 +02:00
Jan De Dobbeleer
40238b8226
fix: adjust mapped_locations_enabled for hardcoded only
...
resolves #854
2021-07-24 19:55:08 +02:00
Justin Grote
5ed452eae5
fix: handle YAML/TOML key value entries
2021-07-18 19:01:11 +02:00
Jan De Dobbeleer
1f4d05415c
feat(path): letter full path
...
resolves #851
2021-07-13 20:18:03 +02:00
Jan De Dobbeleer
07b9b82f9f
fix(pwsh): set lastCommandSuccess first
...
resolves #849
2021-07-12 07:39:15 +02:00
Jan De Dobbeleer
2aa00da41b
fix(windows): try HOME by default for user home
2021-07-10 15:00:23 +02:00
Jan De Dobbeleer
9576e8212e
fix(transient): handle multiline prompts better in powershell
...
relates to #840
2021-07-10 15:00:23 +02:00
Jan De Dobbeleer
46b8cea72a
fix: write post- and prefix separate
...
resolves #843
2021-07-10 13:56:28 +02:00
Tobias Hölzer
c358d4fc4c
feat: rust segment
2021-07-04 22:53:10 +02:00
Jan De Dobbeleer
75253034b9
feat: enable transient prompt in zsh
2021-07-04 07:39:48 +02:00
Jan De Dobbeleer
8cf85a370d
fix(transient): count newlines and not ;
...
relates to #807
2021-06-26 20:22:05 +02:00
Jan De Dobbeleer
f19460a0c5
fix(transient): support multiline prompts
...
relates to #807
2021-06-25 20:14:32 +02:00
Jan De Dobbeleer
db1f6bb751
fix(dotnet): correct exit code for different OS architectures
...
closes #819
2021-06-23 22:40:00 +02:00
Jan De Dobbeleer
3fd70ce716
refactor: remove vertical_offset for transient prompt
...
relates to #807
2021-06-23 22:40:00 +02:00
Jan De Dobbeleer
fb83354186
fix: int comes in as float from json
...
resolves #755
2021-06-23 22:40:00 +02:00
Jan De Dobbeleer
7c72e76aff
feat(pwsh): transient prompt
2021-06-22 08:42:35 +02:00
Jan De Dobbeleer
7bb0c9ae0b
refactor(tooltips): better invocation for pwsh
2021-06-22 08:42:35 +02:00
Chris Donnelly
2ab35b0eec
feat(dotnet): correct exit code on Windows
...
dotnet on windows returns a 32-bit exit code.
https://github.com/dotnet/runtime/blob/main/docs/design/features/host-error-codes.md
2021-06-18 20:34:24 +02:00
Jan De Dobbeleer
dcada48c9d
feat: tooltip support
2021-06-13 19:46:02 +02:00
Jan De Dobbeleer
08c0d9a957
fix(bash): fallback TIMER_START to HOME
...
resolves #802
2021-06-12 21:42:18 +02:00
Jan De Dobbeleer
f6a675e8c4
fix(schema): remove invalid character
2021-06-09 07:19:04 +02:00
Jan De Dobbeleer
1f4242cfde
chore: update go dependencies
2021-06-09 07:19:04 +02:00
Jan De Dobbeleer
3bc9448be2
refactor: do not render empty string
2021-06-09 07:19:04 +02:00
Jan De Dobbeleer
b05a4573e7
revert: update dependencies
...
This reverts commit f372083039
.
2021-06-08 12:16:46 +02:00
Jan De Dobbeleer
f372083039
chore: update dependencies
2021-06-08 08:34:28 +02:00
Jan De Dobbeleer
24f87f8557
fix: use correct home on git bash
...
resolves #786
2021-06-08 08:34:28 +02:00
Jan De Dobbeleer
b21670f35b
fix: consistent naming for Oh My Posh
...
relates to https://github.com/microsoft/winget-pkgs/pull/16328
2021-06-06 13:42:33 +02:00
Jan De Dobbeleer
930f9de114
feat: nbgv segment
...
resolves #777
2021-06-05 11:25:28 +02:00
lnu
7eae98f8d7
fix(pwsh): use correct directory when exporting theme
...
resolves #768
2021-06-01 06:40:37 +02:00
Jan De Dobbeleer
8ef355db4c
fix(pwsh): use correct directory when exporting theme
...
resolves #748
2021-05-29 18:46:59 +02:00
Jan De Dobbeleer
bc50377850
feat: max branch length
...
resolves #755
2021-05-29 18:46:59 +02:00
Jan De Dobbeleer
c27f542893
fix(az): use correct env var for account
2021-05-28 19:36:24 +02:00
Jan De Dobbeleer
83ac224e1f
fix: validate if we have access to struct fields
...
resolves #743
2021-05-28 07:58:45 +02:00
lnu
cdd4090c03
fix: export-poshtheme ~ issue
...
Fix regression introduced by previous commit(~)
2021-05-28 07:30:38 +02:00
lnu
46bdc4537d
fix: export-poshtheme issue with relative path
...
Path.GetFullPath used to resolve full or relative paths
2021-05-28 06:52:46 +02:00
Jan De Dobbeleer
79fa990205
feat: env vars in templates
...
resolves #743
2021-05-27 22:06:33 +02:00
lnu
0075ac229c
fix: escape backtick
...
in zsh or bash, text between backtick was interpreted
2021-05-27 21:41:46 +02:00
Jan De Dobbeleer
3b56c24b69
fix: add not charging state for battery info
2021-05-27 12:50:53 +02:00
lnu
2eb45b5863
fix: escape \ from segment value when in bash
...
fix #738
2021-05-25 22:25:40 +02:00
Jan De Dobbeleer
2cf288e46c
fix: ignore 0 size terminals
2021-05-25 19:12:18 +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
b67f625740
fix(bash): escape entire rprompt
...
resolves #717
2021-05-21 22:12:55 +02:00
Jan De Dobbeleer
50473767a7
chore(ci): replace golint with revive
2021-05-21 20:33:11 +02:00
Jan De Dobbeleer
ed610c13ee
feat(az): display account info
2021-05-21 20:33:11 +02:00
Jan De Dobbeleer
c3b6f31d09
feat(pwsh): disable module support by default
2021-05-21 20:33:11 +02:00
Jan De Dobbeleer
894b84fa85
fix(pwsh): get filesystem path for configs
...
resolves #715
2021-05-21 20:33:11 +02:00
Jan De Dobbeleer
5f045431cf
fix(executiontime): round values logically
2021-05-21 08:17:36 +02:00
Jan De Dobbeleer
8642b7bfd9
feat: round timing style
2021-05-20 19:55:46 +02:00
Jan De Dobbeleer
676da9e4d1
fix: set conda env var
...
relates to #133
2021-05-20 19:27:24 +02:00
Jan De Dobbeleer
7a85ee30d7
fix(osc99): append \ when inside a root directory
...
resolves #724
2021-05-20 19:27:24 +02:00
Jan De Dobbeleer
9999260e9e
feat(git): disable status by default
...
resolves #723
2021-05-20 19:27:24 +02:00
Jan De Dobbeleer
4a16c3fc6c
refactor(pwsh): postfix invoke-expression
...
relates to #708
2021-05-18 20:43:25 +02:00
Jan De Dobbeleer
30bccb06d2
fix: adjust fallback theme layout
2021-05-18 20:43:25 +02:00
Jan De Dobbeleer
b623c5f190
feat: print config error
2021-05-18 20:43:25 +02:00
Jan De Dobbeleer
766dc1ac8b
fix: set powerline env var
...
resolves #133
2021-05-16 19:23:05 +02:00
Micah Rairdon
36feb76f20
feat: azure devops support for git upstream icons
2021-05-15 17:41:15 +02:00
Jan De Dobbeleer
4030c32279
feat: add dart support
2021-05-14 21:28:16 +02:00
Jan De Dobbeleer
d96cb7989a
refactor: add language tests
2021-05-14 21:28:16 +02:00
Jan De Dobbeleer
5d5d7f9e8a
feat(julia): hyperlink support
2021-05-14 13:45:38 +02:00
Jan De Dobbeleer
8f473df62f
feat: support crystal language
2021-05-14 13:45:38 +02:00
lnu
6671ed068c
feat: export-poshtheme to clipboard if no file path provided
2021-05-06 11:37:07 +02:00
Jan De Dobbeleer
3c5129275e
feat: join segments when omitting diamonds
...
relates to #697
2021-05-04 10:33:34 +02:00
Jan De Dobbeleer
248afec9fa
feat: better mapped locations layout
2021-05-02 14:35:01 +02:00
gitolicious
52b66d1e5b
feat: add OS template property
2021-04-24 19:31:56 +00:00
Jan De Dobbeleer
fb57ef18b6
feat: display message on az update needed
...
resolves #669
2021-04-22 20:23:34 +02:00
lnu
44ac09d356
fix(battery): disable segment when no batteries
2021-04-22 07:02:22 +02:00
Jan De Dobbeleer
3b7b854fdc
fix(pwsh): only clear console after block write
2021-04-21 21:25:59 +02:00
Jan De Dobbeleer
b11b69f0e8
refactor: ansi module cleanup
2021-04-21 19:54:43 +02:00
Jan De Dobbeleer
c24ca82f17
feat: newline as part of block
...
this deprecates the "newline" block and favours using the newline
property on the Block component. For backwards compatibility we'll
keep recognizing the newline block for the time being.
resolves #607
2021-04-21 19:54:43 +02:00
Jan De Dobbeleer
7ad764ceee
fix(ytdm): default to localhost IP
...
resolves #639
2021-04-20 21:37:09 +02:00
Chris Bargren
f7841eb43c
fix(zsh): store exit code first in precmd hook
...
Addresses an issue causing exit code segments to incorrectly report an
exit code of `0`
2021-04-20 07:03:28 +02:00
Jan De Dobbeleer
1f25cd4b1c
fix(node): stop when yarn is detected
2021-04-18 07:18:34 +02:00
Jan De Dobbeleer
016d981baa
fix(pwsh): invoke module support before context
...
relates to #655
2021-04-17 20:37:49 +02:00
Jan De Dobbeleer
52f260caf6
feat(node): show NPM/Yarn context
...
resolves #653
2021-04-17 14:51:20 +02:00
Jan De Dobbeleer
c98c1b5425
feat(language): enable in home dir when always_enabled
...
resolves #649
2021-04-17 13:31:38 +02:00
Jan De Dobbeleer
212721c9e3
fix(battery): better state mapping
...
relates to #644
2021-04-16 07:54:05 +02:00
Jan De Dobbeleer
92a2f740e9
refactor: move battery logic to segment
2021-04-16 07:54:05 +02:00
lnu
9c4ba43871
fix: stack count variable names + compability with all init modes
2021-04-14 14:58:54 +02:00
lnu
4f96cc0f7c
fix: wrong stack count when init from Set-PoshPrompt
2021-04-14 07:00:44 +02:00
lnu
b9601b632a
feat: show/hide stack count in path segment
2021-04-12 22:25:01 +02:00
Jan De Dobbeleer
434cd41faf
fix(git): move untracked to added
...
resolves #628
2021-04-12 19:30:54 +02:00
Jan De Dobbeleer
90680f2c70
fix(battery): hide segment when no batteries
...
resolves #633
2021-04-12 19:17:58 +02:00
Richard Hooper
fb203eba51
feat(themes): adding pixelrobots theme
2021-04-12 12:38:01 +02:00
Jan De Dobbeleer
66bddcc8c9
fix(git): track submodule changes too
...
resolves #627
2021-04-11 20:16:04 +02:00
Jan De Dobbeleer
2990bc2536
fix: return error on template render
2021-04-11 15:27:20 +02:00
Jan De Dobbeleer
ee93191aac
fix(battery): count all battery information
2021-04-11 15:27:20 +02:00
Jan De Dobbeleer
afb69b4229
feat: export image of the current theme
2021-04-11 10:53:10 +02:00
Olivier Jullien
5134e11bc6
fix(bash): force temporary file deletion
...
forces the temporary file deletion when the user uses a security rm alias
2021-04-10 09:07:04 +02:00
TravisTX
4597f158c4
perf(az): improve performance for az powershell
2021-04-06 15:35:18 +02:00
lnu
bb6a90a867
feat: toml intellisense + recommended extensions for toml and yaml
2021-04-05 14:05:08 +02:00
Jan De Dobbeleer
8afadc0bcd
feat: azure functions segment
2021-04-02 19:46:32 +02:00
Jan De Dobbeleer
64aa66eebc
feat: cfg.TerminalBackground as template
2021-04-01 21:51:06 +02:00
Jan De Dobbeleer
447ca4bb94
refactor: remove redundant rectangle filler
2021-04-01 21:51:06 +02:00
lnu
513794af46
fix: adoptopenjdk 16 version parsing
2021-04-01 17:13:19 +02:00
TravisTX
85fb7611bc
feat(az): clear envvars
2021-03-31 07:11:43 +02:00
Jan De Dobbeleer
57d49658ea
feat(battery): use template to render segment
2021-03-28 16:22:29 +02:00
TravisTX
7db7f13e51
feat(az): support az pwsh module
2021-03-28 11:24:49 +02:00
Jan De Dobbeleer
1e53daa687
refactor: replace deprecated linter
2021-03-27 17:52:53 +01:00
Jan De Dobbeleer
320ec1d7d3
feat(pwsh): posh-git segment
2021-03-27 17:52:53 +01:00
Jan De Dobbeleer
f90840e3ec
fix(config): export JSON correctly
...
resolves #581
2021-03-27 13:49:31 +01:00
Jan De Dobbeleer
61cb33f4f9
fix(pwsh): map home dir on theme export
2021-03-27 13:49:31 +01:00
Jan De Dobbeleer
4c992e65b3
feat: dependency update
2021-03-27 13:49:31 +01:00
Jan De Dobbeleer
542ef2b73e
feat(language): disable when at home
...
resolves #547
2021-03-22 20:15:52 +01:00
Jan De Dobbeleer
18c56efd2e
feat: multiple config formats
2021-03-21 19:30:56 +01:00
lnu
cd3f8742ad
fix: escape double quotes for zsh prompt
2021-03-20 11:20:18 +01:00
lnu
494d3b2d20
fix: fish 3.2 empty command duration
2021-03-20 07:13:24 +01:00
lnu
838567cbcd
feat: don't keep duration when no command is entered
...
pwsh and fish alignement
2021-03-19 19:49:27 +01:00
Luca Ercole
5f035f8855
fix: remove double invocation of --shell argument
2021-03-18 19:08:09 +01:00
Luca Ercole
8de004ff53
fix: preserve exit code in omp.bash
...
Other small changes include:
- rename functions to simplify debugging
- quoting some variables and simplifying an expression as suggested by shellcheck
- idempotency when modifying PROMPT_COMMAND.
- check if file exists before trying to remove it in the trap.
2021-03-18 18:50:53 +01:00
Jan De Dobbeleer
e7cccf5978
fix: hardcode shell for init
...
resolves #540
2021-03-18 17:14:40 +01:00
Jan De Dobbeleer
c185ebd09c
feat(java): add segment
2021-03-18 17:14:40 +01:00
Jan De Dobbeleer
d3252acf85
feat(path): correct drive root on Windows
...
resolves #534
2021-03-17 13:36:18 +01:00
lnu
fcf1cc30bf
feat: template for time segment
...
example with time
schema updated
2021-03-17 08:14:58 +01:00
Equinox
7b54e88c62
docs: fix various spelling errors
2021-03-15 18:11:16 +01:00
Jan De Dobbeleer
ce5a9d6b76
feat(pwsh): force session to UTF8
2021-03-14 17:55:44 +01:00
Jan De Dobbeleer
6379982c3b
fix: remove log statement
2021-03-14 15:17:46 +01:00
Jan De Dobbeleer
e6247da593
feat: set terminal background color
...
relates to #529
relates to #322
relates to #497
Windors terminal and Visual Studio Code do not work well with inversted
ANSI sequences. This weak allows users to override the Tranparency to
the terminal background color removing black elements in their prompt.
Ideally we remove this once they are on par with other terminals, but
that could take a while.
See https://github.com/microsoft/vscode/issues/111762
and https://github.com/microsoft/terminal/issues/7014
2021-03-14 14:25:27 +01:00
TravisTX
d570673127
fix(git): status colors without display status
2021-03-13 18:32:11 +01:00
Jan De Dobbeleer
ae44f14731
fix(theme): correct icons
...
resolves #515
2021-03-13 08:32:06 +01:00
Jan De Dobbeleer
c2de78326e
feat(pwsh): write debug prompt function
2021-03-11 08:49:38 +01:00
Vincent Bourdon
7984365f1d
refactor: create inline function inWSLSharedDrive
2021-03-10 22:26:17 +01:00
Vincent B
21ecfa47e0
refactor: create inline function inWSLSharedDrive
2021-03-10 22:26:17 +01:00
evilz
500cc5834d
fix: slow git status on wsl2
2021-03-10 22:26:17 +01:00
Jan De Dobbeleer
0b3f4da41e
feat(git): only show HEAD context on display_status=false
2021-03-09 20:50:52 +01:00
evilz
8343e9aee5
feat(dotnet): support fsharp
2021-03-09 14:14:54 +01:00
Jan De Dobbeleer
5055dfc84a
fix(aws): hide default when not set
...
relates to #380
2021-03-08 21:04:56 +01:00
Jan De Dobbeleer
6ee998af15
fix(git): use platform constant
2021-03-07 18:28:25 +01:00
Jan De Dobbeleer
21f97eebd2
fix(git): use exact executable name
...
can conflict with git.cmd
relates to #315
2021-03-07 17:07:25 +01:00
Jan De Dobbeleer
f96f7ecc42
fix(git): align git commands with posh-git
2021-03-07 14:04:32 +01:00
Jan De Dobbeleer
f12ff18385
refactor(test): mapped locations on paths
...
relates to #484
2021-03-05 17:49:47 +01:00
Jan De Dobbeleer
b5af1ebd3b
feat(bash): execution time
2021-03-03 08:30:40 +01:00
lnu
3269a47ee7
feat: use RWMutex for map access
2021-03-01 07:11:01 +01:00
TravisTX
7d785df08a
feat: include folders
2021-02-28 21:05:11 +01:00
Jan De Dobbeleer
41f2c3d5a6
feat: upgrade dependencies
2021-02-28 17:35:57 +01:00
Jan De Dobbeleer
404a123217
feat: use go embed
2021-02-27 16:48:57 +01:00
Jan De Dobbeleer
67f4f2dad0
feat: build with go 1.16
2021-02-27 16:48:57 +01:00
Jan De Dobbeleer
3fbf785bd9
feat: ansi text formats
...
resolves #440
2021-02-27 13:19:44 +01:00
Jan De Dobbeleer
be1ec7bea3
feat(os): show/hide distro name
...
resolves #443
2021-02-26 06:57:34 +01:00
Jan De Dobbeleer
ae8e6d6ccb
refactor: session tests
...
relates to #453
2021-02-25 12:08:59 +01:00
Joseph Petersen
daf324781b
fix(session): use DefaultUserName
2021-02-25 08:14:19 +01:00
Jan De Dobbeleer
58f1789415
feat(session): default user override
...
resolves #447
2021-02-24 10:12:47 +01:00
Jan De Dobbeleer
2ab7ff94d7
feat(git): branch status switch
...
resolves #438
2021-02-19 19:40:13 +01:00
Jan De Dobbeleer
734158a8a3
refactor: universal display_default
...
relates to #380
2021-02-18 19:11:55 +01:00
Jan De Dobbeleer
de498044c9
fix(go): support 1.16
...
resolves #428
2021-02-18 08:49:25 +01:00
Jan De Dobbeleer
c7db86ed4c
fix(language): do not parse version when empty
...
relates to #423
2021-02-16 13:58:12 +01:00
Jan De Dobbeleer
b59b4197dc
chore: rename repository
2021-02-16 09:00:02 +01:00
Jan De Dobbeleer
87af930b75
fix: switch for OSC99
2021-02-15 23:23:44 +01:00
Jan De Dobbeleer
853eaa3890
feat(session): support text template
...
relates to #376
2021-02-15 23:23:44 +01:00
Jan De Dobbeleer
507906009d
feat(battery): support color templates
...
relates to #376
2021-02-15 23:23:44 +01:00
Jan De Dobbeleer
0da40e6aa7
feat(node): version mismatch color
...
resolves #378
2021-02-15 23:23:44 +01:00
Asaf Mahlev
c71c5e86cb
feat: added Mixed path option - displays the path if it's short enough
2021-02-15 17:03:35 +01:00
Jan De Dobbeleer
0d87942fe3
refactor: session segment template properties
2021-02-15 13:36:42 +01:00
lnu
b0562a38b8
feat: transform wsl path to windows folder
2021-02-15 11:14:50 +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
860eeb478a
feat: support osc9;9
...
resolves #409
2021-02-14 14:54:02 +01:00
Jan De Dobbeleer
9457be3990
refactor: hide erorr for languages
...
resolves #400
2021-02-14 13:08:50 +01:00
Jan De Dobbeleer
375184cf0e
feat: allow color templates
...
relates to #397
2021-02-13 19:22:36 +01:00
TravisTX
acfda5c9ca
feat: add display_error to kubectl
2021-02-12 22:14:58 +01:00
Jan De Dobbeleer
3c1c0f87df
feat: sprig template functions
...
relates to #397
2021-02-12 12:59:07 +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
TravisTX
731ebf6f9a
feat: kubectl namespace
2021-02-11 07:06:40 +01:00
Jan De Dobbeleer
bf44a446be
feat: aws segment
2021-02-10 15:15:13 +01:00
Jan De Dobbeleer
440ff16a80
refactor: generic text templating
2021-02-10 15:15:13 +01:00
Jan De Dobbeleer
f4027bd7b3
feat: version file mismatch indication
...
relates to #378
2021-02-07 07:39:50 +01:00
Jan De Dobbeleer
ae10564f2b
refactor: remove MissingCommandText
2021-02-07 07:39:50 +01:00
Jan De Dobbeleer
a3a58feb0e
feat(node): support .nvm files
2021-02-07 07:39:50 +01:00
Carlos Alberto Costa Beppler
3729dee16e
feat: add the User and Host properties to the console title template
2021-02-06 23:05:41 +01:00
Jan De Dobbeleer
1ba666fe97
refactor: align ruby with language
2021-02-04 17:05:46 +01:00
Jan De Dobbeleer
c43cbac284
refactor: generic language support
2021-02-04 17:05:46 +01:00
Jan De Dobbeleer
7e813893ed
feat: support for ruby
2021-02-04 17:05:46 +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
59c81f3a9f
feat: release notes hyperlink for all languages
...
If version enabled and hyperlink enabled(global level), an hyperlink to
the release notes of the current version is generated.
The regex and the url template can be modified in the json template.
2021-01-25 08:55:42 +01:00
Jan De Dobbeleer
7a4d2e175b
refactor: allow color overrides in git status icons
...
resolves #368
2021-01-24 19:30:55 +01:00
Jan De Dobbeleer
2af3e672fd
fix(python): restore CONDA_DEFAULT_ENV
...
resolves #360
2021-01-20 19:09:11 +01:00
lnu
890d0ad0e1
feat: cache compiled regex
...
use mustcompile for regex.
Always use mustcompile which throws a panic
if the regex cannot be compiled.
We call recover to detect the panic and
display an error message to the user.
2021-01-20 13:11:05 +01:00
Jan De Dobbeleer
225b317e32
feat: success/error icon for exit segment
...
resolves #357
2021-01-19 10:28:03 +01:00
Jan De Dobbeleer
b651c9a065
fix(pwsh): provide full config path
...
resolves #355
2021-01-18 20:06:51 +01:00
Jan De Dobbeleer
f6501aeb51
fix: multiline prompt rendering
...
resolves #354
2021-01-18 11:16:31 +01:00
Jan De Dobbeleer
edebc1d465
refactor: align pwsh module with init
2021-01-17 19:25:19 +01:00
Jan De Dobbeleer
e26326001e
fix: ensure correct encoding for pwsh
...
resolves #352
2021-01-17 19:25:19 +01:00
TravisTX
9f022d7ba5
feat: envvars in console title
2021-01-15 22:36:29 +01:00
Jan De Dobbeleer
d1be7ac1d2
feat: add known Python extensions/folder
2021-01-15 19:41:09 +01:00
Jan De Dobbeleer
6ed5d26610
refactor: re-introduce context for language
2021-01-15 19:24:58 +01:00
Jan De Dobbeleer
2abcd82f45
refactor: use language context to display segment
...
relates to #239
2021-01-15 19:24:58 +01:00
Jan De Dobbeleer
890f9cde1b
refactor(language): remap context to files
2021-01-15 19:24:58 +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
f8b28f01ba
feat: add console title in --debug
2021-01-15 07:29:52 +01:00
TravisTX
0761c04286
feat: use tilde in console title
2021-01-14 07:07:15 +01:00
lnu
866c44e42d
feat: add hyperlink rendering
...
An hyperlink can be added using markdown syntax and will be detected by the engine.
Initial implementation for path segments.
2021-01-12 21:37:41 +01:00
lnu
b1e2a52a04
fix: lock around shared map write
2021-01-10 12:17:01 +01:00
Jan De Dobbeleer
82b97bc3b9
refactor(git): count stash using file content
...
relates to #305
2021-01-09 21:17:59 +01:00
Jan De Dobbeleer
780722a371
refactor(powershell): use PSDrive path
...
resolves #329
2021-01-09 20:00:39 +01:00
Jan De Dobbeleer
667151fe28
refactor: remove additional git calls
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
3a86f49b72
perf: use strings.Builder instead of buffer
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
8a925b80a3
refactor: use correct formatting
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
836763c002
refactor: run commands natively
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
598984b4cb
refactor: check for availability of posh-git iso cmdlet
...
resolves #325
2021-01-07 13:31:13 +01:00
lnu
c57368ce7d
fix: avoid crash on system with no battey in battery segment
2021-01-05 13:06:54 +01:00
Jan De Dobbeleer
a38fe214c3
fix: do not fetch git stash every time
...
relates to #305
2021-01-04 18:58:58 +01:00
Laurent Nullens
82635cd5ec
fix: wrong check when calling --debug with ignore_folders set
...
wrong check when calling --debug with ignore_folders set
2021-01-04 16:14:07 +01:00
TravisTX
94ae5ed0b4
fix: folder style not using folder_separator_icon
2021-01-03 18:25:42 +01:00
lnu
9822227a5e
docs: display_mode 'never' removed
2021-01-01 08:46:22 +01:00
Jan De Dobbeleer
11350c7347
feat: show no commits context
2020-12-31 20:34:05 +01:00
Jan De Dobbeleer
8c68b89790
refactor: remove DisplayModeNever
2020-12-31 20:34:05 +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
07ac2c35cd
refactor: display powerline correct in --debug
2020-12-31 14:04:38 +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
Laurent Nullens
1bc52c3c48
fix: exit code always equal 0
...
The exit code was not captured correctly since the move to the new bootstrap system.
It never displays the actual exit code.
2020-12-31 12:06:59 +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
TravisTX
23eb73cd69
fix: fix lastexitcode
2020-12-30 16:30:51 +01:00
TravisTX
c9075268ad
refactor: switch to original jsonc library
2020-12-30 08:36:13 +01:00
Jan De Dobbeleer
0e7849cde3
fix: msys2 compatibility
...
resolves #281
2020-12-29 21:53:07 +01:00
lnu
9013a5b3d4
chore: doc updated(Get an editor)
2020-12-29 21:47:04 +01:00
lnu
0fcf7cc8be
feat: replace debug information with a new layout
...
Similar as Starship timings command
2020-12-29 21:47:04 +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
9e7d901fb6
feat: set console title with template
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
b427a0e8a4
refactor: cache shell name
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
85ee0bb0c0
refactor: typo in EOL
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
d9cf3b0e40
fix: only clear eol on Powershell
...
related to #277
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
59282c088d
refactor: separate ansi formats
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
e9c65948c1
refactor: separate consoletitle logic
2020-12-27 18:23:40 +01:00
Laurent Nullens
969b54420a
fix: avoid emitting empty ansi color codes
...
When there's no color override an empty string is emitted.
The fix reduces the emitted output by 40% approximatively with the default theme(1604 -> 1138).
2020-12-27 11:39:05 +01:00
Jan De Dobbeleer
ac5dd0f76b
refactor: use personal fork of jsonc
2020-12-26 14:20:10 +01:00
Jan De Dobbeleer
3c7b3447d5
refactor: upgrade distatus/battery
2020-12-26 14:20:10 +01:00
Jan De Dobbeleer
9a47ed71b7
refactor: upgrade gookit/color
2020-12-26 14:20:10 +01:00
Jan De Dobbeleer
1e330b90ee
refactor: use go-ps from origin
2020-12-26 14:20:10 +01:00
TravisTX
1cfed78576
feat: allow custom folder separator for all styles
2020-12-26 08:30:29 +01:00
Jan De Dobbeleer
ed2eac8e12
feat: adjust source code layout
2020-12-25 20:11:24 +01:00