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