Commit graph

44 commits

Author SHA1 Message Date
Jan De Dobbeleer 099f6cb6c3 fix(ansi): reset background when transparent 2024-05-29 14:14:48 +02:00
Jan De Dobbeleer eebb45ef07 fix(iterm): initialize prompt mark correctly for all supported shells 2024-05-20 20:05:16 +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 e5156a8d44 chore(lint): remove init check 2024-05-04 08:07:47 +02:00
Jan De Dobbeleer ab5a9ed3a7 chore(lint): golangci-lint 1.57.0 compatibility 2024-03-23 19:21:57 +00:00
Jan De Dobbeleer 87d1719bd0 feat(config): use custom config parser 2024-03-11 13:20:49 +01:00
Jan De Dobbeleer 011a4ab8f5 fix(ansi): allow usage of < and > in text with overrides 2024-01-26 17:14:07 +01:00
Jan De Dobbeleer 04b75ec476 fix(ansi): do not print invisible characters
resolves #4594
2024-01-11 07:56:54 +01:00
Jan De Dobbeleer bff6353b28 fix(hyperlink): use built-in format to avoid collisions
resolves #4569
2024-01-01 20:58:18 +01:00
Jan De Dobbeleer 19020c10bb fix(ansi): pop color at the end of the text
resolves #4290
2023-09-27 14:23:51 +02:00
Jan De Dobbeleer 2b51623bda fix(ansi): reset transparent on override end
resolves #4280
2023-09-24 09:23:07 +02:00
Jan De Dobbeleer bd3cd316c2 fix(ansi): restore previous override correctly 2023-09-23 22:33:39 +02:00
Jan De Dobbeleer 346091feb8 feat(colors): allow nested overrides 2023-09-08 16:23:50 +02:00
Jan De Dobbeleer f55da0ebcb fix(tooltip): position with spaces instead of ANSI 2023-08-05 17:53:58 +02:00
Jan De Dobbeleer c0429406dc chore: remove pinned golangci-lint 2023-06-15 09:33:16 +02:00
krzysdz 6544815766
feat: shell integration using FinalTerm's OSC sequences 2023-05-17 21:27:21 +00:00
Jan De Dobbeleer c34e39c4ed fix(block): adjust trailing diamond color overrides
resolves #3850
2023-05-17 09:51:38 +02:00
Jan De Dobbeleer 9239b26209 fix(xonsh): do not print hyperlink ANSI 2023-04-22 21:41:06 +02:00
Jan De Dobbeleer 3baf41e051 fix(ansi): only clear background on inline overrides
resolves #3699
2023-04-09 19:14:17 +02:00
Jan De Dobbeleer 8c5c836f22 feat: enable/disable true color per terminal 2023-03-23 10:36:23 +01:00
Jan De Dobbeleer 3b1823682d chore(go): update dependency 2023-03-20 12:45:14 +01:00
Jan De Dobbeleer c844bd871e fix(ansi): print 256 correctly
resolves #3533
2023-02-26 15:48:28 +01:00
Jan De Dobbeleer 90b8178b91 feat(shell): support xonsh 2023-02-18 16:52:13 +01:00
Jan De Dobbeleer f84e7b209f feat(shell): support elvish 2023-02-18 14:00:10 +01:00
Jan De Dobbeleer bb15f078bb feat: support tcsh
resolves #3500
2023-02-17 10:17:52 +01:00
jan De Dobbeleer 195c1a934d fix(pwsh): clear ANSI after print
resolves #65
2023-02-08 20:50:51 +01:00
jan De Dobbeleer 42b75241c7 fix(ansi): do not clear after prompt
resolves #3464
2023-02-07 20:28:54 +01:00
Jan De Dobbeleer 8452b5b1e4 fix(ansi): do not end coloring on identical colors
resolves #3366
2023-01-14 11:03:34 +01:00
Jan De Dobbeleer cc3a64fad2 refactor(ansi): remove background color on transparent 2023-01-14 11:03:34 +01:00
Jan De Dobbeleer 4f83452e84 fix(hyperlink): use unique format to avoid conflicts
BREAKING CHANGE: this can cause existing manual hyperlinks
(`[text](link)`) to stop working. To fix, change those to
the following syntax: `«text»(link)`

resolves #3353
2023-01-12 10:01:16 +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 57bfb8a419 fix(pwd): do not print quotes
relates to #2515
2023-01-09 09:18:18 +01:00
Jan De Dobbeleer f02017352d fix(fish): remove hyperlink escaping
relates to #3288
2023-01-09 09:18:18 +01:00
Jan De Dobbeleer 5eb6e99ea3 fix(ansi): allow hyperlink overrides 2023-01-06 13:59:10 +01:00
Jan De Dobbeleer 85897ce9ec fix(ansi): append remaining hyperlink
resolves #3323
2023-01-06 13:59:10 +01:00
Jan De Dobbeleer 2b576a3cce fix(ansi): do not print clear colors
resolves #3321
2023-01-06 11:02:37 +01:00
maxlandon 02c557f42e refactor(go): adapt imports for go.mod consistency 2023-01-06 07:48:14 +01:00
Jan De Dobbeleer c1bf3a16fe refactor(ansi): do not print when invisible 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 850787cd6f refactor(ansi): write inverted colors correctly for transparency 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 0ebd59297b refactor(ansi): count text correctly 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer f1b1a72868 refactor: move hyperlink logic intro writer loop 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 59ddfc2ba1 refactor: remove unused function 2023-01-05 17:54:32 +01:00
Jan De Dobbeleer 48d8a522bf refactor: rename color module to ansi 2023-01-05 17:54:32 +01:00