One-click paste to hastebin (opensource pastebin)
Pastes the selection or the whole file and opens it in browser
Details
- Reviewers
kfunk brauch - Commits
- R32:c14a89d872db: Add paste external script
Diff Detail
- Repository
- R32 KDevelop
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage
Two problems:
a) Doesn't work on Windows
b) Limits this feature to hastebin.com
Due to lack of a better (quick) solution, please wrap this at least in a:
#ifndef Q_OS_WIN #endif
A more sophisticated solution would need a pastebin client written in Qt/C++ with a proper GUI to select the pastebin services (hint: http://doc.qt.io/qtcreator/creator-editor-codepasting.html)
Why hastebin?
Two reasons:
- Don't require a client, a single shell command is enough
- It's open source! So It isn't really limited to hastebin.com, anyone could set up his own hastebin instance...
A more sophisticated solution would need a pastebin client written in Qt/C++ with a proper GUI to select the pastebin services (hint: http://doc.qt.io/qtcreator/creator-editor-codepasting.html)
If I have time to do it I would prefer doing something more important like new shiny code helpers, php support, project wizard et.c.
It's a hack but meh, why not. It's not like the "sort selection" script wouldn't have the same problem. While you're at it, probably #ifdef that one as well ...