Add --add-filetypes argument#197
Conversation
|
I realized this didn't let you remove existing mappings without adding them to the output, so I added second commit which introduces the following convention: if you map a file type to the I'm not very good at naming, so feel free to suggest better names (I was hesitant between |
9a8c930 to
b9eddff
Compare
|
Hey, thanks for the PR. Can you help me understand what is the use case for this? Is the configuration file not enough? |
|
Hi, the goal is the same as in #89: I want to do a few changes to the config file, while preserving the defaults. This way:
Currently, you can see how I customize my config: I start from what vivid generates, then patch it to my convenience. I thought it would've been much cleaner if vivid had such a feature built-in, then saw the existing issue confirming my thoughts. I also thought about adding an option such as |
This adds an
--add-filetypescommand line argument which lets you add your own mappings to the database. It can be used multiple times.The main benefit is to be able to reuse the default database if you just want to add a few customizations.
Closes #89