
Hello, I'm attaching a module X.A.WorkspaceNames (WN) that allows to dynamically assign names to workspaces and to show them in DynamicLog, which is the kind of workflow that I was hoping DynamicWorkspaces (DW) provides. The differences are: DW allows to create, delete and rename workspaces, but their order is somewhat fixed. WN supports only renaming and swapping workspaces, so their order is changeable. With WN, we have a fixed set of workspaces, for example [1..12] assigned to F1..F12, we can rename them and change their order by swapping (just like with X.A.SwapWorkspaces). The workspace tags and their order are intact, so that xmobar shows which key switches to which workspace. This works well with XMonad.Layout.WorkspaceDir. The workflow described in Issue 335 (Manual workspace sorting mode using extensible state) may be more or less achieved using this module. When cleaning it up, I noticed that if implemented as a layout modifier instead of a custom extensible state module, we'd get the swapping behaviour for free. However, if the layout hook in config is changed (which happens sometimes), the names would be lost. That's BTW what happens with WorkspaceDir now, so it might be a good idea to reimplement WorkspaceDir using extensible state and together with the code I have call it DynamicTopicWorkspaces or something like that. I'd like to have your opinion on this so that I can polish it even further. Thanks, -- Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/

On Tue, Dec 01, 2009 at 05:38:52PM +0100, Tomas Janousek wrote:
Hello,
I'm attaching a module X.A.WorkspaceNames (WN) that allows to dynamically assign names to workspaces and to show them in DynamicLog, which is the kind of workflow that I was hoping DynamicWorkspaces (DW) provides.
Very cool! This has been on my wishlist for a while. DynamicWorkspaces also didn't do what I had hoped. I started looking into how to implement this, but didn't understand how to make use of ExtensibleState. I'll definitely try this out soon! -John

On Tue, Dec 01, 2009 at 05:38:52PM +0100, Tomas Janousek wrote:
Hello,
I'm attaching a module X.A.WorkspaceNames (WN) that allows to dynamically assign names to workspaces and to show them in DynamicLog, which is the kind of workflow that I was hoping DynamicWorkspaces (DW) provides.
By the way, just wanted to let you know that I saw this email and looking carefully at this new module is on my to-do list, but I've been busy with other things. Hopefully I will get a chance to look at it sometime this weekend! -Brent

On Tue, Dec 01, 2009 at 05:38:52PM +0100, Tomas Janousek wrote:
Hello,
I'm attaching a module X.A.WorkspaceNames (WN) that allows to dynamically assign names to workspaces and to show them in DynamicLog, which is the kind of workflow that I was hoping DynamicWorkspaces (DW) provides.
I've pushed this module (with a few minor changes and additions) to the darcs repo, it's well done. (Unfortunately, it doesn't really do what *I* want, since it doesn't play nicely with other modules which let me refer to workspaces by name. Oh well, I'll just have to make my own module. =) -Brent

Hello, On Tue, Dec 29, 2009 at 11:45:33AM -0500, Brent Yorgey wrote:
I've pushed this module (with a few minor changes and additions) to the darcs repo, it's well done.
Good, thanks. -- Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/
participants (4)
-
Brent Yorgey
-
John Li
-
Tomas Janousek
-
Tomáš Janoušek