Commit graph

74 commits

Author SHA1 Message Date
Jan De Dobbeleer 1bde6f929b feat(nu): transient prompt 2023-10-18 11:19:14 +02:00
LunarMarathon 59edcc7ed0 docs: correct typos 2023-10-05 11:41:05 +02:00
Jan De Dobbeleer 2c7aa8c490 docs(pwd): add template context 2023-08-31 08:46:31 +02:00
Carl Walsh 5e169f1599 docs: fix dead exit link
Fix a dead doc link.
Context: #4084 renamed segment exit -> status.
2023-08-27 10:26:19 +02:00
Jan De Dobbeleer 3b1bf903d9 docs(templates): use correct upper-case .Var 2023-08-25 12:09:54 +02:00
Jan De Dobbeleer aa51cd65d0 fix(pwsh): patch PowerShell color bleed
relates to #65
2023-08-09 08:28:35 +02:00
Jan De Dobbeleer 8aac0992cd feat(template): add hresult function 2023-07-29 14:59:01 +02:00
Jan De Dobbeleer 0af3029cf1 fix(cursor): allow disabling cursor positioning
resolves #4072
2023-07-24 19:20:41 +02:00
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