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

Escape % chars if present in the symbol value #550

Conversation

kaushalmodi
Copy link
Contributor

  • counsel-set-variable: The current value of the variable to be modified
    is displayed in the ivy prompt. If the symbol value has literal '%'
    characters they need to be escaped to '%%' so that they are not
    processed by ivy--reset-state.

* counsel-set-variable: The current value of the variable to be modified
  is displayed in the ivy prompt.  If the symbol value has literal '%'
  characters they need to be escaped to '%%' so that they are not
  processed by `ivy--reset-state`.
@kaushalmodi
Copy link
Contributor Author

Without this, if I have

(setq ivy-count-format "%d/%d ")

and if I call counsel-set-variable on that, those %d in "%d/%d " will be processed by ivy--reset-state.

@abo-abo abo-abo merged commit cd8a570 into abo-abo:master Jun 10, 2016
@abo-abo
Copy link
Owner

abo-abo commented Jun 10, 2016

Thanks.

@kaushalmodi kaushalmodi deleted the escape-%-in-counsel-set-variable-ivy-prompt branch June 10, 2016 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants