And sometimes, it could crash Windows, too. The reason is Geany has to parse it for symbols. Is there a setting to disable this behavior?
Select filetype `None` on the open dialog.
Select filetype `None` on the open dialog.
Not a solution. You need to have the file already opened to set the file type to be `None`.
On the open dialog (ie _before_ opening) there is an expander lower left corner `More options` where there is a `Set filetype` combo.
On the open dialog (ie _before_ opening) there is an expander lower left corner `More options` where there is a `Set filetype` combo.
What if I open the file from Windows Explorer?
Won't work, there is no way of setting filetype from the command line.
Won't work, there is no way of setting filetype from the command line.
This is the reason for this issue. I don't want to specify setting in the command line. I want a setting in preferences.
"Somebody" could make a PR to add such a setting but given it would have to load _all_ files as filetype `none` it would remove a lot of Geany functionality. So its unlikely that it would be used much, and given there is a workaround opening from the Geany open dialog, I don't know if the PR would be accepted.
If the goal is to disable all JSON parsing, it can be done in `filetypes.JSON.conf`. This seems to do the trick: ``` [settings] lexer_filetype= tag_parser= ``` Json files are then opened with no symbols and no syntax coloring, so it should be as fast as possible. If you wan't to keep coloring (that should be pretty fast), just keep the lexer.
Yes, that has the advantage that it only removes features from JSON filetypes, but the disadvantage of having to edit the config to turn it back on. Swings and roundabouts[^1] really, but its another workaround.
[^1]: https://www.collinsdictionary.com/dictionary/english/swings-and-roundabouts
Another option is to disable mapping `*.json` files to the JSON filetype, which can be done in *filetype_extensions.conf* by commenting out the `JSON=*.json;` line.
Closed #3727 as completed.
github-comments@lists.geany.org