emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] new key bindings
@ 2010-05-13  5:57 Eric Schulte
  2010-05-17  7:27 ` Daniel Clemente
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Schulte @ 2010-05-13  5:57 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

Org-babel is now making use of the newly available C-c C-v key binding.

All Org-babel keybindings are now located behind this prefix, see the
updated org reference card (/doc/orgcard.pdf in the org-mode repo) for
the specific keybindings, they are also shown below.

Best -- Eric


[-- Attachment #2.1: Type: text/plain, Size: 924 bytes --]

| execute code block at point                                       | C-c C-c     |
| open results of code block at point                               | C-c C-o     |
| preview body of code block at point                               | C-c C-v C-p |
| go to named code block                                            | C-c C-v C-g |
| execute all code blocks in current buffer                         | C-c C-v C-b |
| execute all code blocks in current subtree                        | C-c C-v C-s |
| tangle code blocks in current file                                | C-c C-v C-t |
| tangle code blocks in supplied file                               | C-c C-v C-T |
| ingest all code blocks in supplied file into the Library of Babel | C-c C-v C-l |
| switch to the session of the current code block                   | C-c C-v C-z |
| view sha1 hash of the current code block                          | C-c C-v C-h |

[-- Attachment #2.2: Type: text/html, Size: 1034 bytes --]

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: [babel] new key bindings
  2010-05-13  5:57 [babel] new key bindings Eric Schulte
@ 2010-05-17  7:27 ` Daniel Clemente
  2010-05-17  9:05   ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Clemente @ 2010-05-17  7:27 UTC (permalink / raw)
  To: Eric Schulte; +Cc: Org Mode


[-- Attachment #1.1: Type: text/plain, Size: 1345 bytes --]

I think this key reminder table should be somehow displayed or offered under
a C-c C-v prefix, in the same way as C-c a, C-c C-a, C-c e.
Or at least under C-c C-v ? or C-c C-v h

-- Daniel

On Thu, May 13, 2010 at 7:57 AM, Eric Schulte <schulte.eric@gmail.com>wrote:

> Org-babel is now making use of the newly available C-c C-v key binding.
>
> All Org-babel keybindings are now located behind this prefix, see the
> updated org reference card (/doc/orgcard.pdf in the org-mode repo) for
> the specific keybindings, they are also shown below.
>
> Best -- Eric
>
>
>   execute code block at pointC-c C-c open results of code block at pointC-c
> C-o preview body of code block at pointC-c C-v C-p go to named code blockC-c
> C-v C-g execute all code blocks in current bufferC-c C-v C-b execute all
> code blocks in current subtreeC-c C-v C-s tangle code blocks in current
> fileC-c C-v C-t tangle code blocks in supplied fileC-c C-v C-T ingest all
> code blocks in supplied file into the Library of BabelC-c C-v C-l switch
> to the session of the current code blockC-c C-v C-z view sha1 hash of the
> current code blockC-c C-v C-h
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

[-- Attachment #1.2: Type: text/html, Size: 2279 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: [babel] new key bindings
  2010-05-17  7:27 ` Daniel Clemente
@ 2010-05-17  9:05   ` Carsten Dominik
  2010-05-17 23:09     ` Eric Schulte
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2010-05-17  9:05 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: Org Mode


On May 17, 2010, at 9:27 AM, Daniel Clemente wrote:

> I think this key reminder table should be somehow displayed or  
> offered under a C-c C-v prefix, in the same way as C-c a, C-c C-a, C- 
> c e.
> Or at least under C-c C-v ? or C-c C-v h
>
> -- Daniel
>
> On Thu, May 13, 2010 at 7:57 AM, Eric Schulte  
> <schulte.eric@gmail.com> wrote:
> Org-babel is now making use of the newly available C-c C-v key  
> binding.
>
> All Org-babel keybindings are now located behind this prefix, see the
> updated org reference card (/doc/orgcard.pdf in the org-mode repo) for
> the specific keybindings, they are also shown below.
>
> Best -- Eric
>
>
> execute code block at point
> C-c C-c
> open results of code block at point
> C-c C-o
> preview body of code block at point
> C-c C-v C-p
> go to named code block
> C-c C-v C-g
> execute all code blocks in current buffer
> C-c C-v C-b
> execute all code blocks in current subtree
> C-c C-v C-s
> tangle code blocks in current file
> C-c C-v C-t
> tangle code blocks in supplied file
> C-c C-v C-T
> ingest all code blocks in supplied file into the Library of Babel
> C-c C-v C-l
> switch to the session of the current code block
> C-c C-v C-z
> view sha1 hash of the current code block
> C-c C-v C-h

Indeed, eric, you should not bind C-h in this keymap - this
is one of those conventions.  If you don't, then C-v C-v C-h
will display the keys in this prefix map automatically.

- Carsten

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

* Re: [babel] new key bindings
  2010-05-17  9:05   ` Carsten Dominik
@ 2010-05-17 23:09     ` Eric Schulte
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Schulte @ 2010-05-17 23:09 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Org Mode

Ok thanks,

I've changed the binding of `org-babel-sha1-hash' to C-c C-v C-a so that
it no longer shadows the key-binding help.  While making changes to this
key binding I've made two other changes.

1) I've changed org-babel-tangle-file from C-c C-v C-T to C-c C-v C-f,
   because it was shadowing the binding of org-babel-tangle

2) I've added the option of calling any key-binding without holding
   control on the final character.

