Coder Social home page Coder Social logo

discedit's People

Contributors

evildmp avatar niemeyer avatar pedroleaoc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

discedit's Issues

[RFE] Ability to download all topics in a category

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

fork/exec invocation of EDITOR fails when a flag is included

./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.

[RFE] Update remote copy upon saving

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.

Add `--from-file` mode

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).

Required token should ideally be scoped

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.