niemeyer / discedit Goto Github PK
View Code? Open in Web Editor NEWCommand line editor for Discourse
Command line editor for Discourse
Please add support for downloading all topics in a category. For example, this would be very useful for inspecting the source text of the entirety of a documentation set. For the 'ceph' category:
discedit -get-all-category-topics ceph
./discedit
works as expected, unless EDITOR
includes a flag.
My EDITOR
in my macOS partition is /usr/local/bin/mate -w
(TextMate - the -w
flag is needed for use with tools like Git, that need to wait for an edit to complete).
Unfortunately, the end result is:
error: cannot edit file <filename>: fork/exec /usr/local/bin/mate -w: no
such file or directory
i.e. I think that fork/exec
is confused by the flag, and is trying to find a file called /usr/local/bin/mate -w
.
I'm not sure how to work around this, other than by creating a wrapper script that will invoke /usr/local/bin/mate -w
on the file.
Instead of having to save and close the file in order to update the remote copy on the Discourse instance, would it be possible to do so upon merely saving the file? Thank you.
For docs CI, it could be handy if we could update the contents of a discourse URL from an already existing local markdown file (one way blind sync).
Currently discedit requires a token that is of "user level: single user" but of scope "global key (allows all actions)" per https://github.com/niemeyer/discedit#configure-discedit-with-your-discourse-keys.
This means that if the user in question is an admin, they could potentially use this token to delete or modify other users.
Discourse tokens can be scoped to "topics" with "read" and "write" permissions. However, creating a token with just these permissions didn't seem to work.
Is it possible to update discedit to be able to use scoped tokens?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.