[PR #802] [CLOSED] Workspace ordering allowing for names of kind <number>:<_rest> to be deterministic. #9385

Closed
opened 2026-05-23 03:56:26 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/802
Author: @FranckKernel
Created: 12/7/2024
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 85130dd I prefer to have my workspace names be :, and it falls back to alphanumeric sorting then, which is locale dependant?? Works differently on differnt machine. (Workspace 10: is first on one machine, and last one another. I prefer last . So, I added some code to check if it can be n: and then order with that n. It should try to order following , :_rest, lexixographical fallback.

📊 Changes

1 file changed (+20 additions, -6 deletions)

View changed files

📝 src/modules/workspaces.rs (+20 -6)

📄 Description

…back to alphanumeric sorting then, which is locale dependant?? Works differently on differnt machine. (Workspace 10: is first on one machine, and last one another. I prefer last . So, I added some code to check if it can be n: and then order with that n. It should try to order following , :_rest, lexixographical fallback.

for stuff like that:

	name_map.1 = "1: "  
	name_map.2 = "2: "  
	name_map.3 = "3: "  
	name_map.4 = "4: "  
	name_map.5 = "5:󰄨 "  
	name_map.6 = "6: "  
	name_map.7 = "7: "  
	name_map.8 = "8: "  
	name_map.9 = "9:󰯂 "  
	name_map.10 = "10: " 

Now, 10 is consistently at the end.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JakeStanger/ironbar/pull/802 **Author:** [@FranckKernel](https://github.com/FranckKernel) **Created:** 12/7/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`85130dd`](https://github.com/JakeStanger/ironbar/commit/85130dd08ae26608949852b8317295428b1f3885) I prefer to have my workspace names be <Number>:<Icon>, and it falls back to alphanumeric sorting then, which is locale dependant?? Works differently on differnt machine. (Workspace 10:<icon> is first on one machine, and last one another. I prefer last . So, I added some code to check if it can be n:<rest> and then order with that n. It should try to order following <n>, <n>:_rest, lexixographical fallback. ### 📊 Changes **1 file changed** (+20 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/modules/workspaces.rs` (+20 -6) </details> ### 📄 Description …back to alphanumeric sorting then, which is locale dependant?? Works differently on differnt machine. (Workspace 10:<icon> is first on one machine, and last one another. I prefer last . So, I added some code to check if it can be n:<rest> and then order with that n. It should try to order following <n>, <n>:_rest, lexixographical fallback. for stuff like that: name_map.1 = "1: " name_map.2 = "2: " name_map.3 = "3: " name_map.4 = "4: " name_map.5 = "5:󰄨 " name_map.6 = "6: " name_map.7 = "7: " name_map.8 = "8: " name_map.9 = "9:󰯂 " name_map.10 = "10: " Now, 10 is consistently at the end. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-23 03:56:26 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#9385
No description provided.