The resulting key-binding map is as shown below.

Thanks -- Eric

--8<---------------cut here---------------start------------->8---
\f
Major Mode Bindings Starting With C-c C-v:
key             binding
---             -------

C-c C-v C-a     org-babel-sha1-hash
C-c C-v C-b     org-babel-execute-buffer
C-c C-v C-f     org-babel-tangle-file
C-c C-v C-g     org-babel-goto-named-source-block
C-c C-v C-l     org-babel-lob-ingest
C-c C-v C-p     org-babel-expand-src-block
C-c C-v C-s     org-babel-execute-subtree
C-c C-v C-t     org-babel-tangle
C-c C-v C-z     org-babel-switch-to-session
C-c C-v a       org-babel-sha1-hash
C-c C-v b       org-babel-execute-buffer
C-c C-v f       org-babel-tangle-file
C-c C-v g       org-babel-goto-named-source-block
C-c C-v h       org-babel-describe-bindings
C-c C-v l       org-babel-lob-ingest
C-c C-v p       org-babel-expand-src-block
C-c C-v s       org-babel-execute-subtree
C-c C-v t       org-babel-tangle
C-c C-v z       org-babel-switch-to-session

\f
Global Bindings Starting With C-c C-v:
key             binding
---             -------

[back]
--8<---------------cut here---------------end--------------->8---

Carsten Dominik <carsten.dominik@gmail.com> writes:

> On May 17, 2010, at 9:27 AM, Daniel Clemente wrote:
>
>> I think this key reminder table should be somehow displayed or
>> offered under a C-c C-v prefix, in the same way as C-c a, C-c C-a,
>> C- 
>> c e.
>> Or at least under C-c C-v ? or C-c C-v h
>>
>> -- Daniel
>>
>> On Thu, May 13, 2010 at 7:57 AM, Eric Schulte
>> <schulte.eric@gmail.com> wrote:
>> Org-babel is now making use of the newly available C-c C-v key
>> binding.
>>
>> All Org-babel keybindings are now located behind this prefix, see the
>> updated org reference card (/doc/orgcard.pdf in the org-mode repo) for
>> the specific keybindings, they are also shown below.
>>
>> Best -- Eric
>>
>>
>> execute code block at point
>> C-c C-c
>> open results of code block at point
>> C-c C-o
>> preview body of code block at point
>> C-c C-v C-p
>> go to named code block
>> C-c C-v C-g
>> execute all code blocks in current buffer
>> C-c C-v C-b
>> execute all code blocks in current subtree
>> C-c C-v C-s
>> tangle code blocks in current file
>> C-c C-v C-t
>> tangle code blocks in supplied file
>> C-c C-v C-T
>> ingest all code blocks in supplied file into the Library of Babel
>> C-c C-v C-l
>> switch to the session of the current code block
>> C-c C-v C-z
>> view sha1 hash of the current code block
>> C-c C-v C-h
>
> Indeed, eric, you should not bind C-h in this keymap - this
> is one of those conventions.  If you don't, then C-v C-v C-h
> will display the keys in this prefix map automatically.
>
> - Carsten

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

end of thread, other threads:[~2010-05-17 23:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-13  5:57 [babel] new key bindings Eric Schulte
2010-05-17  7:27 ` Daniel Clemente
2010-05-17  9:05   ` Carsten Dominik
2010-05-17 23:09     ` Eric Schulte

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).