Jan De Dobbeleer
8cd8c9a7be
feat(color): do not clear parent colors
2022-12-28 17:14:29 +01:00
Jan De Dobbeleer
60664e245a
feat(git): remove stash and worktree count from template
...
they are now individual functions so they no longer need a switch
2022-12-28 17:14:29 +01:00
Jan De Dobbeleer
dee040c719
fix(shell): lock template cache correctly
2022-12-28 17:14:29 +01:00
Jan De Dobbeleer
3cdb3bfc1d
fix(shell): do not lock template cache
...
resolves #3254
2022-12-27 17:32:45 +01:00
Jan De Dobbeleer
07206e5aae
feat(project): add always_enabled and project type
2022-12-27 15:53:31 +01:00
Jan De Dobbeleer
73e91eab5b
fix(shell): lock template cache creation
2022-12-27 15:53:31 +01:00
Jan De Dobbeleer
2f1bf39253
feat(svn): exclude branch info from fetch_status
...
resolves #3252
2022-12-27 15:53:31 +01:00
Jan De Dobbeleer
9dd462c0d0
fix(engine): close Env after prompt generation
...
relates to #3244
2022-12-25 20:59:46 +01:00
Jan De Dobbeleer
be803c838b
fix(template): use correct cache key
...
resolves #3244
2022-12-25 20:59:46 +01:00
Michael Carman
d9f59272f2
feat(svn): add counting of untracked files; don't default to counting as "unmerged"
2022-12-25 20:32:19 +01:00
Jan De Dobbeleer
ed870295be
fix(go): correct gopsutil dependency
...
resolves #3231
2022-12-21 19:34:30 +01:00
maxlandon
edc02ddb48
refactor(engine): new instantiation function
...
this commit adds a function to instantiate a new prompt engine
to be used within a Go application (typically a readline shell)
2022-12-20 20:14:13 +01:00
Jan De Dobbeleer
2255f9fd44
feat(template): custom compare functions
...
resolves #3218
2022-12-18 15:02:57 +01:00
Jan De Dobbeleer
80b92505bc
fix(template): remove the need for escaping a dot literal
2022-12-18 15:02:57 +01:00
Jan De Dobbeleer
2dc8dab25b
feat(template): print actual error
...
relates to #3218
2022-12-18 15:02:57 +01:00
David Anthoff
f965dc49aa
feat(project): add support for Julia
2022-12-18 14:55:57 +01:00
Jan De Dobbeleer
5047390bc4
fix(windows): build with app exe compatible fork
2022-12-16 13:49:13 +01:00
Jan De Dobbeleer
2b09eee61f
chore(go): update dependencies
2022-12-14 15:50:57 +01:00
Jan De Dobbeleer
309b044174
fix(windows): revert use of virtual file system for Windows apps
...
the virtual file system is unable to detect the presence of an
AppExecLink, so we need to revert back to using the real file system
2022-12-10 11:31:46 +01:00
Jan De Dobbeleer
2cba140522
fix(warp): support rprompt
2022-12-08 11:37:04 +01:00
Jan De Dobbeleer
1e50107ff6
fix(warp): support newlines
2022-12-08 11:37:04 +01:00
L. Yeung
3dc8538136
feat(pwsh): make it compatible with NVS auto-switching
2022-12-07 14:11:14 +01:00
Jan De Dobbeleer
fc80a8e11d
fix(path): ignore empty root in full path
...
resolves #2962
2022-12-07 06:42:56 +01:00
Jan De Dobbeleer
a86ab4f525
fix(color): validate number range
2022-12-06 21:31:00 +01:00
Jan De Dobbeleer
20462aa50f
fix(colors): support 256 palette
...
resolves #3175
2022-12-06 20:30:40 +01:00
Jan De Dobbeleer
a1801f717c
chore(path): add home tests for mapped locations
2022-12-06 20:30:40 +01:00
Jan De Dobbeleer
8365aae504
feat: allow block to hide based on terminal width
2022-12-03 17:31:15 +01:00
mirsella
93f6576da0
feat: allow segments to hide based on terminal width
2022-12-03 11:20:06 +01:00
Lemorz56
acd4d01d4d
feat: add gitversion segment
2022-11-30 12:51:08 +01:00
Jan De Dobbeleer
b9dd5c18a8
feat(path): add RootDir property
...
relates to #3103
2022-11-28 20:38:43 +01:00
Ted Reed
1c7db480f9
feat(shell): osc51 support
...
working directory OSC for emacs-libvterm
2022-11-27 10:14:55 +01:00
Jan De Dobbeleer
389262edd0
fix(segment): only case non-alias
...
relates to #3103
2022-11-26 15:49:57 +01:00
Jan De Dobbeleer
35edf3a93d
fix(path): use relative on empty root
...
relates to #2962
2022-11-26 15:49:57 +01:00
Jan De Dobbeleer
3bc9e83814
feat(os): support opensuse tumbleweed
...
resolves #3127
2022-11-26 15:49:57 +01:00
Jan De Dobbeleer
c8fb6322eb
feat(os): support for alma and rocky linux
...
resolves #3101
2022-11-25 13:37:21 +01:00
Jan De Dobbeleer
0d101537e6
fix(windows): writable should also look for group membership
...
resolves #3073
2022-11-24 11:42:08 +01:00
Jan De Dobbeleer
735d171b9f
fix(windows): validate permissions for world
...
relates to #3073
2022-11-23 08:08:20 +01:00
Jan De Dobbeleer
931a78c9bb
fix(shell): log platform correctly
...
relates to #3101
2022-11-22 20:48:09 +01:00
Gerben Welter
636a5e29fc
feat(os): add Redhat icon
2022-11-22 20:38:30 +01:00
Jan De Dobbeleer
ef267a8f4c
fix(init): show invalid config warning
...
resolves #3113
2022-11-22 20:37:42 +01:00
Jan De Dobbeleer
f93f223f5e
fix(init): lowercase shellname
...
relates to #3113
2022-11-22 20:37:42 +01:00
Albert Portnoy
ee46cc2645
fix(fish): repaint tooltip on sigint
2022-11-21 19:36:03 +01:00
Jan De Dobbeleer
82f3400814
chore: remove prefix and postfix
2022-11-21 19:29:46 +01:00
Jan De Dobbeleer
f1ffd3997a
fix(windows): add additional access types and logs
...
relates to #3073
2022-11-21 19:29:46 +01:00
Jan De Dobbeleer
59c1c3f7ba
refactor(debug): extract log from platform
2022-11-21 19:29:46 +01:00
Jan De Dobbeleer
a5aad7b058
feat(templates): allow querying the segment cache
...
resolves #3103
2022-11-20 14:04:42 +01:00
Jan De Dobbeleer
0d8b8591cc
fix(pid): cache PID from init
...
resolves #3096
2022-11-19 22:39:09 +01:00
Jan De Dobbeleer
877ac59f5f
feat(cmd): toggle rprompt from configuration
2022-11-18 09:41:39 +01:00
Chris Antos
450ee25f77
fix(cmd): adjust an accidentally-global function
2022-11-18 09:41:39 +01:00
Chris Antos
f2027173fb
feat(cmd): revisions for async prompt
...
this uses caching for cwd, left prompt, right prompt, tooltip, tip
command, and the tooltip coroutine.
the effect is the prompt is always super responsive, except for the
first time after the current directory changes.
the tooltip coroutine is managed a bit differently, to handle some edge
cases a little better.
2022-11-18 09:41:39 +01:00
Chris Antos
9695f4d203
fix(cmd): do not leak global variable
2022-11-18 09:41:39 +01:00
Jan De Dobbeleer
cd9c8b3e5d
fix(fish): re-render rprompt when no tooltip is needed
...
resolves #3093
2022-11-18 09:35:25 +01:00
Jan De Dobbeleer
63bb1b4729
feat(cli): toggle segments on/off
...
resolves #3086
2022-11-17 20:58:00 +01:00
Justin Grote
a17ea7b989
fix(pwsh): support additional debug prompt scenarios
2022-11-17 06:21:25 +01:00
Jan De Dobbeleer
54672cefdf
feat(path): allow templates in mapped_locations
...
resolves #3084
2022-11-16 09:20:43 +01:00
Jan De Dobbeleer
f2d926b78c
fix(templates): append remaining property on return
...
resolves #3085
2022-11-16 09:20:43 +01:00
Jan De Dobbeleer
f1e699f5b3
fix(hyperlink): parse links correctly
...
resolves #3082
2022-11-16 09:20:43 +01:00
Jan De Dobbeleer
0ae2725481
fix(path): correct access logic
...
resolves #3073
2022-11-16 09:20:43 +01:00
Jan De Dobbeleer
6ab687553d
fix(connection): initialize as wifi
...
relates to #3077
2022-11-16 09:20:43 +01:00
Jan De Dobbeleer
c5362c8d2b
docs: replace Twitter with Mastodon
2022-11-12 17:45:46 +01:00
Jan De Dobbeleer
fa49c73238
fix(windows): restore wifi logic
...
resolves #3049
2022-11-11 20:23:52 +01:00
Jan De Dobbeleer
18f6db017a
chore: rename environment to platform
2022-11-11 20:23:52 +01:00
Jan De Dobbeleer
c0c230879a
fix(fish): do not reload rprompt on empty tooltip
...
resolves #3053
2022-11-09 08:08:47 +01:00
Romain Chardiny
ae4f8133ca
feat(segment): add xmake
2022-11-05 20:10:01 +01:00
Jan De Dobbeleer
07acb9b0f6
fix(fish): collect commandline keyword after split
...
resolves #3042
2022-11-04 21:46:45 +01:00
Jan De Dobbeleer
c156d17577
feat(path): replace child locations
...
relates to #2962
2022-11-04 21:03:36 +01:00
Jan De Dobbeleer
efd4b7d832
fix(fish): split single string
...
resolves #3042
2022-11-04 21:03:36 +01:00
Jan De Dobbeleer
2609aa2aea
fix(fish): do not hide tooltip on arguments
...
resolves #3037
2022-11-03 17:28:31 +01:00
Jan De Dobbeleer
6fea7ff017
feat(debug): add shell name
2022-11-03 17:28:31 +01:00
Jan De Dobbeleer
52b01aff63
refactor(shell): use fs instead of os for parent
2022-11-03 17:28:31 +01:00
Jan De Dobbeleer
cbd6518faf
feat(debug): allow adding directory
2022-11-03 17:28:31 +01:00
Jan De Dobbeleer
fdb05d8407
feat(print): improve performance
2022-11-03 17:28:31 +01:00
Jan De Dobbeleer
b73ac4bdc2
feat(init): improve performance
2022-11-03 17:28:31 +01:00
Jan De Dobbeleer
6b4c940880
fix(wsl): only fallback to .exe on WSL2
...
resolves #3024
2022-10-29 15:39:27 +02:00
Jan De Dobbeleer
19b870a1f7
fix(zsh): use correct key
2022-10-28 08:18:37 +02:00
Oleksandr Babieiev
7ae14646d7
feat(project): enhance project segment with .NET
2022-10-27 13:55:27 +02:00
Jan De Dobbeleer
f74855fc3c
fix(path): fallback to env.Pwd() for .Location
...
resolves #3010
2022-10-24 20:23:41 +02:00
Jan De Dobbeleer
972c3c1048
fix(zsh): add key binding conditionally
2022-10-24 16:53:28 +02:00
Jan De Dobbeleer
0e6cc95a0b
fix(rust): optional version metadata
...
resolves #3001
2022-10-23 14:39:27 +02:00
Jan De Dobbeleer
e884a6afe8
fix(zsh): remove non-standard keybindings
...
resolves #2999
2022-10-22 07:23:54 +02:00
Jan De Dobbeleer
f73469533a
fix(zsh): reintroduce home/end key bindings
2022-10-21 08:56:25 +02:00
Jan De Dobbeleer
ae671c711d
fix(templates): only match alphanumeric strings
...
relates to #2956
2022-10-19 20:58:55 +02:00
L. Yeung
dbb5567d22
fix(nu): deprecate use of -c
flag in term size
2022-10-19 20:16:36 +02:00
Jan De Dobbeleer
a94ce52f98
fix(zsh): restore keybindings on transient prompt
2022-10-19 12:04:05 +02:00
Jan De Dobbeleer
cad0a1be8f
fix(pwsh): use literal path
...
relates to #2949
2022-10-19 12:04:05 +02:00
Jan De Dobbeleer
e4d58213ec
fix(path): use correct path for WSL conversion
2022-10-19 12:04:05 +02:00
Jan De Dobbeleer
6db3c8cfc2
feat(language): missing version info in .Error
...
resolves #2957
2022-10-18 20:06:16 +02:00
Jan De Dobbeleer
ef8055eb08
fix(config): export default config
...
resolves #2961
2022-10-18 13:15:38 +02:00
Jan De Dobbeleer
b174c27a5b
fix(zsh): restore broken keybindings
...
relates to #2617
2022-10-18 13:15:38 +02:00
Jan De Dobbeleer
dd5bc77576
feat(pwsh): allow disabling folder fallback
...
resolves #2949
2022-10-18 13:15:38 +02:00
Jan De Dobbeleer
dee6d18baf
fix(templates): do not replace a literal dot
...
resolves #2956
2022-10-17 20:21:18 +02:00
Jan De Dobbeleer
016dc50e72
fix(path): show separator for root drives
...
resolves #2954
2022-10-17 12:45:24 +02:00
Jan De Dobbeleer
b5922ec0a4
fix(dependencies): update and fix gopsutil
...
closes #2947
2022-10-16 00:18:00 +02:00
Jan De Dobbeleer
3efa4df088
feat(palette): conditional palettes
2022-10-14 20:25:00 +02:00
Jan De Dobbeleer
b533a27f21
fix(path): format root correctly
2022-10-14 08:46:14 +02:00
Jan De Dobbeleer
6bc0f888c2
fix(path): correct root on full style
...
resolves #2939
2022-10-14 08:46:14 +02:00
Jan De Dobbeleer
2cb5f24708
fix(path): correct path for env.DirIsWritable
2022-10-13 20:25:26 +02:00
Jan De Dobbeleer
9a98823166
fix(template): parse entire template
...
resolves #2937
2022-10-13 20:25:26 +02:00
Jan De Dobbeleer
040a73e0f0
feat(git): fetch remote on bare repo
2022-10-13 08:40:29 +02:00
Jan De Dobbeleer
e0b28bd2c4
feat(git): disable bare repo's by default
...
relates to #2913
2022-10-13 08:40:29 +02:00
Jan De Dobbeleer
5a57d6909d
fix(template): parse temnplates correctly
...
resolves #2928
2022-10-13 08:40:29 +02:00
Jan De Dobbeleer
6980cb55e7
feat: move default theme internally
2022-10-13 08:40:29 +02:00
Jan De Dobbeleer
ac0ffec43a
fix(path): remove duplicate logic
...
resolves #2923
2022-10-13 08:40:29 +02:00
Jan De Dobbeleer
e45cd7ea17
feat(git): display when in bare repo
2022-10-10 09:01:11 +02:00
Jan De Dobbeleer
d4a3dbb721
chore: default to go 1.19
2022-10-07 21:38:26 +02:00
Jan De Dobbeleer
0f7806e19e
chore(go): update dependencies
2022-10-07 16:35:57 +02:00
Jan De Dobbeleer
55ed6c9f58
fix(pwsh): delegate manual flag on init
2022-10-06 14:04:35 +02:00
Jan De Dobbeleer
8a9a022baa
refactor(wifi): do not query all networks
2022-10-05 16:16:17 +02:00
LNK LEO
4b6b128d74
feat(connection): new segment
...
BREAKING CHANGE: this will need a manual migration from the wifi
segment to the new connection segment.
2022-10-05 16:16:17 +02:00
LNK LEO
63e20bf53c
feat(rust): add beta/dev/nightly to version string
2022-10-05 13:26:37 +02:00
Jan De Dobbeleer
a7a59b8b01
revert(language): do not error when not installed
...
this reverts commit f23968a39c
as this was an incorrect solution to #2880 , it can stay as is
2022-10-05 08:41:33 +02:00
Jan De Dobbeleer
266fc5671f
fix(python): do not validate empty env
2022-10-05 08:41:33 +02:00
Jan De Dobbeleer
ee130605db
fix(pwsh): move HOME on invalid directory
...
resolves #2873
2022-10-04 19:59:12 +02:00
Jan De Dobbeleer
f23968a39c
fix(language): do not error when not installed
...
resolves #2871
2022-10-04 19:59:12 +02:00
L. Yeung
5b6a3470d1
fix(path): parse path correctly
2022-10-04 06:50:07 +02:00
Jan De Dobbeleer
94a379b26a
feat(init): toggle auto config state with flag
...
resolves #2848
2022-10-03 13:02:42 +02:00
Jan De Dobbeleer
2f0bd54087
feat(templates): only fallthrough when template is set
...
resolves #2859
2022-10-03 07:04:50 +02:00
Jan De Dobbeleer
9653506e34
fix(path): correct mapped_locations logic
...
resolves #2839
2022-09-27 12:01:25 +02:00
Jan De Dobbeleer
7c7ce069e0
fix(path): only replace actual home folder
...
resolves #2832
2022-09-26 09:54:51 +02:00
Jan De Dobbeleer
56ae9e6fda
feat(az): parse pwsh context from module output
...
this fixes an issue where using multiple powershell sessions with a
different Azure context would display the same context everywhere when
using Set-AzContext to switch between them
BREAKING CHANGE: this requires adding `$env:POSH_AZURE_ENABLED = $true`
to your PowerShell profile if you want to get the correct context
displayed in your prompt for Azure powershell
2022-09-26 08:23:03 +02:00
Carl in 't Veld
a16f18f9ec
fix(az): config directory folder order
2022-09-26 08:23:03 +02:00
Jan De Dobbeleer
66a55991f1
feat(nu): update for 0.68.1
...
resolves #2756
2022-09-25 19:49:56 +02:00
Jan De Dobbeleer
25fa43c1d3
feat(template): add regex support
...
resolves #2823
2022-09-25 09:31:43 +02:00
Jan De Dobbeleer
19bb8f99b9
feat(deno): add deno.json
...
relates to #2764
2022-09-23 21:19:47 +02:00
Jan De Dobbeleer
17572d7f3f
feat(context): allow context setting where possible
...
relates to #2776
2022-09-23 21:19:47 +02:00
Jan De Dobbeleer
4554d31168
fix(get): add shell flag
...
resolves #2821
2022-09-23 10:22:40 +02:00
Jan De Dobbeleer
2429d46435
fix(cmd): toggle tooltips
...
resolves #2815
2022-09-23 08:46:12 +02:00
Jan De Dobbeleer
babe425f3f
fix(get): add shell
2022-09-23 08:46:12 +02:00
Jan De Dobbeleer
b87a7f7da2
fix(poshgit): remove all references
2022-09-23 08:46:12 +02:00
Jan De Dobbeleer
1d244debed
fix(gcp): correct path on Windows
...
resolves #2814
2022-09-23 08:46:12 +02:00
Jan De Dobbeleer
7ea921351f
feat(gcp): remove .Error
...
aligns the segment with az and aws, relates to #2810
BREAKING CHANGE: this removes the .Error field from the segment template
which means anyone with a custom template in the gcp segment needs to
remove it from their template. The new default template is:
`" {{ .Project }} "`
2022-09-23 08:46:12 +02:00
Jan De Dobbeleer
aecd8d6bfd
feat(templates): segment alias
...
resolves #2811
2022-09-20 20:14:31 +02:00
Jan De Dobbeleer
0e25f1613c
fix(gcp): align default template with az and aws
...
relates to #2810
2022-09-20 20:14:31 +02:00
Jan De Dobbeleer
a7a7ebc662
fix(shell): return correct name for shims
...
resolves #2806
2022-09-18 19:40:26 +02:00
Jan De Dobbeleer
c3c72b17b3
feat: deno segment
...
resolves #2764
2022-09-18 09:50:09 +02:00
L. Yeung
348cacc860
fix(pwsh): disable tooltips for ConstrainedLanguage
mode
2022-09-17 17:49:57 +02:00
L. Yeung
7ebfc530fe
fix(pwsh): disable transient prompt for ConstrainedLanguage
mode
2022-09-17 10:27:06 +02:00
Jan De Dobbeleer
8d9fe9d3c8
fix(pwsh): ignore remove when in constrained language mode
2022-09-16 07:37:36 +02:00
Jan De Dobbeleer
4056729e8e
feat(wsl): allow using native executable on shared drive
...
relates to #2097
2022-09-15 09:11:16 +02:00
Jan De Dobbeleer
bb1235fe5d
chore(go): bump dependencies
2022-09-14 08:49:42 +02:00
Jan De Dobbeleer
6bc6fa23aa
fix(az): find config in all possible folders
...
resolves #2771
2022-09-12 19:40:31 +02:00
Jan De Dobbeleer
3ded4c00fc
feat(posh-git): parse environment variable
...
BREAKING CHANGE: this removes the posh-git segment. To mitigate,
rename the posh-git segment to git.
In case you had a custom template, make sure to migrate to the git
segment's template. You can now also leverage the same logic and
properties as the git segment in both the text template and/or
color templates.
2022-09-07 18:04:41 +02:00
Jan De Dobbeleer
17f75fa1ff
refactor(git): no leading space on branch status
2022-09-07 18:04:41 +02:00
Jan De Dobbeleer
8bab255361
chore: increase timeout for golangci-lint
2022-09-02 16:37:29 +02:00
Jan De Dobbeleer
52f4ae662d
fix(ansi): return original text on [ only strings
...
resolves #2739
2022-09-02 16:37:29 +02:00
Jan De Dobbeleer
336f351b98
fix(link): allow multiple links in segment text
2022-09-02 10:04:22 +02:00
Jan De Dobbeleer
56a59a1b32
feat(git): add link to GitKraken
2022-09-02 10:04:22 +02:00
L. Yeung
5df8d89902
fix(path): map to default registry icon correctly
2022-09-01 11:02:14 +02:00
L. Yeung
e5b3b00a43
fix(git): populate .Dir
and .RepoName
correctly
2022-09-01 11:02:14 +02:00
Jan De Dobbeleer
2a1fdffb73
fix(git): align git Dir with PWD
2022-08-31 12:06:48 +02:00