feat(sway/workspaces): add format for negative indices #4747
+41
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Alexis,
Would this be fine for you?
Any adjustments?
I didn't want to break the former flexibility, but actually think it would be better to define the workspace index, a separator and a position (start, end). This way, one would be able to only display the index (if it's not -1 or manually set -13 or similar). Additionally, it would be possible to get rid of the separator, in case the workspace has only a number and no name.
UPDATE: Better advancement idea is below in a separate comment.
results
[1] notes[8]musicresults
notes - 18musicHappy New Year!