Fixes for Tokyo Theme #6385
Replies: 5 comments 1 reply
|
@0-0-1-0-1-0-1-0 what was the issue and what did you change? |
|
Ill provide a screenshot later today, however here are the following changes: The info (first) segment had a duplicate instance of the root node in between the ram and execution time nodes, and another one at the end. Added battery node after the ram node. Updated the time format to be more like a time stamp and moved it to be the leading node in the first segment. Format is: 01/02/2006 @ 3:04:05 PM MST The path (second) segment had the wrong starting glyph, changed it to "template": "\u2523[<#ffffff>\uf115</> <#98bfad>{{ .Path }}</>]", so that it links with the prompt glyph in the last segment. Additionally, I moved the GIT node and the root node from the first segment to the second segment after the path node, and adding a bit more clarity to the root node so its clear to see you are running in SU/Admin, this also allows users to modify it down to a sameline prompt format if desired. Last thing I did was remove the chevron when inputting multilines into the command line, this is primarily for when you write something in the terminal and want to copy it back to a script, you don't have to remove the chevron afterwards. |
|
Oh I forgot one more thing, switched to using leading diamond for each segment, instead of having the leading glyph be set on the first node of each segment. I did this because in my personal version, i have a third segment for cloud based items like az/azd/gcp/project/ etc And not in all cases/prompts do I have the third segement or all those items enumerated, so the leading diamond will be set regradless of which node is present or which order: This segment goes between the first and second (path) segment: |
|
I'll get screenshots of all the configs I have: tokyo.omp.json (fixed original) tokyo-sameline.omp.json (Same as above just the prompt is on the same line as path) NOTE I updated my original post with the latest code/fixes. You can use that to see what it looks like. |
|
I see I just did some digging, looks like ill need to fork this repo, then PR from that repo into yours. Ill propose these templates with screenshots today. |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Code of Conduct
What happened?
Theres a bug with the formatting, I fixed it for myself, but not exactly sure how to do the PR here. So ill provide the code and let you decide if it should be updated.
Theme
Tokyo
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
All reactions