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

Feature request: file path auto-completion with file path alias supported. #887

Open
hanzhixing opened this issue Apr 23, 2019 · 3 comments

Comments

@hanzhixing
Copy link

I'm currently using spacemacs as my first editor. There is an issue submitted to spacemacs

I want a feature like below.

  1. Configuration(in json) imagined
    {
    "@/": "../source-files/src/"
    }

  2. In source file
    import Foo from '@/components/Foo' // <--- ../source-files/src/componets/Foo.js

  3. Without expansion.
    @/components/.. must be reserved as typed.

When after I enter a @/, I wish to see the candidates options like after entering ~/.

I know now the ~ is a feature built in the Bash itself, file path aliases like this can not be configured in other way.

(I guest it is right place to submit this issue to company-mode.)

Is it possible enhancing current company-files to support this?

Or, thank you if you let me know how to approach this.

@dgutov
Copy link
Member

dgutov commented Apr 30, 2019

I'd review a PR. (Note that it will require copyright assignment if the changes are >15 lines total).

@hanzhixing
Copy link
Author

I'd review a PR. (Note that it will require copyright assignment if the changes are >15 lines total).

You mean there are already related PRs/issues? Could you link it here?

@dgutov
Copy link
Member

dgutov commented May 8, 2019

No, I basically meant the standard "patch welcome".

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

No branches or pull requests

2 participants