yi-editor / yi

The Haskell-Scriptable Editor
GNU General Public License v2.0
1.5k stars 200 forks source link

Configuration #1069

Open noughtmare opened 6 years ago

noughtmare commented 6 years ago

First of all I want to make clear that by configuration I mean simple configuration like font size or enabling line numbers.

I've done some thinking and I came to the conclusion that there are multiple places where things can be configured:

This list might not even be complete. I think we can do better! I suspect there is a more uniform way to handle configuration.

There are some points where I think we can improve the current situation:

junjihashimoto commented 6 years ago

I do not care about multi-configurations and extensible records, if we can validate the configurations. But I hope serializable and not serializable data are separated. Not serializable data is like IO-actions. I am trying last one(configuration-file) like this. The configuration file can not include keymap, as the map is not serializable data.