* Fast Access to TODO States without C-t
@ 2014-04-14 22:54 Esben Stien
2014-04-15 1:58 ` Eric Abrahamsen
2014-04-15 14:17 ` Greg Troxel
0 siblings, 2 replies; 12+ messages in thread
From: Esben Stien @ 2014-04-14 22:54 UTC (permalink / raw)
To: emacs-orgmode
I'm trying to figure out how to bind fast access to TODO states, without
using C-t.
The reason is that I have C-t as escape code for my screen session.
The command org-todo is bound to C-c t here, so when I try to fast
access to the TODO state DONE(d!), I can't get to it.
C-c t d just puts 'd' in the buffer after switching to the next state.
According to the manual, I'm supposed to hit C-c C-t d
Any pointers as to how I can do this?
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
sip:b0ef@ e e
jid:b0ef@ n n
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fast Access to TODO States without C-t
2014-04-14 22:54 Fast Access to TODO States without C-t Esben Stien
@ 2014-04-15 1:58 ` Eric Abrahamsen
2014-04-15 2:10 ` Esben Stien
2014-04-15 14:17 ` Greg Troxel
1 sibling, 1 reply; 12+ messages in thread
From: Eric Abrahamsen @ 2014-04-15 1:58 UTC (permalink / raw)
To: emacs-orgmode
Esben Stien <b0ef@esben-stien.name> writes:
> I'm trying to figure out how to bind fast access to TODO states, without
> using C-t.
>
> The reason is that I have C-t as escape code for my screen session.
>
> The command org-todo is bound to C-c t here, so when I try to fast
> access to the TODO state DONE(d!), I can't get to it.
>
> C-c t d just puts 'd' in the buffer after switching to the next state.
>
> According to the manual, I'm supposed to hit C-c C-t d
>
> Any pointers as to how I can do this?
I may be misunderstanding here, but screen will send the escape key to
the running program if you hit it twice, right? I use the StumpWM window
manager, with the escape key also set to C-t, and I think both of them
behave the same way: first escape is caught, second is sent to the
program. So you'd do C-c C-t C-t d. How does that work?
Also, if you set `org-use-speed-commands' to t, you can use single
keystrokes when point is to the left of headline stars. I find this
immensely useful. Get point to the left margin and hit "t", that's all
you need.
Yours,
Eric
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fast Access to TODO States without C-t
2014-04-15 1:58 ` Eric Abrahamsen
@ 2014-04-15 2:10 ` Esben Stien
2014-04-15 2:40 ` Eric Abrahamsen
2014-04-15 7:26 ` Oleh
0 siblings, 2 replies; 12+ messages in thread
From: Esben Stien @ 2014-04-15 2:10 UTC (permalink / raw)
To: emacs-orgmode
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> I may be misunderstanding here, but screen will send the escape key to
> the running program if you hit it twice, right? I use the StumpWM window
> manager, with the escape key also set to C-t, and I think both of them
> behave the same way: first escape is caught, second is sent to the
> program. So you'd do C-c C-t C-t d. How does that work?
No, C-t C-t switches between screen windows.
> Also, if you set `org-use-speed-commands' to t, you can use single
> keystrokes when point is to the left of headline stars. I find this
> immensely useful. Get point to the left margin and hit "t", that's all
> you need.
This speedy gonzales command was really cool and I think I'll use that
for a lot of things;)
, but I don't see how I can have fast access to TODO states.
If I hit 't' over a TODO item, it just changes the state to the next
state. How can I jump to DONE(d!), f.ex?
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
sip:b0ef@ e e
jid:b0ef@ n n
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fast Access to TODO States without C-t
2014-04-15 2:10 ` Esben Stien
@ 2014-04-15 2:40 ` Eric Abrahamsen
2014-04-15 18:36 ` Esben Stien
2014-04-15 7:26 ` Oleh
1 sibling, 1 reply; 12+ messages in thread
From: Eric Abrahamsen @ 2014-04-15 2:40 UTC (permalink / raw)
To: emacs-orgmode
Esben Stien <b0ef@esben-stien.name> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> I may be misunderstanding here, but screen will send the escape key to
>> the running program if you hit it twice, right? I use the StumpWM window
>> manager, with the escape key also set to C-t, and I think both of them
>> behave the same way: first escape is caught, second is sent to the
>> program. So you'd do C-c C-t C-t d. How does that work?
>
> No, C-t C-t switches between screen windows.
Well there's got to be some way to send the escape sequence to the
running process! Googling indicates it might be C-t t -- does C-c C-t t
d work?
>> Also, if you set `org-use-speed-commands' to t, you can use single
>> keystrokes when point is to the left of headline stars. I find this
>> immensely useful. Get point to the left margin and hit "t", that's all
>> you need.
>
> This speedy gonzales command was really cool and I think I'll use that
> for a lot of things;)
>
> , but I don't see how I can have fast access to TODO states.
>
> If I hit 't' over a TODO item, it just changes the state to the next
> state. How can I jump to DONE(d!), f.ex?
I think I get the menu because I have org-use-fast-todo-selection set to
t. Look at the docstring for that variable and try a few different
values -- I think you're almost there.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fast Access to TODO States without C-t
2014-04-15 2:40 ` Eric Abrahamsen
@ 2014-04-15 18:36 ` Esben Stien
2014-04-16 2:14 ` Eric Abrahamsen
0 siblings, 1 reply; 12+ messages in thread
From: Esben Stien @ 2014-04-15 18:36 UTC (permalink / raw)
To: emacs-orgmode
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Well there's got to be some way to send the escape sequence to the
> running process! Googling indicates it might be C-t t
You're right;)
C-c C-t t sends C-c C-t to emacs. I can see it says C-c C-t in the
mode-line.
> does C-c C-t t d work?
Funnily enough, no, it does not work. It just inserts 'd' into the
buffer.
If I do M-x describe-function, I see:
org-todo is an interactive compiled Lisp function in `org.el'.
It is bound to C-c C-t, <menu-bar> <Org> <TODO Lists> <TODO/DONE/->,
C-c t.
, so basically, it should have worked.
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
sip:b0ef@ e e
jid:b0ef@ n n
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fast Access to TODO States without C-t
2014-04-15 18:36 ` Esben Stien
@ 2014-04-16 2:14 ` Eric Abrahamsen
2014-04-18 2:55 ` Esben Stien
0 siblings, 1 reply; 12+ messages in thread
From: Eric Abrahamsen @ 2014-04-16 2:14 UTC (permalink / raw)
To: emacs-orgmode
Esben Stien <b0ef@esben-stien.name> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Well there's got to be some way to send the escape sequence to the
>> running process! Googling indicates it might be C-t t
>
> You're right;)
>
> C-c C-t t sends C-c C-t to emacs. I can see it says C-c C-t in the
> mode-line.
>
>> does C-c C-t t d work?
>
> Funnily enough, no, it does not work. It just inserts 'd' into the
> buffer.
>
> If I do M-x describe-function, I see:
>
> org-todo is an interactive compiled Lisp function in `org.el'.
>
> It is bound to C-c C-t, <menu-bar> <Org> <TODO Lists> <TODO/DONE/->,
> C-c t.
>
> , so basically, it should have worked.
If you don't have org-use-fast-todo-selection set to t, all it's
supposed to do is shift the heading under point to the next defined TODO
keyword. What's your value of that variable? Does it work as expected if
you call M-x org-todo directly? Have you tried with a prefix: C-u C-c
C-t t -- it ought to let you complete on TODO keywords. Something in
there has to work...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fast Access to TODO States without C-t
2014-04-15 2:10 ` Esben Stien
2014-04-15 2:40 ` Eric Abrahamsen
@ 2014-04-15 7:26 ` Oleh
2014-04-17 6:38 ` Bastien
1 sibling, 1 reply; 12+ messages in thread
From: Oleh @ 2014-04-15 7:26 UTC (permalink / raw)
To: Esben Stien; +Cc: emacs-orgmode
Hi Esben,
> If I hit 't' over a TODO item, it just changes the state to the next
> state. How can I jump to DONE(d!), f.ex?
There's https://github.com/abo-abo/worf (also in MELPA) - an
alternative to org speed keys.
It's inspired by vi, so your task is handled by "cwd" (change word
DONE). Other stuff works as well, such as "cw[tnc]" for (change word
[TODO NEXT CANCELLED]).
Similarly:
"cp" is change property,
"dp" is delete property,
"p" is move to property,
"ct" is change tag,
"hjkl" - navigate left/down/up/right
"d2j" - delete two headings down
"d3k" - delete three headings up
"yj" - copy one heading down to kill ring
"3i" - change view to summary level 3.
"wn" - make "jk" move only by NEXT keywords.
"c" - make "hjkl" behave like Meta+arrows
"cf" - make "hjkl" behave like Shift+Meta+arrows
"cs" - make "hjkl" behave line Shift+arrows
"q" - return from the four modes above
Try it out, perhaps you'll like it.
regards,
Oleh
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fast Access to TODO States without C-t
2014-04-15 7:26 ` Oleh
@ 2014-04-17 6:38 ` Bastien
0 siblings, 0 replies; 12+ messages in thread
From: Bastien @ 2014-04-17 6:38 UTC (permalink / raw)
To: Oleh; +Cc: emacs-orgmode, Esben Stien
Oleh <ohwoeowho@gmail.com> writes:
> It's inspired by vi, so your task is handled by "cwd" (change word
> DONE). Other stuff works as well, such as "cw[tnc]" for (change word
> [TODO NEXT CANCELLED]).
>
> Similarly:
> "cp" is change property,
> "dp" is delete property,
> "p" is move to property,
> "ct" is change tag,
> "hjkl" - navigate left/down/up/right
> "d2j" - delete two headings down
> "d3k" - delete three headings up
> "yj" - copy one heading down to kill ring
> "3i" - change view to summary level 3.
> "wn" - make "jk" move only by NEXT keywords.
> "c" - make "hjkl" behave like Meta+arrows
> "cf" - make "hjkl" behave like Shift+Meta+arrows
> "cs" - make "hjkl" behave line Shift+arrows
> "q" - return from the four modes above
Wow, this is kinda crazy, but good to know people are crazy about Org!
(Many vimers I know use neat tricks to display Org tables in vim
buffers...)
--
Bastien
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fast Access to TODO States without C-t
2014-04-14 22:54 Fast Access to TODO States without C-t Esben Stien
2014-04-15 1:58 ` Eric Abrahamsen
@ 2014-04-15 14:17 ` Greg Troxel
2014-04-15 14:50 ` Thorsten Jolitz
1 sibling, 1 reply; 12+ messages in thread
From: Greg Troxel @ 2014-04-15 14:17 UTC (permalink / raw)
To: Esben Stien; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]
Esben Stien <b0ef@esben-stien.name> writes:
> I'm trying to figure out how to bind fast access to TODO states, without
> using C-t.
>
> The reason is that I have C-t as escape code for my screen session.
This isn't what you asked, but I would suggest changing your escape key
and perhaps using tmux instead of screen. Surely screen has way to send
the escape key, but you may need to configure it.
I thought for a long time about escape keys. screen defaults to C-a and
tmux to C-b. As an emacs user, I use both of those quite a lot. So I
went through all the rest of the control characters, and found the one
that I have the least use for to be C-j. And then I set tmux so that
C-j C-j sends a single C-j to the terminal session. The only time I
need to type this is when searching for strings that contain newlines,
which is a once/day kind of thing for me.
I also switched from screen to tmux, initially for no good reason (the
cool kids were using tmux, and they all said they liked it better), but
I've been using more and more of it and find very little to complain
about.
Here's my .tmux.conf to set the prefix to C-j:
----------------------------------------
unbind-key C-b
bind-key C-j send-prefix
set-option -g prefix C-j
----------------------------------------
[-- Attachment #2: Type: application/pgp-signature, Size: 180 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fast Access to TODO States without C-t
2014-04-15 14:17 ` Greg Troxel
@ 2014-04-15 14:50 ` Thorsten Jolitz
2014-04-15 15:12 ` Nick Dokos
0 siblings, 1 reply; 12+ messages in thread
From: Thorsten Jolitz @ 2014-04-15 14:50 UTC (permalink / raw)
To: emacs-orgmode
Greg Troxel <gdt@ir.bbn.com> writes:
> Esben Stien <b0ef@esben-stien.name> writes:
>
>> I'm trying to figure out how to bind fast access to TODO states, without
>> using C-t.
>>
>> The reason is that I have C-t as escape code for my screen session.
>
> This isn't what you asked, but I would suggest changing your escape key
> and perhaps using tmux instead of screen. Surely screen has way to send
> the escape key, but you may need to configure it.
>
> I thought for a long time about escape keys. screen defaults to C-a and
> tmux to C-b. As an emacs user, I use both of those quite a lot. So I
> went through all the rest of the control characters, and found the one
> that I have the least use for to be C-j.
I thought about that too and came up with C-o as tmux prefix key,
probably I actually do use the scratch buffer quite frequently:
,-------------------------------------------------------------------
| C-j runs the command eval-print-last-sexp, which is an interactive
| compiled Lisp function in `lisp-mode.el'.
`-------------------------------------------------------------------
I forgot what was originally bound to C-o, but noticed that other Emacs
users independently chose the same prefix for Tmux, so it must have been
something not used that often.
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fast Access to TODO States without C-t
2014-04-15 14:50 ` Thorsten Jolitz
@ 2014-04-15 15:12 ` Nick Dokos
0 siblings, 0 replies; 12+ messages in thread
From: Nick Dokos @ 2014-04-15 15:12 UTC (permalink / raw)
To: emacs-orgmode
Thorsten Jolitz <tjolitz@gmail.com> writes:
> I thought about that too and came up with C-o as tmux prefix key,
> probably I actually do use the scratch buffer quite frequently:
>
> ,-------------------------------------------------------------------
> | C-j runs the command eval-print-last-sexp, which is an interactive
> | compiled Lisp function in `lisp-mode.el'.
> `-------------------------------------------------------------------
>
> I forgot what was originally bound to C-o,
open-line usually.
> but noticed that other Emacs users independently chose the same prefix
> for Tmux, so it must have been something not used that often.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-04-18 2:55 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 22:54 Fast Access to TODO States without C-t Esben Stien
2014-04-15 1:58 ` Eric Abrahamsen
2014-04-15 2:10 ` Esben Stien
2014-04-15 2:40 ` Eric Abrahamsen
2014-04-15 18:36 ` Esben Stien
2014-04-16 2:14 ` Eric Abrahamsen
2014-04-18 2:55 ` Esben Stien
2014-04-15 7:26 ` Oleh
2014-04-17 6:38 ` Bastien
2014-04-15 14:17 ` Greg Troxel
2014-04-15 14:50 ` Thorsten Jolitz
2014-04-15 15:12 ` Nick Dokos
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.