Commit graph

90 commits

Author SHA1 Message Date
Jan De Dobbeleer 0d94f1ceb7 docs(templates): explicitly mention OSC8
relates to #5138
2024-06-21 16:15:12 +02:00
Jan De Dobbeleer 6ee743793a feat(block): allow leading and trailing diamond
relates to #5121
2024-06-21 13:52:57 +02:00
L. Yeung e25d271d32 docs: add missing auto_upgrade setting 2024-06-19 06:51:52 +02:00
Jan De Dobbeleer d967464c8d docs: add hidden documentation 2024-06-18 13:02:00 +02:00
Nibodhika 8eb8d88a20 feat(nushell): enable set_poshcontext
resolves #5095
2024-06-18 08:46:48 +02:00
Michael Rose 3ff30f993e feat(tooltips): allow multiple tooltips for tip
Instead of rendering only the last tooltip that matches a given tip it
will now render all tooltips that trigger for that tip.
2024-06-14 13:10:52 +02:00
Jan De Dobbeleer 821e45e968 feat(template): add .AbsolutePWD 2024-06-13 15:03:51 +02:00
Jan De Dobbeleer 88d0ba2250 docs: remove broken anchor 2024-06-12 09:39:32 +02:00
Jan De Dobbeleer be47940d00 feat(powerline): add leading_powerline_symbol 2024-05-23 09:55:37 +02:00
Jan De Dobbeleer e7a10ac029 feat(iterm): add iTerm features to the root configuration
BREAKING CHANGE: The iTerm segment has been removed and its features
have been added to the root configuration. To re-enable the iTerm
features, remove the iTerm segment and add the following to your
oh-my-posh configuration:

```json
{
  "iterm_features": ["prompt_mark", "current_dir", "remote_host"]
}
```

Choose this option if you want to enable the prompt mark for shell
integration and/or enable current directory and remote host in the
iTerm status bar.
2024-05-19 14:13:01 +02:00
Jan De Dobbeleer adf97352d0 feat(notice): disable from configuration
resolves #4902
2024-05-06 20:52:45 +02:00
Jan De Dobbeleer b3ead100d2 feat(iterm): add extension support
resolves #4834
2024-04-30 16:33:55 +02:00
mountcount e75554b24b chore: fix some comments
Signed-off-by: mountcount <cuimoman@outlook.com>
2024-04-17 09:37:04 +02:00
MFedatto 72294e61e4
docs(transient): use array instead of object for sample 2024-01-12 13:48:38 +01:00
Jan De Dobbeleer 5493ddb640 feat(template): add readFile
closes #4518
2023-12-04 19:46:56 +01:00
Jan De Dobbeleer efe7398799 docs: update to docusaurus V3 2023-11-19 19:14:25 +01:00
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