all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Free `1' and `0' keys from the org-agenda interface ?
  2007-10-16 17:23 Free `1' and `0' keys from the org-agenda interface ? Bastien
@ 2007-10-16 16:31 ` Adam Spiers
  2007-10-16 17:53   ` Bastien
  2007-10-16 23:49 ` Andrew J. Korty
  1 sibling, 1 reply; 9+ messages in thread
From: Adam Spiers @ 2007-10-16 16:31 UTC (permalink / raw)
  To: emacs-orgmode

Bastien (bzg@altern.org) wrote:
> Hi all,
> 
> i'd like to have your opinion on this.
> 
> I tend to use my `org-agenda-custom-commands' in a strict order.  
> I first check for a first view, then check for a second view, etc.  
> It would be nice to be able to use `1' for the first view -- but
> it's currently used to restrict the agenda view to the buffer.
> 
> My suggestion for a possible replacement for the `1' and `0' keys 
> would be this:
> 
>  `<' : restrict to the buffer
> `<<' : restrict to the region or subtree
> 
> Note: `<' could also be `@' since `C-c @' means select the current
> subtree.
> 
> I think it's okay to have some kind of "incremental" restriction,
> but I'm not sure about this.  And I'd definitely like to have the
> [0-9] keys for my own agenda views :)

Wow, what can I say?  I think those two mails arrived with 30 seconds
of each other - great minds think alike ;-)

I'm only just starting to use custom commands; however, your comment
about typically invoking custom commands in a strict order doesn't
surprise me.  I might well find my usage habits following the same
trait.

I'm curious about your suggestion of '<<' though - does that imply the
sub-keymap functionality I asked for already exists?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Free `1' and `0' keys from the org-agenda interface ?
@ 2007-10-16 17:23 Bastien
  2007-10-16 16:31 ` Adam Spiers
  2007-10-16 23:49 ` Andrew J. Korty
  0 siblings, 2 replies; 9+ messages in thread
From: Bastien @ 2007-10-16 17:23 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

i'd like to have your opinion on this.

I tend to use my `org-agenda-custom-commands' in a strict order.  
I first check for a first view, then check for a second view, etc.  
It would be nice to be able to use `1' for the first view -- but
it's currently used to restrict the agenda view to the buffer.

My suggestion for a possible replacement for the `1' and `0' keys 
would be this:

 `<' : restrict to the buffer
`<<' : restrict to the region or subtree

Note: `<' could also be `@' since `C-c @' means select the current
subtree.

I think it's okay to have some kind of "incremental" restriction,
but I'm not sure about this.  And I'd definitely like to have the
[0-9] keys for my own agenda views :)

Did anyone ever meet the same need?

Thanks,

PS: I think today will be the craziest day in term of list traffic!

-- 
Bastien

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Free `1' and `0' keys from the org-agenda interface ?
  2007-10-16 17:53   ` Bastien
@ 2007-10-16 17:39     ` Adam Spiers
  2007-10-16 21:26       ` Bastien
  0 siblings, 1 reply; 9+ messages in thread
From: Adam Spiers @ 2007-10-16 17:39 UTC (permalink / raw)
  To: emacs-orgmode

On Tue, Oct 16, 2007 at 06:53:47PM +0100, Bastien wrote:
> Adam Spiers <orgmode@adamspiers.org> writes:
> 
> > I'm curious about your suggestion of '<<' though - does that imply the
> > sub-keymap functionality I asked for already exists?
> 
> I first thought yes, since it looks like the first `<' keystroke is
> waiting for the next one (at least from the description I proposed).
> 
> But in fact there is no sub-keymap involved here: it's only about
> cycling through three states: 
> 
> - not-restricted
> - buffer-restricted
> - subtree/region-resctricted
> 
> Then three keystrokes would turn off the restriction.
> 
> But calling a sub-keymap with `<' could also be useful:
> 
> `< <' : cycle through default restricted states (see above)

Hmm, that doubles the number of keypresses to achieve a given state,
which is a bit cumbersome.  But if it's customizable, who cares? :-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Free `1' and `0' keys from the org-agenda interface ?
  2007-10-16 16:31 ` Adam Spiers
@ 2007-10-16 17:53   ` Bastien
  2007-10-16 17:39     ` Adam Spiers
  0 siblings, 1 reply; 9+ messages in thread
From: Bastien @ 2007-10-16 17:53 UTC (permalink / raw)
  To: emacs-orgmode

Adam Spiers <orgmode@adamspiers.org> writes:

> I'm curious about your suggestion of '<<' though - does that imply the
> sub-keymap functionality I asked for already exists?

I first thought yes, since it looks like the first `<' keystroke is
waiting for the next one (at least from the description I proposed).

But in fact there is no sub-keymap involved here: it's only about
cycling through three states: 

- not-restricted
- buffer-restricted
- subtree/region-resctricted

Then three keystrokes would turn off the restriction.

But calling a sub-keymap with `<' could also be useful:

