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

how to use editorconfig in geany #9

Open
laoshaw opened this issue Jul 21, 2018 · 6 comments
Open

how to use editorconfig in geany #9

laoshaw opened this issue Jul 21, 2018 · 6 comments

Comments

@laoshaw
Copy link

laoshaw commented Jul 21, 2018

I'm running geany on ubuntu 16.04 and just compiled and installed editorconfig, and enabled it as a plugin, then I don't know how to configure/use it.

I saw Tools->reload editorconfig, but nowhere I can configure editorconfig itself? how am I supposed to use it?

@xuhdev
Copy link
Member

xuhdev commented Jul 21, 2018

They are in .editorconfig files. Geany does not provide a graphical interface to edit these files, and normally they should be edited manually. It's written on the homepage.

@laoshaw
Copy link
Author

laoshaw commented Jul 21, 2018

cool, it will be nice to check a global $HOME/.editorconfig (or $HOME/.local/geany/.editorconfig) by default before searching recursively for this config file, to avoid having one .editorconfig per project.

@laoshaw
Copy link
Author

laoshaw commented Jul 21, 2018

after I put a .editorconfig under $HOME, I had to "reload editorconfig" to make it effective in geany each time I open a new file, otherwise it won't pick up editorconfig settings, is this normal?

@xuhdev
Copy link
Member

xuhdev commented Jul 21, 2018

It's not normal. Are you sure they are new files? Can you restart geany and try again? You can always put one in $HOME since the hierarchical structure will make it effective.

@laoshaw
Copy link
Author

laoshaw commented Jul 21, 2018

If i start geany from scratch, e.g.: "geany my.py", it finds .editorconfig and works. However after geany started, if I "file->new" open a NEW file, or I use the terminal window inside geany to open a NEW file (e.g. "geany mynew.c" inside geany), I will have to reload editorconfig each time. I can easily reproduce that.

@xuhdev
Copy link
Member

xuhdev commented Jul 21, 2018

New files do not have an associated file path. EditorConfig won't be able to tell what settings it should apply.

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