Hello
It would be really nice if one could customize the location of the items in the status bar at the bottom of the editor. For instance, I would want to have git branch information on the right, text encoding and position on the left, etc.
Maybe allow people to sort things with something like
"window.statusBar.items": {
"left" : ["cursorPosition", "tabWidth"],
"right": ["textEncoding", "gitBranch", "feedbackButton" ]
}
Is there a canonical list somewhere of what items may be displayed in the status bar area? For example, I'm uncertain if extensions can add their own items. If so, there might need to be a way to specify the desired location of items not explicitly listed in the configuration setting:
"window.statusBar.items": {
"left" : ["cursorPosition", "tabWidth", "*"], # i.e., "put anything I didn't list on the left"
"right": ["textEncoding", "gitBranch", "feedbackButton" ]
}
So status bar items are placed by calling addEntry on an IStatusbarService. The current algorithm for inserting items is priority based as seen here. So the way status bar items are added to the status bar would likely be need to be refactored to allow users to configure where items can be placed.
As well, @benkimball, Extensions are allowed to add their own entries to the status bar, so that will have to be accounted for as well.
@bpasero, Do you or anyone else on the vscode team know of a possible way to implement such?
Any update on this?
Pinging to see if any updates on this?
Yes, please make this a feature and I will use VSCode as my new editor. But for now, Atom will have to do.
+1
Maybe it could be prioritized, e.g. 100, 95, 65 etc. to have more flexible ways
Example:
"window.statusBar.items": {
"left": [
"cursorPosition": 100,
"tabWidth": 85
],
"right": [
"textEncoding": 100,
"gitBranch": 56",
"feedbackButton": 24"
]
}
Maybe allow people to sort things with something like
"window.statusBar.items": { "left" : ["cursorPosition", "tabWidth"], "right": ["textEncoding", "gitBranch", "feedbackButton" ] }
Please no more settings in json. Drag and drop would work just fine..
But it still needs to be saved somewhere, and settings is the natural place. Drag-n-drop as an alternative UI for this seems like a good idea though.
@PLyczkowski I happen to enjoy modifying my settings in raw JSON. Beyond that, it makes it super easy to transport between installations and also allows for users to see directly how things are "under the hood"
I don't have anything to add apart from to bump this issue. Even exposing the priority of built-in status bar items would go some way to alleviating this problem.
Most helpful comment
Pinging to see if any updates on this?