`< <' : cycle through default restricted states (see above)
`< f' : prompt for an org-agenda-file to restrict to
`< s' : prompt for a subtree to restrict

Caveat: we should better not allow interactive restriction to a
property, since this is the job of the custom-command itself...

My 2.5 cents.

-- 
Bastien

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Free `1' and `0' keys from the org-agenda interface ?
  2007-10-16 17:39     ` Adam Spiers
@ 2007-10-16 21:26       ` Bastien
  2007-10-17 15:47         ` Carsten Dominik
  0 siblings, 1 reply; 9+ messages in thread
From: Bastien @ 2007-10-16 21:26 UTC (permalink / raw)
  To: emacs-orgmode

Adam Spiers <orgmode@adamspiers.org> writes:

>> `< <' : cycle through default restricted states (see above)
>
> Hmm, that doubles the number of keypresses to achieve a given state,
> which is a bit cumbersome.  But if it's customizable, who cares? :-)

I wouldn't mind having single keys to achieve this - it's just that I
thought `1' and `0' where not the best choice.

-- 
Bastien

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Free `1' and `0' keys from the org-agenda interface ?
  2007-10-16 17:23 Free `1' and `0' keys from the org-agenda interface ? Bastien
  2007-10-16 16:31 ` Adam Spiers
@ 2007-10-16 23:49 ` Andrew J. Korty
  2007-10-17  1:13   ` Bastien
  1 sibling, 1 reply; 9+ messages in thread
From: Andrew J. Korty @ 2007-10-16 23:49 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg@altern.org> writes:

> I tend to use my `org-agenda-custom-commands' in a strict order.  
> I first check for a first view, then check for a second view, etc.  

Why not just display all those views, in order, with one custom command?
For example, when I'm at home, I run C-c a h:

 ("h" "home contexts"
  ((tags-todo "+@home+@computer/TODO" nil)
   (tags-todo "+@home-@computer/TODO" nil)
   (tags-todo "+@computer-@home-@office/TODO" nil)
   (tags-todo "@phone/TODO" nil)
   (tags-todo "@any/TODO" nil))

-- 
ajk

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: Free `1' and `0' keys from the org-agenda interface ?
  2007-10-16 23:49 ` Andrew J. Korty
@ 2007-10-17  1:13   ` Bastien
  0 siblings, 0 replies; 9+ messages in thread
From: Bastien @ 2007-10-17  1:13 UTC (permalink / raw)
  To: emacs-orgmode

ajk@iu.edu (Andrew J. Korty) writes:

> Bastien <bzg@altern.org> writes:
>
>> I tend to use my `org-agenda-custom-commands' in a strict order.  
>> I first check for a first view, then check for a second view, etc.  
>
> Why not just display all those views, in order, with one custom
> command?

Yes, good idea. But I still think it would be nice to be able to bind
the [0-9] keys. One advantage of these keys is that they are very easy
to memorize, and this might help when trying to go from one agenda view
to another.

-- 
Bastien

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Free `1' and `0' keys from the org-agenda interface ?
  2007-10-16 21:26       ` Bastien
@ 2007-10-17 15:47         ` Carsten Dominik
  2007-10-17 17:03           ` Adam Spiers
  0 siblings, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2007-10-17 15:47 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode


On Oct 16, 2007, at 23:26, Bastien wrote:

> Adam Spiers <orgmode@adamspiers.org> writes:
>
>>> `< <' : cycle through default restricted states (see above)
>>
>> Hmm, that doubles the number of keypresses to achieve a given state,
>> which is a bit cumbersome.  But if it's customizable, who cares? :-)
>
> I wouldn't mind having single keys to achieve this - it's just that I
> thought `1' and `0' where not the best choice.

Yes, I can see that the 0 and one would be useful in other 
circumstances.
And I don't *relly* think that a double "<" would be so bad, because
don't think restricting an agenda command to a region or subtree is
used frequently, is it?

- Carsten

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Free `1' and `0' keys from the org-agenda interface ?
  2007-10-17 15:47         ` Carsten Dominik
@ 2007-10-17 17:03           ` Adam Spiers
  0 siblings, 0 replies; 9+ messages in thread
From: Adam Spiers @ 2007-10-17 17:03 UTC (permalink / raw)
  To: emacs-orgmode

On Wed, Oct 17, 2007 at 05:47:58PM +0200, Carsten Dominik wrote:
> On Oct 16, 2007, at 23:26, Bastien wrote:
> >Adam Spiers <orgmode@adamspiers.org> writes:
> >
> >>>`< <' : cycle through default restricted states (see above)
> >>
> >>Hmm, that doubles the number of keypresses to achieve a given state,
> >>which is a bit cumbersome.  But if it's customizable, who cares? :-)
> >
> >I wouldn't mind having single keys to achieve this - it's just that I
> >thought `1' and `0' where not the best choice.
> 
> Yes, I can see that the 0 and one would be useful in other 
> circumstances.
> And I don't *relly* think that a double "<" would be so bad, because
> don't think restricting an agenda command to a region or subtree is
> used frequently, is it?

I have recently started using it quite a lot, e.g. to narrow to my
work or personal TODOs, which are both in files of their own.

But if sub-keymaps were to be implemented, this would be customizable
anyway, so we wouldn't need to worry about it.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-10-17 17:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-16 17:23 Free `1' and `0' keys from the org-agenda interface ? Bastien
2007-10-16 16:31 ` Adam Spiers
2007-10-16 17:53   ` Bastien
2007-10-16 17:39     ` Adam Spiers
2007-10-16 21:26       ` Bastien
2007-10-17 15:47         ` Carsten Dominik
2007-10-17 17:03           ` Adam Spiers
2007-10-16 23:49 ` Andrew J. Korty
2007-10-17  1:13   ` Bastien

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.