-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Is it possible to turn off completion of file extensions? #910
Comments
You can turn off This will require writing a few lines of Emacs Lisp. |
I don't want to disable company-mode, I just want to adjust the completed text in certain circumstances. I'm teaching myself about advising functions to try and deal with this. I was hoping there was already a configuration point, but it's entirely possible that there isn't. |
Ah. You can advise the |
Or advise |
Okay. I'll look into that function. I was still trying to figure out just exactly where to inject things. |
So I wrote something to filter the output of This is how I'm doing it. Am I missing something? This is the first time I've tried advising a function.
|
Try using |
Okay, that solved that problem. Thanks. Now I just have to figure out why it seems like |
@doomchild with #983 , we can do something like this:
|
@dgutov , would it make sense to label this Issue as a
If not, can this issue be closed? |
I'm not sure. 2 feature requests (without extra likes, etc) in 2 years might indicate the lack of general interest, so we might as well close it. If not, I like option 1 better. But how are are people going to use it? Set the variable on per-project basis? Or otherwise never see file extensions in completion, which seems odd. Perhaps it could be combined with #931, as a separate backend/wrapper of sorts, specifically for, like, completion of |
In general, I think backspacing over a file extension is really not a problem most of the time (you don't really need to do that often). The other issue linked above seems more practical and interesting. |
I don't want to sound like a jerk, but if you're importing project-level stuff in Javascript, you have to backspace over the extension a lot. |
OK, guess I see what you mean. With Node's |
Like described above, I think a new backend called something like |
Yeah, my headache comes strictly from writing for |
When I'm editing (for example) Node code, I often want to complete a file path (for an import, for example), but I don't want the
.js
or.json
extension to be completed. Is this configurable? Right now, I just delete the extension, but if it can be turned off, I'd like to do so.The text was updated successfully, but these errors were encountered: