[patch] Prompt to select a workspace by its name

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch] Prompt to select a workspace by its name

lewo
Hi,

Attached is a patch that adds a prompt to select and view a workspace
based on its tag and its name which comes from the WorkspaceName extension.

Hoping this could interest someone else,
A.


_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

greedyViewByWorkspaceName.dpatch (48K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [patch] Prompt to select a workspace by its name

Brent Yorgey
Hi A.,

This functionality is actually already available through the XMonad.Prompt.Workspace module.  Just adding a keybinding to

workspacePrompt (windows . greedyView)

should do the trick.  Let me know if that works for you.

-Brent

On Fri, May 1, 2015 at 6:43 PM <[hidden email]> wrote:
Hi,

Attached is a patch that adds a prompt to select and view a workspace
based on its tag and its name which comes from the WorkspaceName extension.

Hoping this could interest someone else,
A.

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Reply | Threaded
Open this post in threaded view
|

Re: [patch] Prompt to select a workspace by its name

Daniel Wagner-4
I don't think workspacePrompt is the same thing -- it knows about workspace tags, but not workspace names as assigned by the WorkspaceName module.

~d

On Fri, May 29, 2015 at 12:17 PM, Brent Yorgey <[hidden email]> wrote:
Hi A.,

This functionality is actually already available through the XMonad.Prompt.Workspace module.  Just adding a keybinding to

workspacePrompt (windows . greedyView)

should do the trick.  Let me know if that works for you.

-Brent

On Fri, May 1, 2015 at 6:43 PM <[hidden email]> wrote:
Hi,

Attached is a patch that adds a prompt to select and view a workspace
based on its tag and its name which comes from the WorkspaceName extension.

Hoping this could interest someone else,
A.

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad



_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Reply | Threaded
Open this post in threaded view
|

Re: [patch] Prompt to select a workspace by its name

lewo
Daniel Wagner <[hidden email]> writes:

> I don't think workspacePrompt is the same thing -- it knows about workspace
> tags, but not workspace names as assigned by the WorkspaceName module.

Exactly, the proposed prompt allows the user to select a workspace by
its name (assigned by the WorkspaceName module) while
Xmonad.Prompt.Workspace.workspacePrompt uses the workspace tag.

I provide a new patch where the function name and signature have
been adapted to look like the original worskpacePrompt function.

Antoine.




>
> ~d
>
> On Fri, May 29, 2015 at 12:17 PM, Brent Yorgey <[hidden email]> wrote:
>
>> Hi A.,
>>
>> This functionality is actually already available through the
>> XMonad.Prompt.Workspace module.  Just adding a keybinding to
>>
>> workspacePrompt (windows . greedyView)
>>
>> should do the trick.  Let me know if that works for you.
>>
>> -Brent
>>
>> On Fri, May 1, 2015 at 6:43 PM <[hidden email]> wrote:
>>
>>> Hi,
>>>
>>> Attached is a patch that adds a prompt to select and view a workspace
>>> based on its tag and its name which comes from the WorkspaceName
>>> extension.
>>>
>>> Hoping this could interest someone else,
>>> A.
>>>
>>> _______________________________________________
>>> xmonad mailing list
>>> [hidden email]
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>>
>>
>> _______________________________________________
>> xmonad mailing list
>> [hidden email]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>
>>
> _______________________________________________
> xmonad mailing list
> [hidden email]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

workspaceNamePrompt.dpatch (49K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [patch] Prompt to select a workspace by its name

Brent Yorgey
Aha, I see now.  Thanks, I've applied this patch.  The code contained some tab characters so I also took the liberty of pushing another patch cleaning up the indentation and converting all tabs to spaces (generally regarded as good Haskell style).

-Brent

On Mon, Jun 1, 2015 at 5:44 AM <[hidden email]> wrote:
Daniel Wagner <[hidden email]> writes:

> I don't think workspacePrompt is the same thing -- it knows about workspace
> tags, but not workspace names as assigned by the WorkspaceName module.

Exactly, the proposed prompt allows the user to select a workspace by
its name (assigned by the WorkspaceName module) while
Xmonad.Prompt.Workspace.workspacePrompt uses the workspace tag.

I provide a new patch where the function name and signature have
been adapted to look like the original worskpacePrompt function.

Antoine.



>
> ~d
>
> On Fri, May 29, 2015 at 12:17 PM, Brent Yorgey <[hidden email]> wrote:
>
>> Hi A.,
>>
>> This functionality is actually already available through the
>> XMonad.Prompt.Workspace module.  Just adding a keybinding to
>>
>> workspacePrompt (windows . greedyView)
>>
>> should do the trick.  Let me know if that works for you.
>>
>> -Brent
>>
>> On Fri, May 1, 2015 at 6:43 PM <[hidden email]> wrote:
>>
>>> Hi,
>>>
>>> Attached is a patch that adds a prompt to select and view a workspace
>>> based on its tag and its name which comes from the WorkspaceName
>>> extension.
>>>
>>> Hoping this could interest someone else,
>>> A.
>>>
>>> _______________________________________________
>>> xmonad mailing list
>>> [hidden email]
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>>
>>
>> _______________________________________________
>> xmonad mailing list
>> [hidden email]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>
>>
> _______________________________________________
> xmonad mailing list
> [hidden email]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Reply | Threaded
Open this post in threaded view
|

Re: [patch] Prompt to select a workspace by its name

lewo
Brent Yorgey <[hidden email]> writes:

> Aha, I see now.  Thanks, I've applied this patch.

Ok, Thanks.

> The code contained some
> tab characters so I also took the liberty of pushing another patch cleaning
> up the indentation and converting all tabs to spaces (generally regarded as
> good Haskell style).

Ok, noted.

>
> -Brent
>
> On Mon, Jun 1, 2015 at 5:44 AM <[hidden email]> wrote:
>
>> Daniel Wagner <[hidden email]> writes:
>>
>> > I don't think workspacePrompt is the same thing -- it knows about
>> workspace
>> > tags, but not workspace names as assigned by the WorkspaceName module.
>>
>> Exactly, the proposed prompt allows the user to select a workspace by
>> its name (assigned by the WorkspaceName module) while
>> Xmonad.Prompt.Workspace.workspacePrompt uses the workspace tag.
>>
>> I provide a new patch where the function name and signature have
>> been adapted to look like the original worskpacePrompt function.
>>
>> Antoine.
>>
>>
>>
>> >
>> > ~d
>> >
>> > On Fri, May 29, 2015 at 12:17 PM, Brent Yorgey <[hidden email]>
>> wrote:
>> >
>> >> Hi A.,
>> >>
>> >> This functionality is actually already available through the
>> >> XMonad.Prompt.Workspace module.  Just adding a keybinding to
>> >>
>> >> workspacePrompt (windows . greedyView)
>> >>
>> >> should do the trick.  Let me know if that works for you.
>> >>
>> >> -Brent
>> >>
>> >> On Fri, May 1, 2015 at 6:43 PM <[hidden email]> wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> Attached is a patch that adds a prompt to select and view a workspace
>> >>> based on its tag and its name which comes from the WorkspaceName
>> >>> extension.
>> >>>
>> >>> Hoping this could interest someone else,
>> >>> A.
>> >>>
>> >>> _______________________________________________
>> >>> xmonad mailing list
>> >>> [hidden email]
>> >>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>> >>>
>> >>
>> >> _______________________________________________
>> >> xmonad mailing list
>> >> [hidden email]
>> >> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>> >>
>> >>
>> > _______________________________________________
>> > xmonad mailing list
>> > [hidden email]
>> > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>
> _______________________________________________
> xmonad mailing list
> [hidden email]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad