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

Insert path relative to the current file #44

Open
gtaifu opened this issue Sep 11, 2017 · 1 comment
Open

Insert path relative to the current file #44

gtaifu opened this issue Sep 11, 2017 · 1 comment

Comments

@gtaifu
Copy link

gtaifu commented Sep 11, 2017

Maybe due to I am a newbie to use this package, I did not find the way to insert the path of a file relative to the current file. I would like to ask this question, so the issue might be the best place for me to ask this question. Is it possible to do so?

To be more precise, see the following example:
Suppose I have the following directory structure:

.
+-- README.md
+-- src
|   +-- moduleA
|   |   +-- main.ccp
|   |   +-- a.lib
|   |   +-- ...
|   +-- moduleB
|   |   + fileA.cpp
|   |   + fileB.cpp
+-- others

When I work in the file main.cpp, I would like to insert the relative path to fileA.cpp. So I would like to insert ../moduleB/fileA.cpp into the file main.cpp.

@sagold
Copy link
Owner

sagold commented Sep 16, 2017

Well. We are all newbies because the configuration of triggers is currently too complex. Have you seen the Tutorial for Python? This might help a bit.

Basically you need to add a custom trigger for your scope in a c-source. Those triggers are found in FuzzyFilePath-Settings-Default in the property scopes. Your autocomplete-action, either done by the key-shortcut or the auto-option in a trigger (an object in scopes), will check for a matching scope and propose the given file-types defined in the objects extensions list.

Just ask the next question. This week will be tough, but i try to continue this discussion until it is resolved.

Regards,
sagold

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

No branches or pull requests

2 participants