Jovan Gerodetti
9a3e87f2cb
feat(color): add prev_fg and prev_bg as color specifiers based on the previous foreground/background colors respectively ( #6017 )
...
feat(color): add prevfg,prevbg as color specifiers based on the previous foreground/background colors respectively
Co-authored-by: Vladimir Lushnikov <vladimir@solidninja.is>
2024-06-28 23:40:35 +02:00
David Knaack
6ac5df904b
refactor: replace ansi_term
with nu_ansi_term
( #4339 )
2022-09-04 18:44:54 +02:00
David Knaack
0ae61c7758
chore(clippy): fix new lints ( #4002 )
2022-05-23 06:58:27 -04:00
Matthew (Matt) Jeffryes
5d0a38aca3
feat: Add a fill module to pad out the line ( #3029 )
2021-09-12 19:59:15 -04:00
Tilmann Meyer
bcdf522af5
chore: remove unused name from Segment and remove some of the misleading underscores ( #1584 )
...
* chore: Remove unused name from Segment and remove some of the misleading underscores
* chore: Access members of `Segment` directly
2020-08-16 22:16:05 -04:00
Zhenhui Xie
b11fe2ad30
fix: Fix variable styles in string formatter ( #1069 )
...
* fix: Fix styling in variables
* fix: Fix clippy
* fix: Allow passing styles down to segments with no style
* fix: Fix clippy
2020-04-10 18:23:20 +02:00
Zhenhui Xie
22dc419a3e
improvement: add parser for format strings ( #1021 )
...
This PR implements the parser of format strings described in #624 .
2020-04-06 13:16:18 -04:00
Jon Grythe Stødle
8e5fa60fc8
feat: Add the starship explain
command ( #699 )
...
This adds the explain argument to Starship, which explains what the printed modules in the prompt are.
2020-01-01 23:19:08 -05:00
Matan Kushner
05210b9510
refactor: Go from Rust workspaces to a package with nested packages ( #480 )
2019-10-04 22:30:46 +09:00
Zhenhui Xie
dd0b1a1aa2
refactor: Refactoring config ( #383 )
...
This PR refactors config and puts configuration files for all modules in `configs/`.
2019-09-30 21:10:35 +09:00
Neil Kistner
aa26c5bca4
fix: Update Module::is_empty to check value of segments ( #332 )
...
Previously, a set of empty segments would cause the module to print. This changes the
logic of Module::is_empty to check that all the segments are empty instead.
2019-09-16 00:03:44 -05:00
Nick Young
7e891f17c1
perf: Lazy load files from directory ( #335 )
...
Changes context to use `once_cell` to lazily evaluate directory listing on first use.
2019-09-14 09:23:53 -05:00
Matan Kushner
f40f73dc8e
fix: Address longstanding linter errors
2019-08-05 11:05:08 -04:00
Matan Kushner
097f1b05f1
Add support for prompt configuration ( #62 )
...
- Create `Config` struct that is added to `Context` when initialized
- Read `~/.confg/starship.toml` during initialization (can be updated later to also look at `$XDG_CONFIG_HOME`)
- `Context` now has a method for creating modules. This allows us to provide modules with a reference to the configuration specific to that module
2019-06-10 15:56:17 +01:00
Matan Kushner
c6ee5c6ac1
Refactor segments into modules ( #40 )
2019-05-01 16:34:24 -04:00
Matan Kushner
bca4a7079f
Fix bug in path truncation
...
Paths with 3 components would truncate to 2 despite the truncation length begin set to 3.
2019-04-15 11:40:40 -04:00
Matan Kushner
4ce4899f81
Add fish_prompt
2019-04-13 00:34:56 -04:00
Matan Kushner
240fb6a02c
Add some documentation for segment
2019-04-12 23:11:00 -04:00
Matan Kushner
9d4492c313
Make segments optionals
2019-04-12 23:06:48 -04:00
Matan Kushner
d62bb107f2
Remove unnecessary lifetimes
2019-04-12 19:18:47 -04:00
Matan Kushner
a0e4172602
Use copy to return segment
2019-04-12 19:11:40 -04:00
Matan Kushner
fec5c4db4e
Use builder pattern in char section
2019-04-12 18:12:29 -04:00
Matan Kushner
d82ebc4457
Add builder pattern for segment
2019-04-12 17:49:20 -04:00