wasamasa / eyebrowse

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

Make window configs "taggable" #15

Closed wasamasa closed 9 years ago

wasamasa commented 10 years ago

The internal data structure consists of elements which are a list containing the id, window config and point. The id is displayed as is in the mode line. It would be better to separate and add a caption which is displayed and defaults to (number-to-string id). That would allow renaming it interactively.

0x6d6e647a commented 9 years ago

A feature to name window configuration would be awesome! Maybe the modeline could look something like this to show the tag names?

[0:org, 1:project, 2:irc]
wasamasa commented 9 years ago

@almendez Yes, that's one of the options I'm thinking of, I want to allow a generic solution though to be able to choose between various display styles. See the inline comments for a more detailed explanation.

wasamasa commented 9 years ago

I've had an idea how to keep format strings simple.

A tag is an empty string by default, but can be set and turn into a non-empty string. To avoid introducing format spec codes with conditionals, I've decided to just use two customizable format strings instead, one that is used when a tag is present and another one if it isn't. So, assuming the available format codes are %s (slot), %t (tag) and %b (buffer), using "%s - %t" and "%s" would approximate i3 style.

While I'm at it, an extra customizable format string for the currently active item might be cool (to mark it up similiar to tmux).

braham-snyder commented 7 years ago

@wasamasa any chance you'd be interested in making (or open to someone else making) eyebrowse-switch-to-window-config behave like find-file, such that inputting a non-matching tag creates a new window config with that tag? If so, I can create a new issue for it if you'd like.

Thanks for eyebrowse!

wasamasa commented 7 years ago

@braham-snyder Sure, why not. I think you mean slot instead of tag though, as the command is currently reading in a slot.

braham-snyder commented 7 years ago

got it--made the new issue here: https://github.com/wasamasa/eyebrowse/issues/58