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

FR: replace SPC f F with helm-find-files-at-point #4136

Closed
gleber opened this issue Dec 10, 2015 · 6 comments
Closed

FR: replace SPC f F with helm-find-files-at-point #4136

gleber opened this issue Dec 10, 2015 · 6 comments
Labels

Comments

@gleber
Copy link
Contributor

gleber commented Dec 10, 2015

... or smart-helm-find-files something similar. I would love if I could open a file based on the substring of it's file name, at which currently my point is pointing at.

@bmag
Copy link
Collaborator

bmag commented Dec 10, 2015

👍 for the idea. Did you try g f? It is bound to find-file-at-point, I think it's a good candidate to put on SPC f F.

@tuhdo
Copy link
Contributor

tuhdo commented Dec 10, 2015

@gleber if your project is recognized by Projectile, you can use the command helm-projectile-find-file-dwim to jump to any file at point in your project, even if the path is not complete i.e. only filename. I don't know why Spacemacs hasn't gave this command a key binding.

@syl20bnr
Copy link
Owner

@gleber is this not what SPC f F is already doing ? Can you describe the difference ?

@gleber
Copy link
Contributor Author

gleber commented Dec 11, 2015

In my case helm-find-files is bound to both SPC f F and SPC f f and it does not pick up whatever string is under a cursor. I.e. it just opens helm with current directory opened, but it does not pre-fill file name with a word at point.

I.e. I want:

  1. SPC f f to open helm with the directory in which a currently opened file is located
  2. SPC f F to open helm with the directory in which a current file is located and pre-fill helm input field with whatever word is under a point

@gleber
Copy link
Contributor Author

gleber commented Dec 11, 2015

Also somehow g f does not do what (2) always, it works only sometimes... It seem to work on single-word-named files (without underscores) but does not work with long_underscored_file_names

@d12frosted
Copy link
Collaborator

Closing this issue as an old issue with no activity. If you still have any problems, let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants