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

Different configuration settings per file #15

Open
bziemons opened this issue May 7, 2023 · 0 comments
Open

Different configuration settings per file #15

bziemons opened this issue May 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@bziemons
Copy link
Contributor

bziemons commented May 7, 2023

While I wouldn't want anything like vim's modeline in my files, I think it makes sense to have a user- or system-wide configuration file that specifies options like tab width and tabs/spaces per file name and/or file path. As an example, I am thinking of something like this:

/etc/chr/filesettings

*.yaml,*.yml tab=false tabsize=2

$XDG_CONFIG_HOME/chr.filesettings (or a chr folder instead)

/path/to/project/*.py tab=false tabsize=4
*.cfg tab=true tabsize=8

(additionally having an option to save the currently applied formatting options that deviate from the defaults/config to the latter file, referencing the currently opened file by it's full path, if applicable)

@istoph istoph added the enhancement New feature or request label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants