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