Commit graph

1713 commits

Author SHA1 Message Date
Jan De Dobbeleer 55ab413d6e fix: do not render empty/whitespace segments 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 01bd42b3eb fix(config): export glyphs correctly escaped 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer ece3a97a33 chore(go): test all modules 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 83980a3dff feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer b4292e2e50 docs: add template information 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 0373d2c507 feat(config): migrate deprecated keys 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 0e056cd50d feat(template): hyperlink functions 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer e95e0d6b1b fix(engine): allow template override 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer c94e5e6efb chore(template): add tests for roundSeconds 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer eef50268a9 refactor(template): rename files 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer d5c34b58da docs: fix broken link to tests example 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer fee29f4b2e refactor: move engine to module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer c0f4b6d6f0 refactor: move title to module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 9e7abe4541 refactor: move segments to module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 4e17e4a853 refactor: public interface for segments 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 59756813d3 refactor: naming standard for segments 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer bdd13cb32f refactor: move properties logic to module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer c86b7b62bc refactor: move color logic to module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 906ece2af9 refactor: move environment into it's own module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer f7a07c6b62 refactor(segments): string() to template()
moves templating engine to Segment
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 0987cafad0 refactor: remove deprecated functionality 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer f5178e8c8c feat: remove enable_hyperlink 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer b816a0bf70 feat: templates for all segments 2022-02-03 10:44:18 +01:00
lnu d71b6e8e07 docs: powershell init sample updated 2022-01-27 12:12:58 +01:00
allcontributors[bot] 334fe6c145 docs: update .all-contributorsrc [skip ci] 2022-01-26 14:48:40 +01:00
allcontributors[bot] 7620882174 docs: update docs/docs/contributors.md [skip ci] 2022-01-26 14:48:40 +01:00
Mikolaj 6ffb9ffff0 docs: update docs/docs/install-shells.mdx [skip ci] 2022-01-26 14:47:31 +01:00
markbull 9a187c28b7 theme: update markbull
1. Add icon in "session" segment
2. Add "os" segment
3. Exchange "executiontime" and "exit" position
4. Always enable "executiontime" segment
5. Add icon in "executiontime" segment
2022-01-25 10:16:34 +01:00
allcontributors[bot] 38f9885387 docs: update .all-contributorsrc [skip ci] 2022-01-23 23:13:09 +01:00
allcontributors[bot] ae6fdf9e56 docs: update docs/docs/contributors.md [skip ci] 2022-01-23 23:13:09 +01:00
Victoria 5588a32434
theme(nightowl): fix diamond colors 2022-01-23 23:12:00 +01:00
markbull 9955d9bbb8 theme: update markbull
1. Show the root/admin icon and the current folder name in console title
2. Update the background color of behind status in git segment
3. Update the git_icon, branch_identical_icon and branch_gone_icon in git segment
2022-01-23 09:36:37 +01:00
allcontributors[bot] 75b97387f6 docs: update .all-contributorsrc [skip ci] 2022-01-22 11:43:41 +01:00
allcontributors[bot] 5568f39424 docs: update docs/docs/contributors.md [skip ci] 2022-01-22 11:43:41 +01:00
FlavienMacquignon df998f4331
theme: typo in schema 2022-01-22 11:41:38 +01:00
dependabot[bot] 81b1bc63fd chore: bump nanoid from 3.1.23 to 3.2.0 in /docs
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.23 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-22 08:03:19 +01:00
sectorogo 1b59386ef7
theme(nu4a): mixed path and locations update 2022-01-21 12:56:14 +01:00
Jan De Dobbeleer d75f6e30aa fix: use debug for logging pwd 2022-01-20 14:33:23 +01:00
Jan De Dobbeleer fc456da107 refactor: rename getcwd to pwd 2022-01-20 14:22:29 +01:00
Jan De Dobbeleer 6afa7711b2 feat: log directories on debug
relates to #1605
2022-01-20 14:22:29 +01:00
Jan De Dobbeleer 6c88285d64
fix(scoop): correct URL post installation
resolves #1617
2022-01-20 13:18:00 +01:00
Jan De Dobbeleer 8fca218a7d feat(build): static build 2022-01-19 19:46:52 +01:00
Jan De Dobbeleer 06231cb08e feat(windows): build 386 version of installer 2022-01-19 10:41:19 +01:00
Michael Guntsche de60367d79 fix(env): remove defer on platform
This is a small fix to actually store the value. Arguments to defers are apparently
evaluated immediately so put it in an anonymous function.
2022-01-19 07:43:08 +01:00
Jan De Dobbeleer ad297dbe08 fix: init cache first 2022-01-18 21:29:05 +01:00
Jan De Dobbeleer 0a09924685 fix(platform): store value in cache
resolves #1601
2022-01-18 21:08:26 +01:00
Jan De Dobbeleer 3cca2104bb feat(cache): allow for non-expiring values 2022-01-18 21:08:26 +01:00
Jan De Dobbeleer e5dd07fb9a feat: cache template environment data 2022-01-18 20:14:47 +01:00
Jan De Dobbeleer 9e77d0f939 fix(template): support surrounding variables with braces 2022-01-18 20:14:47 +01:00
Jan De Dobbeleer e6d4413ae7 feat: adjust var names for consistency
BREAKING CHANGE: adjusts the way some segment work for templates.

Mapping the var names as following will resolve the issue.
- session/title/general purpose
    - .Host -> .HostName
    - .User -> .UserName
- az
    - .UserName -> .Name
- kubectl
    - .UserName -> .User
2022-01-17 16:29:39 +01:00