- Cleans up required or imported Ramda functions when using destructing assignment.
- Reads functions from local Ramda instance based on the current working directory.
npm install -g ramda-destruct
Prints the modified file contents to stdout.
ramda-destruct path/to/file.js
cat path/to/file.js | ramda-destruct
%!ramda-destruct
Or use Preserve function that restores cursor position after:
:call Preserve("%!ramda-destruct")
https://gist.github.com/yrns/e9b0cf1c24a87812e1ecab9816823f4c
Install the FilterPipes plugin and add a key binding like
{ "keys": ["alt+shift+d"], "command": "filter_pipes_process", "args": {"command": "ramda-destruct"}}