Commit graph

104 commits

Author SHA1 Message Date
L. Yeung 485f45c496 feat(template): add .PSWD 2024-08-06 14:26:38 +02:00
L. Yeung 69556d6fb6 docs(templates): correct example for matchP helper function
Some checks are pending
Code QL / code-ql (push) Waiting to run
Azure Static Web Apps CI/CD / Build and Deploy (push) Waiting to run
2024-08-05 10:08:47 +02:00
Jan De Dobbeleer a24d6a59a7 docs(block): remove incorrect code tag
Some checks are pending
Code QL / code-ql (push) Waiting to run
Azure Static Web Apps CI/CD / Build and Deploy (push) Waiting to run
Release / changelog (push) Waiting to run
Release / artifacts (push) Blocked by required conditions
resolves #5408
2024-08-04 20:38:09 +02:00
Aria Bounds a43f57dd79 feat(pwsh): pass original last execution status to Set-PoshContext for use in pwsh alias 2024-07-27 18:02:32 +02:00
Jan De Dobbeleer cdfd249b28 fix(bash): remove rprompt support
BREAKING CHANGE: rprompt is no longer supported for bash due to too many
side effects that have no solution in sight.
2024-07-22 09:22:10 +02:00
Jan De Dobbeleer c5195f6668 fix(bash): correctly align multiline prompt
relates to #5308
2024-07-22 09:22:10 +02:00
Jan De Dobbeleer 34a9b62a16 docs(block): add context for enable_cursor_positioning 2024-07-14 07:50:45 +02:00
Jan De Dobbeleer 415d310c69 docs(general): add default values 2024-07-11 21:25:16 +02:00
Jan De Dobbeleer 507f296124 docs(bash): highlight broken powerline in Git Bash 2024-07-08 16:53:01 +02:00
Jan De Dobbeleer b103581ed6 refactor(prompt): explicitly enable cursor positioning 2024-07-08 16:53:01 +02:00
Jan De Dobbeleer 8b6933160a feat(transient): allow setting a newline 2024-07-06 10:33:36 +02:00
Jan De Dobbeleer f891a26fe9 docs(sidebar): restructure segment layout
resolves #5171
2024-07-05 12:31:42 +02:00
Jan De Dobbeleer 3537f3fd49 fix(upgrade): enable for all platforms
resolves #5184
2024-06-29 20:04:48 +02:00
Jacob Bundgaard cf3f13244f docs: describe interaction between disable_notice and auto_upgrade 2024-06-28 10:03:35 +02:00
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