Git Product home page Git Product logo

alfred-markdown-search's Introduction

alfred-markdown-search

Alfred Workflow for search and open Markdown files

Documents

Pain Point

When using Typora to manage markdown documents, the built-in search function is not very useful. Some documents cannot be searched.

Params Setting

Open the environment variable setting page of Markdown Search workflow, and configure:

  • MARKDOWN_PATH -- Required -- Directory path of markdown files,multiple directories are separated by English colon :
  • MARKDOWN_APP -- Optional -- Third-party apps, such as /Applications/Typora.app

How to use

Keyword: mdd (you can also customize this shortcut to trigger workflow)

  1. When no parameters are entered, 20 document records are displayed in reverse order according to the latest modification time;
  2. Support the -t (title) parameter to search the title area of the document (title area: to support multiple md document formats, define the first nine lines of the document as the title area for keyword search) ;
  3. Support inputting multiple keywords to filter, separated by spaces, keywords are not case sensitive;
  4. Select the corresponding line and press Enter to open the document with the system default markdown document App;
  5. Select the corresponding line and press Options + Enter, the document will be opened with a custom-configured third-party App;

Examples

# By default, 20 document records are displayed according to the latest modification time
mdd


# Search keywords in the title area, the keywords are not case sensitive
mdd -t golang


# Full text search keywords, keywords are not case sensitive
mdd golang


# Full text search keywords, multiple keywords are separated by spaces, keywords are not case sensitive
mdd golang Python


# Find documents that contain `golang` in the title area and `python` in the content of the document
mdd -t golang python


# Find documents with `golang` and `python` in the title area
mdd -t golang,python


# Find documents that contain `golang` and `python` keywords in the title area and `mysql` in the document content
mdd -t golang,python mysql

Thanks

alfred-markdown-search's People

Contributors

leafney avatar

Watchers

 avatar

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.