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

Make SPACE a valid jump key equivalent to 'a' #59

Closed
wants to merge 1 commit into from

Conversation

YorkZ
Copy link
Contributor

@YorkZ YorkZ commented Jun 4, 2015

Hi Oleh,

I've been using ace-jump for many years, but I just found that avy is even better. It's really cool, thank you very much!

I've added a small feature to make SPACE a valid jump key equivalent to the key 'a' so that instead of typing 'a', one can also type SPACE (which might be a bit easier) to get to the same position.

York

@abo-abo
Copy link
Owner

abo-abo commented Jun 4, 2015

I've added a small feature to make SPACE a valid jump key equivalent to the key 'a' so that instead of typing 'a', one can also type SPACE (which might be a bit easier) to get to the same position.

Thanks, but this may be surprising (and not useful) to other users. Could you make it customizable instead? Like:

(defvar avy-translate-char-function #'identity)

And then in appropriate places:

(setq char (funcall avy-translate-char-function char))

This can be useful for adding mirror key. For example, one can make SPACE an
alternative of 'a', by adding:

(setq avy-translate-char-function
      (lambda (c) (if (= c 32) ?a c)))

to allow typing SPACE instead of character 'a' to jump to the location
highlighted by 'a'.
@YorkZ
Copy link
Contributor Author

YorkZ commented Jun 4, 2015

Hi Oleh,

Good idea! I've made the suggested changes. Please refer to my commit message for more details.

Thanks

@abo-abo abo-abo closed this in 035d663 Jun 4, 2015
@abo-abo
Copy link
Owner

abo-abo commented Jun 4, 2015

Thanks!

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