Hoboneer / sxhkd-parser

Parser library for sxhkd configs
GNU General Public License v3.0
7 stars 0 forks source link

Allow easy pretty printing of configs with configurable output #10

Open Hoboneer opened 2 years ago

Hoboneer commented 2 years ago

It should be possible to read in keybinds from different configs (with potentially different section types), merge them, and output them with consistent and configurable formatting with regard to section and metadata comments.

As a consequence, section handlers would need to handle not only reading sections but also how to format the output---a non-trivial task which may overcomplicate the code.

Since the hotkey printing would come from the Hotkey directly, there needs to be some way to minimise sequence spans. Some diff algorithm?