vim-codefmt icon indicating copy to clipboard operation
vim-codefmt copied to clipboard

Generalize formatters which working through pipe

Open actionless opened this issue 10 years ago • 2 comments
trafficstars

related to #4 assign it to me

actionless avatar Jan 23 '15 20:01 actionless

Github doesn't let me add you as an assignee, but we'll consider it assigned. =)

What did you have in mind? I'd suggest starting with a script-local helper for the formatters in codefmt. There are some hacks like passing just the range to the formatter that don't work reliably and I'm nervous about things like that getting baked into the API, but it's definitely useful to refactor and see what strong patterns arise.

dbarnett avatar Jan 24 '15 20:01 dbarnett

yup, i meant organizing repeatable blocks from formatters' code into small functions

actionless avatar Jan 24 '15 21:01 actionless