ssb-splitter
ssb-splitter
A quick and dirty hack to compensate for max post length in Scuttlebut clients.
- Reads in a markdown file
- Splits it into multiple files with as many paragraphs as possible in each
- adds a line to each post indicating which one it is and of how many. E.g. "post 2 of 12"
Example:
$ ssb-splitter path/to/my/long/post.md
path/to/my/long/post_1.md
path/to/my/long/post_2.md
Those 2 lines after the command are the paths to where it has written your new file.
Usage
ssb-splitter path/to/file
Compiling
crystal build src/ssb-splitter.cr
Contributing
Really? Well, sure. It's written in Crystal. Have fun.
- Fork it ( https://github.com/masukomi/ssb-splitter/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- masukomi masukomi - creator, maintainer
Repository
ssb-splitter
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- almost 6 years ago
- January 19, 2018
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 03:05:18 GMT
Languages