This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Summary: get multiple file contents into one and write it back | |
-- Config: configuration should be done directly inside source code. This one is very niche so I won't make it into a plugin | |
-- Default it will find all file (exclude hidden files, take a look at line 47) in the current directory | |
-- If needed specific file pattern then you can pass pattern into the read() function like: require'onefiler'.read("/*.zig") | |
-- Change M.filename_deco to suit your file type, I recommend make it a comment line | |
-- It will write to any file in the onefile if match, so be careful before write | |
-- Usage: | |
-- Keymap: you can assign keymap for it |