Integration with Sublime
@drazde found a way to integrate boxes with Sublime Text 3 (from #47):
- Open Sublime Text 3
- Install Package Control and restart Sublime.
- Choose Tools → Command Palette… from the main menu and select Package Control: Install Package, then choose FilterPipes.
- Choose Tools → Command Palette… from the main menu and select FilterPipes: My Custom Filters Plugin
- In the following file open dialog, open
%APPDATA%\Sublime Text 3\Packages\MyCustomFilterPipes\Default.sublime-commands
. This is the default on Windows, but if you are on other operating systems, the dialog should already be open in the correct folder. - Before the closing
]
, add the following:{ /* Boxes stone */ "caption": "FilterPipes: Boxes stone", "command": "filter_pipes_process", "args": { "command": ["boxes", "-d", "stone", "-a", "c", "-s", "80"] } }
Be sure to add a comma after the previous entry, so that the list is continued properly.
- Now you have a new command Boxes stone which will create a stone styled box of 80 characters in width around the selected text. In may be accessed via the command palette like above, or you might want to define a hotkey or a macro to do it.
- Add more FilterPipes commands for other designs, or for removing and repairing your ASCII art boxes.