All Projects → wx-Yao → Alfred Cheat

wx-Yao / Alfred Cheat

Licence: mit
Manage your self-defined cheat sheets & knowledge base in Alfred

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Alfred Cheat

Alfred Iconfinder Search
Alfred 3 workflow for Iconfinder instant search
Stars: ✭ 14 (-82.28%)
Mutual labels:  productivity, alfred, alfred3-workflow
alfred-string-operations
Perform string operations to clipboard content
Stars: ✭ 70 (-11.39%)
Mutual labels:  productivity, alfred, alfred3-workflow
Pboy
a small .pdf management tool with a command-line UI
Stars: ✭ 662 (+737.97%)
Mutual labels:  productivity, command-line
Alfred Collection
A collection of all known Alfred3 workflows
Stars: ✭ 785 (+893.67%)
Mutual labels:  alfred, alfred3-workflow
Sit Up
🙇 Reminder to sit up straight.
Stars: ✭ 9 (-88.61%)
Mutual labels:  productivity, command-line
Jrnl
Collect your thoughts and notes without leaving the command line.
Stars: ✭ 5,126 (+6388.61%)
Mutual labels:  productivity, command-line
Awgo
Go library for Alfred 3 + 4 workflows
Stars: ✭ 556 (+603.8%)
Mutual labels:  alfred, alfred3-workflow
Cheat.sh
the only cheat sheet you need
Stars: ✭ 27,798 (+35087.34%)
Mutual labels:  command-line, cheatsheet
Omgf
Use Git Flow with ease – maintain branches, semantic versioning, releases, and changelog with a single command.
Stars: ✭ 37 (-53.16%)
Mutual labels:  productivity, command-line
Alfred Atom
Alfred workflow to browse and open Atom projects
Stars: ✭ 41 (-48.1%)
Mutual labels:  alfred, alfred3-workflow
Command Center
A CLI-based launcher and general productivity tool.
Stars: ✭ 78 (-1.27%)
Mutual labels:  productivity, alfred
Notion Toolbox
This is a collection of Notion tools that work in tandem together.
Stars: ✭ 441 (+458.23%)
Mutual labels:  productivity, alfred
Alfred Jetbrains
Alfred3 workflow to easily open your projects with your favorite JetBrains product.
Stars: ✭ 348 (+340.51%)
Mutual labels:  alfred, alfred3-workflow
Jsonui
jsonui is an interactive JSON explorer on your command line
Stars: ✭ 583 (+637.97%)
Mutual labels:  productivity, command-line
Alfred Emoj
Alfred 3 workflow to find relevant emoji from text
Stars: ✭ 325 (+311.39%)
Mutual labels:  alfred, alfred3-workflow
Alfred Bear
Alfred 3 workflow to create and search notes in Bear.
Stars: ✭ 319 (+303.8%)
Mutual labels:  alfred, alfred3-workflow
Mah
An alternative to alfred written in java
Stars: ✭ 69 (-12.66%)
Mutual labels:  productivity, alfred
Nb
CLI and local web plain text note‑taking, bookmarking, and archiving with linking, tagging, filtering, search, Git versioning & syncing, Pandoc conversion, + more, in a single portable script.
Stars: ✭ 3,846 (+4768.35%)
Mutual labels:  productivity, command-line
Alfred Npms
Alfred 3 workflow to search for npm packages with npms.io
Stars: ✭ 312 (+294.94%)
Mutual labels:  alfred, alfred3-workflow
Alfred Bluetooth Connect
Alfred plugin that allowed to connect/disconnect to paired bluetooth device
Stars: ✭ 28 (-64.56%)
Mutual labels:  alfred, alfred3-workflow

Alfred-cheat GitHub All Releases

Start writing your very own cheat sheets in your way and make them searchable using Alfred!

Demo

Every sheet shown in the demo should be your knowledge base and is totally customizable.

...loading demo gif

About & Acknowledgement

This project was initally inspired by cheat. I attempted to wrap around it but failed because that project wasn't intended to be wrapped around. So this project ended up a separate one. These two projects serve similar purpose in different working environments. With the help of alfred, your efficiency in searching your cheat sheets will be significantly boosted. And the better news is, you're in complete control of your cheat sheets unlike tldr (It's good though if you want it "just work").

I built this workflow because:

  1. I want faster searching than the original cheat because that project is commandline based. Sometimes I want a very quick view and don't wanna popup a shell.

  2. I want to build my own knowledge base instead of community-driven cheat sheets like tldr does.

Disclaimer:

All codes in directory workflow are dependencies from this project. They're not my work and is the only "dependency" for this project. Since it's included in this repo, the workflow user doesn't have to concern about dependencies.

Download via release

How it works

  1. You define a directory to store your cheat sheets, which are essentially text files. And name the file the command your wanna record. e.g, nmap, top, tar etc. (tips: you can start with the cheat sheets provided by cheat)

  2. You write your cheat sheet according to the rules (very intuitive and tolerant) bit by bit.

  3. Tell the workflow where that directory is and start searching.

Usage

First, you need to specify your sheet directory like this. Otherwise, it doesn't work. Both absolute or relative path will work.

Then, you're good to go.

  • To list all your cheat: cheat

  • To search and list the content of one of your cheat: cheat <sheet name>. Fuzzy search and autocomplete is supported.

  • To search in a specific sheet indexed by some keyword: cheat <sheet name> <keyword>.

  • To search across all your sheets for some keyword: cheat --search <keyword>

  • When you find your desired record and you wanna paste it directly to the app you're using (e.g., Terminal or iTerm2), hit Enter. This behavior can be changed in the Alfred setting (#3).

  • If you like to just copy, hit cmd-c.

Parsing rule

It's not even a rule... You just need to remember two things when writing your cheat sheet:

  1. Comment first, then the command.

  2. Separate each comment, command pair with 2 newlines. (one newline visually)

That's it.

e.g. this cheat sheet is called demosheet. Its content is the following:

# This is a one line comment. 
command one goes here.

# This is a second comment for the second command
# Yes we can have multiple line comment.
# But remember only the last line will be considered "command".
command two goes here

#
command three: in rare cases you don't have any comment, keep an empty # above.

# Any failed parsing will be ignored, like this line because it isn't associated with a command

or this line because it's a single line.

The above sheet will be parsed like this:

Kindly note that hidden cheatsheets (starting with .) will be ignored and hidden directory will be ignored as well. Hierachical structure is supported but that's only for your management purpose. This tool will only "flatten" every cheatsheets in the base directory. i.e., cheat/mydir/yourdir/somecheat will be equivalent to cheat/somecheat in its perspective. Also make sure you don't have duplicated cheatsheets in different directories otherwise only one of them will be dominant. Thanks for @Blackvz for the feature suggestion #4.

Compatibility

This workflow works out of the box (zero dependencies). It's tested on macOS 10.14.5 Mojave with Alfred 4. You need the powerpack to get it working. I believe it works with Alfred3 on any macOS after 10.10 Yosemite but that hasn't been tested. Report an issue if there's a problem.

Contribution

Any idea of improvement will be welcomed. But I don't wanna add the feature of modifying cheat sheet right in Alfred because it isn't what it is supposed to do. Use vim or other editors you like.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].