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

Feature request: multiple inputs for org-set-tags #890

Closed
Wilfred opened this Issue Feb 16, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@Wilfred
Contributor

Wilfred commented Feb 16, 2017

When using ivy-mode with auto-insert, I can insert multiple keywords and terminate with ivy-alt-done.

I'd like to do something similar with org-set-tags. Currently I can only input a single tag :foo: or I can manually type :foo:bar:. I'd like to be able to type :foo: and the closing : trigger completion again.

  • Is this doable?
  • Would this need to be a separate command counsel-org-set-tags or could this automatically hook in to org?
  • Is there precedent for selecting (and removing) multiple values from a list in ivy or counsel? (I.e. can I shamelessly copy from an existing command?)

abo-abo added a commit that referenced this issue Feb 17, 2017

counsel.el (counsel-org-tag-action): Fix "C-M-m"
It has to be performed in the minibuffer window.

Re #890
@abo-abo

This comment has been minimized.

Owner

abo-abo commented Feb 17, 2017

Is this doable?

Yes.

Would this need to be a separate command counsel-org-set-tags or could this automatically hook in to org?

Can't be done automatically.

Is there precedent for selecting (and removing) multiple values from a list in ivy or counsel? (I.e. can I shamelessly copy from an existing command?)

See counsel-org-tag. How it works: just press C-M-m (ivy-call) or C-M-n (ivy-next-line-and-call) to toggle each tag. Exit with either C-m or C-j or C-M-j. The accumulated tag state is displayed in the prompt.

@Wilfred

This comment has been minimized.

Contributor

Wilfred commented Feb 17, 2017

Fantastic, I didn't spot that. I did look at whether there was a counsel command, but stupidly I looked for something containing 'set-tag`. Thanks.

@Wilfred Wilfred closed this Feb 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment