Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[org] Switch to insert mode after selecting template in org-capture #4380

Closed
kostajh opened this issue Jan 4, 2016 · 5 comments
Closed

[org] Switch to insert mode after selecting template in org-capture #4380

kostajh opened this issue Jan 4, 2016 · 5 comments
Labels
Enhancement ☺ Org stale marked as a stale issue/pr (usually by a bot)

Comments

@kostajh
Copy link
Contributor

kostajh commented Jan 4, 2016

If I press SPC C c, and select the default Task option from the org capture templates, I'm in a buffer with these contents, where $ is the cursor:

*** TODO$ 
  [2016-01-04 Mon]

However, I'm not in insert mode, so I always have to press i SPC or shift A to start typing. Obviously two characters isn't a huge deal but it would be nice to have the cursor ($) like so and in insert mode:

*** TODO $ 
  [2016-01-04 Mon]
@nixmaniack
Copy link
Contributor

I use hybrid style so this works for me. You'll need evil-insert-state in case of vim style.

(add-hook 'org-capture-mode-hook 'evil-hybrid-state)

For a space after TODO, you need to customize the necessary org-capture-templates.

@kostajh
Copy link
Contributor Author

kostajh commented Jan 4, 2016

(add-hook 'org-capture-mode-hook 'evil-insert-state) is perfect, actually. Adds the extra space and everything. Thanks @nixmaniack! So, what if anything would it make sense to add to the org layer?

@TheBB
Copy link
Collaborator

TheBB commented Jan 4, 2016

If that adds a space, the space was already there to begin with. If the cursor was off you were probably entering insert state with i and not a.

@nixmaniack
Copy link
Contributor

I assume vimmers like everything to start in normal state hence it's this way. It's personal choice I think. :)

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ☺ Org stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

4 participants