GithubHelp home page GithubHelp logo

Comments (1)

hluk avatar hluk commented on September 15, 2024 1

If you talk about Synchronization, that is not supported. Text items are always saved with txt file suffix and there is only single folder the files can be stored in for one tab. I'm not planning to change this any time soon.

But to create and edit ".md" files, you could specify new item format to be stored as Markdown by assigning ".md" suffix to "text/markdown" in Synchronize configuration:

image

...and then adding the following commands to create/edit (from menu or with shortcut) and view markdown items (here is how to add the command to CopyQ):

[Commands]
1\Command="
    copyq:
    write(0, 'text/markdown', '')
    editItem(0, 'text/markdown')"
1\Icon=
1\InMenu=true
1\Name=New Markdown
2\Command="
    copyq:
    editItem(currentItem(), 'text/markdown')"
2\Icon=
2\InMenu=true
2\Input=text/markdown
2\Name=Edit Markdown
3\Command="
    copyq:
    markdown = data('text/markdown')
    setData(mimeText, markdown)

    // Add Markdown tag
    if (plugins.itemtags) {
        setData(plugins.itemtags.mimeTags, data(plugins.itemtags.mimeTags) + \" \")
    }"
3\Display=true
3\Icon=
3\Input=text/markdown
3\Name=Show Markdown
size=3

from copyq.

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.