wasamasa / eyebrowse

A simple-minded way of managing window configs in emacs
GNU General Public License v3.0
437 stars 24 forks source link

How to get the current workspace number? #103

Closed mrcnski closed 5 years ago

mrcnski commented 5 years ago

I may be missing something, but it's not clear to me how to get the number and/or tag of the current workspace. I know spaceline does it, but I don't have the time to delve into its source code. I feel like there should be a variable that stores this info but I can't find it.

wasamasa commented 5 years ago

There's no variable for this indeed as it's information stored per frame. There's no official API either, I neglected to introduce one back then and by the time spaceline just used the internal API it was too late to fix this mistake.

Anyway, you should be fine with using (eyebrowse--get 'current-slot). While this may change, it's rather unlikely as this package is pretty much in bugfix mode.