Giter Site home page Giter Site logo

Comments (1)

tpwo avatar tpwo commented on August 26, 2024

This command should be something like:

pyzet show --remote

And the output should be the full link to the zettel ID (e.g. 20220416171827) folder:

https://github.com/username/zet/tree/main/zettels/20220416171827

However, the construction of this link is different for different Git hostings. E.g. for Gitlab:

https://gitlab.com/username/zet/-/tree/main/zettels/20220416171827

or Bitbucket:

https://bitbucket.org/username/zet/src/main/zettels/20220416171827

One solution is to add a new field to the config file where the user can configure the base link for his hosting.

Alternatively, pyzet can parse the remote link and support some most popular choices (e.g. the three mentioned above).

Or, even better solution is to support the most popular platforms (with possible extending of them in the future) along with a new optional field in the config file that should be used for more niche hostings.

This will require some more work, but is probably worth it.

from pyzet.

Related Issues (20)

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.