Commit graph

1107 commits

Author SHA1 Message Date
Jan De Dobbeleer 6f8733eacd refactor(git): use map for upstream icons 2023-01-06 08:14:05 +01:00
maxlandon 02c557f42e refactor(go): adapt imports for go.mod consistency 2023-01-06 07:48:14 +01:00
Jan De Dobbeleer b5bb060641 fix(compare): support int64
resolves #3309
2023-01-05 21:00:22 +01:00
Jan De Dobbeleer c1bf3a16fe refactor(ansi): do not print when invisible 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 850787cd6f refactor(ansi): write inverted colors correctly for transparency 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 0ebd59297b refactor(ansi): count text correctly 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer f1b1a72868 refactor: move hyperlink logic intro writer loop 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 59ddfc2ba1 refactor: remove unused function 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 48d8a522bf refactor: rename color module to ansi 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 005445b9fe refactor(ansi): rewrite ansi and writer 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer e957e5f8cc fix(fish): do not fix fish bug for hyperlinks 2023-01-02 20:09:08 +01:00
Jan De Dobbeleer 77d5c9ed95 refactor(ansi): do not allow plain GOOS override 2023-01-02 19:23:38 +01:00
Jan De Dobbeleer ce7b7f1501 fix(fish): different hyperlink format on linux 2023-01-02 18:36:13 +01:00
Jan De Dobbeleer 784b5f1492 fix(colors): fallback to transparent on empty colors
resolves #3276
2022-12-31 12:30:16 +01:00
maxlandon 3559254292 chore: do not load config options more than once
do not set options for the configuration when it already has been set

this allows several prompt engines being created in a single runtime
2022-12-30 20:04:48 +01:00
LNK LEO 6ae0af6853 fix(networks): get missing 2 bytes back in SSID 2022-12-30 16:17:17 +01:00
Jan De Dobbeleer cf4aa4ed62 fix(engine): always return a new writer for init
resolves #3268
2022-12-29 21:32:57 +01:00
NoF0rte 9d81f5a362 feat(style): segment style as a template string 2022-12-29 19:44:50 +01:00
NoF0rte 9e40a1a0dc feat: conditional segment styles 2022-12-29 19:44:50 +01:00
L. Yeung a3ef56f7fa fix(python): set home_enabled to false by default 2022-12-29 11:28:01 +01:00
Jan De Dobbeleer 023546fe37 chore(go): rename module 2022-12-28 20:17:59 +01:00
maxlandon 04bfb2eef1 feat: add segment writers at runtime 2022-12-28 20:17:59 +01:00
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