Comments (9)
This should be fixed now. There are triggers in the package and it will not write anything to user preferences anymore.
from easyclangcomplete.
Yes, the HTML part comes already configured for sublime text. Basically, now it will write all the triggers it finds already defined to the user preferences.
I actually was thinking of putting the settings into the syntax specific files, but there are a couple downsides.
- First: as you pointed out, it is harder to find
- Second: to which of them? Currently the plugin works with
C
,C++
,C Improved
andC++11
syntaxes. Should I just put it into the one currently opened? That may cause confusion if the user uses multiple syntax definitions for different files (like.cpp
uses one and.h
the other). As a way to solve this to some degree, I could open the file that was edited by the plugin to show the user where the settings are. Also, I could add a context menu to open those files. But it still causes confusion. Maybe I could put the triggers to all syntax settings, I don't know.
So I would rather just put them into user settings actually. The problem here is that then the other triggers like html (I also have rust) appear. I cannot just remove them, because I don't know which ones of them come from the actual settings file. As an option, I could parse the settings file myself, but I also doesn't seem like the best solution ever.
I am open to any thoughts from your side and would love to make is intuitive for the user.
from easyclangcomplete.
Alright I get that, who knows how many other C/C++
plugins there are/will be with custom syntax. So syntax specific files aren't really an option. Parsing the settings file doesn't sound like a good plan either.
Isn't it possible to let the plugin set the triggers? I thought that ST parses settings in the order default -> plugins -> user. Then the triggers would be set without the need to configure anything, but a user could still overwrite them in his user or syntax specific settings.
from easyclangcomplete.
Oh, that is actually a very good though and I haven't thought about it before! It seems like this is a nice solution. I have to check if this actually works, but if it does, this is the best method.
from easyclangcomplete.
http://docs.sublimetext.info/en/latest/extensibility/packages.html#merging-and-order-of-precedence
I saw this a while ago, but I didn't really look into it... not sure about what this has to do with settings
from easyclangcomplete.
Here we go for settings:
from easyclangcomplete.
So you can create a Preferences.sublime-settings
file in Packages/EasyClangComplete
and it will be merged into the default prefs, and then the user prefs file will be merged after that. Sounds like it is the way to go.
also see http://docs.sublimetext.info/en/latest/customization/settings.html#the-settings-hierarchy
from easyclangcomplete.
This actually looks pretty good and easy to try. Will do today.
from easyclangcomplete.
Ok, it works as expected, big thanks!
I will remove the dialog then as it is really not needed. I will also add an option to call with Ctrl + Shift + P to open the Preferences.sublime-settings
file if anyone would want to edit these settings. + Documentation of course.
from easyclangcomplete.
Related Issues (20)
- Designated initializers don't seem to be parsed correctly HOT 5
- Headers autocompletion suggestion HOT 3
- An erroneous warning HOT 3
- Crash on drag-selection near an error HOT 11
- Suppress message about success build HOT 6
- Headers from listed add_definitions are not getting included and pch breaks completion HOT 1
- Go to declaration of includes? HOT 1
- Not working on apple m1 arch64 HOT 6
- Could be possible to disable to show the popup immediately when clicking on a line that has an error? HOT 2
- Files with same name share error messages HOT 2
- Headers are not auto-completed in Sublime Text 4 HOT 2
- "Clean current CMake cache" doesn't works on Windows HOT 2
- Windows can't detect the include folder from the CMakeLists.txt file HOT 5
- Using defintions declared on the CMakeLists.txt from windows gives "Error: Expected expression" HOT 2
- TypeError: argument of type 'NoneType' is not iterable on macos m1 HOT 5
- Headers are normal but STL keep loading errors HOT 1
- Wont find libclang automatically on Debian Testing HOT 10
- Recursive names project fails to build dependency tree project
- Crash when entering `std::vector.re` HOT 4
- Cannot use GCC HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyclangcomplete.