Commit graph

116 commits

Author SHA1 Message Date
Jan De Dobbeleer f47da9592f feat(exit): implement pipestatus
BREAKING CHANGE: exit segment is now called status segment.

The exit keyword is now deprecated and will be removed in a future
release. Please use the status keyword instead:

```diff
"segments": {
    {
-     "type": "exit"
+     "type": "status"
    }
}
```

Additionally, the status segment configuration has changed to support
$PIPESTATUS. You can include a status template to customize the
rendering of each individual status code (supported in fish, zsh and
bash).

```json
"segments": {
    {
        "type": "status",
        "properties": {
            "status_template": "{{ if gt .Code 0 }}\uf071{{ else }}\uf00c{{ end }}",
            "status_separator": " "
        }
    }
}
```

In case no $PIPESTATUS is available, the status segment will fall back
to the exit code of the last command using the status template
for rendering.

The `{{ .Meaning }}` property has been marked as deprecated and can be
replaced with `{{ reason .Code }}`, allowing it to be reused in
cross segment templates.

resolves #4070
2023-07-24 11:46:33 +02:00
krzysdz 6544815766
feat: shell integration using FinalTerm's OSC sequences 2023-05-17 21:27:21 +00:00
Jan De Dobbeleer c57975985f fix(font): migrate away from material icons
resolves #3818
2023-05-09 11:32:04 +02:00
Jan De Dobbeleer 9663a29fe6
feat(font): update to Nerd Font V3
BREAKING CHANGE: this deprecates support for Nerd Font V2 and
requires a compatible V3 Nerd Font. Note for users experiencing
issues with icons, update to the latest Nerd Font of your choice
2023-05-08 13:33:59 +02:00
Jan De Dobbeleer 287f183244 feat: allow segment to override global properties 2023-04-22 12:18:09 +02:00
L. Yeung 14f012308e fix(tooltip): check only the first word of command line 2023-04-21 20:49:03 +02:00
Jan De Dobbeleer cdc560c7bd feat(transient): add Filler 2023-04-15 18:01:25 +02:00
Jan De Dobbeleer 8fe6dd2dcf feat(template): add parsed SHLVL 2023-04-02 19:33:30 +02:00
Jan De Dobbeleer 4ff2dd233e docs: add all supported config formats 2023-03-31 21:17:00 +02:00
Mertsch 1e09120af4
docs: fix text/template link 2023-03-14 11:40:43 +01:00
甘亭 da9fea70d7 docs: fix descriptions of min_width and max_width 2023-03-09 09:28:18 +01:00
Jan De Dobbeleer c844bd871e fix(ansi): print 256 correctly
resolves #3533
2023-02-26 15:48:28 +01:00
Jan De Dobbeleer ea29c99130 feat: add global variables 2023-02-20 14:18:38 +01:00
Jan De Dobbeleer bb15f078bb feat: support tcsh
resolves #3500
2023-02-17 10:17:52 +01:00
Jan De Dobbeleer 221b2d7d51 feat(shell): restore line logic for zsh and bash 2023-02-02 19:47:14 +01:00
Jan De Dobbeleer bc21ba3aef fix(shell): do not fetch cursor position using ANSI
resolves #3434
2023-02-01 10:42:04 +01:00
Jan De Dobbeleer 4033c6f591 docs(templates): add missing custom functions 2023-01-26 19:58:31 +01:00
Jan De Dobbeleer 481878262b feat: ignore empty header line on clear
relates to #3388
2023-01-25 16:14:41 +01:00
Jan De Dobbeleer 522a216c00 feat: add .PromptCount
relates to #3388
2023-01-23 07:46:35 +01:00
Jan De Dobbeleer 7dbc3c96ea fix(cycle): cycle in a loop 2023-01-11 13:49:46 +01:00
Jan De Dobbeleer 86459f9a2f feat: cycle through colors
resolves #3327
2023-01-10 13:54:51 +01:00
Jan De Dobbeleer a627be6b64 docs(error): you can't use cross segment properties
relates to #3324
2023-01-09 09:18:18 +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
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 c5b7c7fbfc docs(templates): add context for float64 numbers in segment cache
relates to #3218
2022-12-18 15:02:57 +01:00
mirsella 93f6576da0 feat: allow segments to hide based on terminal width 2022-12-03 11:20:06 +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 82f3400814 chore: remove prefix and postfix 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 63bb1b4729 feat(cli): toggle segments on/off
resolves #3086
2022-11-17 20:58:00 +01:00
Cesar V. Sampaio 4dd5d32e0e
docs: adjust typo 2022-11-13 13:25:44 +01:00
Jan De Dobbeleer 3f83944dc3 docs: add missing version parameter 2022-11-09 08:08:47 +01:00
Jan De Dobbeleer 3efa4df088 feat(palette): conditional palettes 2022-10-14 20:25:00 +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 aecd8d6bfd feat(templates): segment alias
resolves #2811
2022-09-20 20:14:31 +02:00
L. Yeung 348cacc860 fix(pwsh): disable tooltips for ConstrainedLanguage mode 2022-09-17 17:49:57 +02:00
Jan De Dobbeleer 3057e474d7 docs: tables for data
this look a lot better
2022-09-16 16:35:44 +02:00
vimo 464b4263e6 docs: correct syntax in configuration code 2022-09-10 16:45:31 +02:00
Jan De Dobbeleer 17f75fa1ff refactor(git): no leading space on branch status 2022-09-07 18:04:41 +02:00
L. Yeung 2eceffc91b docs: tweak tips, cautions and warnings 2022-08-10 13:21:00 +02:00
Jan De Dobbeleer 35efd3cf00 feat: remove functions to enable prompt features 2022-08-05 08:38:17 +02:00
Osman Halacoglu 4093b79649 fix: grammar
You can now _Palette references_ > You can now use _Palette references_
2022-08-02 08:38:27 +02:00
L. Yeung 6723cba4b2 refactor(pwsh): unify logic of generating prompts 2022-07-28 12:47:01 +02:00
L. Yeung 000602f28a docs(transient): correct description about enabling for CMD 2022-07-25 20:59:42 +02:00
Jan De Dobbeleer 859fd0bbef feat: add osc7 support
resolves #2515
2022-07-13 13:59:21 +02:00
L. Yeung 7576d03a9f docs: fix a broken link 2022-07-10 18:05:36 +02:00
Jan De Dobbeleer 24d2ef4767 feat(templates): advanced templates logic
resolves #2491
2022-07-08 12:09:22 +02:00
Jan De Dobbeleer 9f9b91e566 feat: deprecate offset properties 2022-07-03 11:00:30 +02:00
Jan De Dobbeleer 0b0f119420 fix(template): allow literal dot word 2022-06-29 08:21:19 +02:00
Jan De Dobbeleer f403db826f feat: hide/break right aligned block on overflow
resolves #2442
2022-06-27 19:48:00 +02:00
Jan De Dobbeleer 82b83d1fa4 feat: support 256 colors
resolves #2429
2022-06-22 08:18:59 +02:00
ehawman-rosenberg a88bea85c2 fix(docs): fonts under installation 2022-06-05 08:17:32 +02:00
ehawman-rosenberg 1aa7e058f8 docs: yaml/toml documentation 2022-06-04 19:56:59 +02:00
Jan De Dobbeleer 9f65375b6a docs: rename all to mdx 2022-06-03 20:42:25 +02:00
Jan De Dobbeleer 51754843f4 docs(font): install as admin 2022-06-03 16:54:26 +02:00
Jan De Dobbeleer 1fba9d563c feat(cli): install font
relates to #2338
2022-06-03 16:36:00 +02:00
Jan De Dobbeleer 341147aa41 docs(templates): add OS information 2022-05-25 12:22:35 +02:00
Jan De Dobbeleer a51716d5ac feat(windows): accent color 2022-05-22 10:36:10 +02:00
Jan De Dobbeleer 37dd466adf feat: support overline 2022-05-20 21:59:41 +02:00
Jan De Dobbeleer 0df2433116 docs: template logic 2022-05-19 08:04:13 +02:00
Jan De Dobbeleer ea9f5dedb0 docs: cross segment template properties 2022-05-19 08:04:13 +02:00
L. Yeung 48746495d4 docs(configuration): revise reference links 2022-05-16 18:08:43 +02:00
Jan De Dobbeleer ee56154231 feat: interactive prompt sequences 2022-05-16 07:05:22 +02:00
Jan De Dobbeleer e716d3040e
refactor: rename docs -> website 2022-05-13 08:19:35 +02:00