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

quick jump to bookmarks in counsel-find-file? #531

Closed
zeltak opened this Issue Jun 2, 2016 · 6 comments

Comments

Projects
None yet
3 participants
@zeltak

zeltak commented Jun 2, 2016

Hi

i thought it would be cool to have an option in counsel-find-file to quick jump to either the emacs bookmarks or per-defined bookmarks (maybe from a hydra?). is that possible in anyway? if not what do you think of the idea?

thx alot!

Z

@abo-abo

This comment has been minimized.

Owner

abo-abo commented Jun 2, 2016

This can be configured in a user config:

(ivy-set-actions
 'counsel-find-file
 '(("j" find-file-other-window "other window")
   ("b" (lambda (_) (interactive) (counsel-bookmark)) "bookmark")))

Press M-o b to get completion for bookmarks. I don't think it's useful to have the above code in this repository.

@zeltak

This comment has been minimized.

zeltak commented Jun 2, 2016

thx for the quick reply abo-abo!

i think i may have not explained particularly well :)

what i would want is not to launch the bookmarked file/dired buffer from within the counsel-find-file session (which works well with the code you showed above) but to change the current counsel-find-file path to a bookmarked path/predefined path.

For example when i launch counsel-find-file at ~/Downloads but want to open a file at /media/NAS/folder1/folder2/subfolfer2/ i need to traverse the whole file system. if i could within counsel-find-file quick jump to /media/NAS/folder1/folder2/subfolfer2/ in a few key stokes i think that could be cool. Does that make any sense :) perhaps there is already a clever way to do so?

best

Z

@zeltak

This comment has been minimized.

zeltak commented Jun 10, 2016

any thoughts on this :D?

thx

Z

@abo-abo abo-abo closed this in aaad354 Jul 3, 2016

@abo-abo

This comment has been minimized.

Owner

abo-abo commented Jul 3, 2016

Please test. The new key binding is M-o b. Offers you the directories of bookmarks and recentf.

@glucas

This comment has been minimized.

Contributor

glucas commented Jul 3, 2016

Works for me - this is pretty convenient!

@zeltak

This comment has been minimized.

zeltak commented Jul 4, 2016

thx so much, i just tested it and works great! very handy 💃
thx again so much

Z

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