1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-04 19:03:38 +00:00

docs(preset): refactor jetpack 1.0.0 (#6002)

* docs(jetpack): reorg `format` module, add continuation prompt,

* docs(jetpack): update `character` module symbols

* docs(jetpack): update `sudo` & `username` modules symbols & styles

* docs(jetpack): update `directory` module symbol & styles, add repo root

* docs(jetpack): update `cmd_duration` module - format, min_time, millisecs

* docs(jetpack): update `jobs` module format

* docs(jetpack): udpate `time` module - style & range

* docs(jetpack): refactor `battery` module - styles & threshold

* docs(jetpack): refactor `git` modules - styles & symbols

* docs(jetpack): refactor modules styles, & version format

* docs(jetpack): add version `1.0.0`

* fix(format): remove trailing comments

* fix(checks): resolve validation scheme errors

* fix: resolve schema validation failure

* Update docs/public/presets/toml/jetpack.toml

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* chore(review): remove comments

* refactor(review): remove `blink` style

* refactor(review): use correct `character` module option (`vimcmd_symbol`)

* refactor: remove user specific options

* docs(jetpack): update image

---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
This commit is contained in:
A 2024-06-28 16:41:54 -05:00 committed by GitHub
parent 9a3e87f2cb
commit 0d688c312a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 106 additions and 75 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -1,14 +1,18 @@
format = """ # version: 1.0.0
$cmd_duration\
add_newline = true
continuation_prompt = "[▸▹ ](dimmed white)"
format = """($nix_shell$container$fill$git_metrics\n)$cmd_duration\
$hostname\ $hostname\
$localip\ $localip\
$shlvl\ $shlvl\
$shell\ $shell\
$env_var\ $env_var\
$username\ $jobs\
$sudo\ $sudo\
$character\ $username\
""" $character"""
right_format = """ right_format = """
$singularity\ $singularity\
@ -19,7 +23,6 @@ $fossil_branch\
$git_branch\ $git_branch\
$git_commit\ $git_commit\
$git_state\ $git_state\
$git_metrics\
$git_status\ $git_status\
$hg_branch\ $hg_branch\
$pijul_channel\ $pijul_channel\
@ -68,7 +71,6 @@ $vlang\
$vagrant\ $vagrant\
$zig\ $zig\
$buf\ $buf\
$nix_shell\
$conda\ $conda\
$meson\ $meson\
$spack\ $spack\
@ -79,53 +81,59 @@ $openstack\
$azure\ $azure\
$crystal\ $crystal\
$custom\ $custom\
$jobs\
$status\ $status\
$os\ $os\
$container\
$battery\ $battery\
$time\ $time"""
"""
add_newline = true [fill]
symbol = ' '
[character] [character]
format = "$symbol " format = "$symbol "
success_symbol = "[◉](bold italic bright-yellow)" success_symbol = "[◎](bold italic bright-yellow)"
error_symbol = "[⊘](italic purple)" error_symbol = "[○](italic purple)"
vimcmd_symbol = "[■](italic dimmed green)"
# not supported in zsh
vimcmd_replace_one_symbol = "◌"
vimcmd_replace_symbol = "□"
vimcmd_visual_symbol = "▼"
[env_var.VIMSHELL] # vim subshell [env_var.VIMSHELL]
format = "[$env_value]($style)" format = "[$env_value]($style)"
style = 'green italic' style = 'green italic'
[sudo] [sudo]
format = "[$symbol]($style)" format = "[$symbol]($style)"
style = "italic bright-purple" style = "bold italic bright-purple"
symbol = "┈" symbol = "┈"
disabled = false disabled = false
[username] [username]
style_user = "yellow bold" style_user = "bright-yellow bold italic"
style_root = "purple bold italic" style_root = "purple bold italic"
format = "[$user]($style) " format = "[$user]($style) "
disabled = false disabled = false
show_always = false
[directory] [directory]
home_symbol = "⌂" home_symbol = "⌂"
truncation_length = 2 truncation_length = 2
truncation_symbol = "▦ " truncation_symbol = "□ "
read_only = " ■" read_only = " ◈"
use_os_path_sep = true
style = "italic blue" style = "italic blue"
format = ' [$path]($style)[$read_only]($read_only_style)' format = '[$path]($style)[$read_only]($read_only_style)'
repo_root_style = 'bold blue'
repo_root_format = '[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) [△](bold bright-blue)'
[cmd_duration] [cmd_duration]
min_time = 500 format = "[◄ $duration ](italic white)"
format = "[$duration ](italic bright-yellow)"
[jobs] [jobs]
format = "[ $symbol$number]($style)" format = "[$symbol$number]($style) "
style = "white" style = "white"
symbol = "[▶ ](blue italic)" symbol = "[▶](blue italic)"
[localip] [localip]
ssh_only = true ssh_only = true
@ -137,99 +145,118 @@ disabled = false
format = "[ $time]($style)" format = "[ $time]($style)"
time_format = "%R" time_format = "%R"
utc_time_offset = "local" utc_time_offset = "local"
style = "dimmed white" style = "italic dimmed white"
[battery] [battery]
format = "[ $percentage $symbol]($style)" format = "[ $percentage $symbol]($style)"
full_symbol = "[](italic green)" full_symbol = "█"
charging_symbol = "[↑](italic green)" charging_symbol = "[↑](italic bold green)"
discharging_symbol = "[](italic)" discharging_symbol = "↓"
unknown_symbol = "[](italic)" unknown_symbol = "░"
empty_symbol = "[](italic red)" empty_symbol = "▃"
[[battery.display]] [[battery.display]]
threshold = 40 threshold = 20
style = "dimmed yellow" style = "italic bold red"
[[battery.display]]
threshold = 60
style = "italic dimmed bright-purple"
[[battery.display]] [[battery.display]]
threshold = 70 threshold = 70
style = "dimmed white" style = "italic dimmed yellow"
[git_branch] [git_branch]
format = "[ $symbol $branch(:$remote_branch)]($style)" format = " [$branch(:$remote_branch)]($style)"
symbol = "[◬](bold bright-blue)" symbol = "[△](bold italic bright-blue)"
style = "bold italic bright-blue" style = "italic bright-blue"
truncation_symbol = "⋯"
truncation_length = 11
ignore_branches = ["main", "master"]
only_attached = true
[git_metrics]
format = '([▴$added]($added_style))([▿$deleted]($deleted_style))'
added_style = 'italic dimmed green'
deleted_style = 'italic dimmed red'
ignore_submodules = true
disabled = false
[git_status] [git_status]
style = "italic bright-blue" style = "bold italic bright-blue"
format = """([⎪$ahead_behind$staged$modified$untracked$renamed$deleted$conflicted$stashed⎥]($style))""" format = "([⎪$ahead_behind$staged$modified$untracked$renamed$deleted$conflicted$stashed⎥]($style))"
conflicted = "[◪◦](italic bright-magenta)" conflicted = "[◪◦](italic bright-magenta)"
ahead = "[▲│[${count}](bold white)│](italic green)" ahead = "[│[${count}](bold white)│](italic green)"
behind = "[▽│[${count}](bold white)│](italic red)" behind = "[│[${count}](bold white)│](italic red)"
diverged = "[◇ ▲┤[${ahead_count}](regular white)│▽┤[${behind_count}](regular white)│](italic bright-magenta)" diverged = "[◇ ▴┤[${ahead_count}](regular white)│▿┤[${behind_count}](regular white)│](italic bright-magenta)"
untracked = "[◌◦](italic bright-yellow)" untracked = "[◌◦](italic bright-yellow)"
stashed = "[◦◫◦](italic white)" stashed = "[◃◈](italic white)"
modified = "[●◦](italic yellow)" modified = "[●◦](italic yellow)"
staged = "[┤[$count](bold white)│](italic bright-cyan)" staged = "[┤[$count](bold white)│](italic bright-cyan)"
renamed = "[◎◦](italic bright-blue)" renamed = "[◎◦](italic bright-blue)"
deleted = "[✕](italic red)" deleted = "[✕](italic red)"
[deno] [deno]
format = " deno [∫ $version](blue italic)" format = " [deno](italic) [∫ $version](green bold)"
version_format = "${major}.${minor}" version_format = "${raw}"
[lua] [lua]
format = " lua [${symbol}${version}]($style)" format = " [lua](italic) [${symbol}${version}]($style)"
version_format = "${raw}"
symbol = "⨀ " symbol = "⨀ "
style = "italic bright-yellow" style = "bold bright-yellow"
[nodejs] [nodejs]
format = " node [◫ ($version)](italic bright-green)" format = " [node](italic) [◫ ($version)](bold bright-green)"
version_format = "${raw}"
detect_files = ["package-lock.json", "yarn.lock"] detect_files = ["package-lock.json", "yarn.lock"]
version_format = "${major}.${minor}" detect_folders = ["node_modules"]
detect_extensions = []
[python] [python]
format = " py [${symbol}${version}]($style)" format = " [py](italic) [${symbol}${version}]($style)"
symbol = "[⌉](italic bright-blue)⌊ " symbol = "[⌉](bold bright-blue)⌊ "
version_format = "${major}.${minor}" version_format = "${raw}"
style = "italic bright-yellow" style = "bold bright-yellow"
[ruby] [ruby]
format = " rb [${symbol}${version}]($style)" format = " [rb](italic) [${symbol}${version}]($style)"
symbol = "◆ " symbol = "◆ "
version_format = "${major}.${minor}" version_format = "${raw}"
style = "italic red" style = "bold red"
[rust] [rust]
format = " rs [$symbol$version]($style)" format = " [rs](italic) [$symbol$version]($style)"
symbol = "⊃ " symbol = "⊃ "
version_format = "${major}.${minor}" version_format = "${raw}"
style = "italic red" style = "bold red"
[package] [package]
format = " pkg [$symbol$version]($style)" format = " [pkg](italic dimmed) [$symbol$version]($style)"
version_format = "${major}.${minor}" version_format = "${raw}"
symbol = " " symbol = " "
style = "bright-yellow italic" style = "dimmed yellow italic bold"
[swift] [swift]
format = " sw [${symbol}${version}]($style)" format = " [sw](italic) [${symbol}${version}]($style)"
symbol = "◁ " symbol = "◁ "
style = "italic bright-red" style = "bold bright-red"
version_format = "${major}.${minor}" version_format = "${raw}"
[aws] [aws]
format = " aws [$symbol $profile $region]($style)" disabled = true
style = "italic blue" format = " [aws](italic) [$symbol $profile $region]($style)"
style = "bold blue"
symbol = "▲ " symbol = "▲ "
[buf] [buf]
symbol = "■ " symbol = "■ "
format = " buf [$symbol $version $buf_version]($style)" format = " [buf](italic) [$symbol $version $buf_version]($style)"
[c] [c]
symbol = " " symbol = " "
format = " c [$symbol($version(-$name))]($style)" format = " [$symbol($version(-$name))]($style)"
[conda] [conda]
symbol = "◯ " symbol = "◯ "
@ -276,8 +303,12 @@ symbol = "▴▲▴ "
format = " nim [$symbol($version )]($style)" format = " nim [$symbol($version )]($style)"
[nix_shell] [nix_shell]
symbol = "⊛ " style = 'bold italic dimmed blue'
format = " nix [$symbol$state $name]($style)" symbol = '✶'
format = '[$symbol nix⎪$state⎪]($style) [$name](italic dimmed white)'
impure_msg = '[⌽](bold dimmed red)'
pure_msg = '[⌾](bold dimmed green)'
unknown_msg = '[◌](bold dimmed ellow)'
[spack] [spack]
symbol = "◇ " symbol = "◇ "