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

Add C-x C-f behaviour for Vim users #4411

Closed
tuhdo opened this issue Jan 5, 2016 · 2 comments
Closed

Add C-x C-f behaviour for Vim users #4411

tuhdo opened this issue Jan 5, 2016 · 2 comments
Labels
Auto-completion Enhancement ☺ stale marked as a stale issue/pr (usually by a bot)

Comments

@tuhdo
Copy link
Contributor

tuhdo commented Jan 5, 2016

In Vim, when you press C-x C-f, it auto-completes paths. We can have the same feature by using company-files. Unfortunately, company is not allowed to enable globally. Maybe we can make it works:

  1. Create a command that stores previous company-mode variable, then add a hook to company-completion-finished-hook to restore the mode back to how it was.
  2. Enable company globally, but for non-officially supported buffers, we only allow rudimentary backends that are related to text. If we do this, it would be much easier.
@syl20bnr
Copy link
Owner

syl20bnr commented Jan 5, 2016

I would go for 1, should be easy enough with a macro with-temp-mode that we could store in core-funcs.el.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-completion Enhancement ☺ stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

2 participants