AMNatty / wleave

A Wayland-native logout script written in Gtk3
MIT License
44 stars 2 forks source link

config filetype detection in editors #6

Open p00f opened 6 months ago

p00f commented 6 months ago

Can you please either 1) change the config file name to layout.json 2) allow comments in the json (jsonc) so I can use vim modeline magic to set the filetype (// vim: ft=jsonc)

AMNatty commented 5 months ago

I considered the following:

  1. Changing the file name is a breaking change and not very pleasant
  2. Adding line comments does not sound like a problem, however note the config format is using newlines for historical reasons, therefore not really compatible with JSONC

So my proposed solution would be adding */wlogout.json with the file extension to the config search path

p00f commented 5 months ago

That is fine too