Cheatsheet Navigator (CSN)
It's just a fancy find and grep, implemented in Go. It's mostly a personal tool
also use to learn more about Go plus the following learnings goals.
Learning Goals
- Implementation of a simple CLI app without 3party packages.
- Cross platform release using goreleaser.
- Publish on homebrew and maybe other linux package manager.
- Create zsh autocomplete for a modern CLI experience.
Why?
Well I tried other tools like navi, cheat and I wanted something simpler
I just want to very quickly access my notes or parts of them from the terminal.
For example I can use with my Obsidian Vault and every quickly read my note in
markdown or even filter just parts that I want.
Dependencies
How to
Stuff I learned
ZSH Command Completion on Tab
Create a function that generates the possible completion options
function _myapp_completion {
# Use ls to get the list of files/directories in the current directory
local files=($(ls))
_describe 'values' files
}
After that on .zshrc
add the completion
compdef _myapp_completion myapp
Homebrew Tap Repository
- Create a repository in this case
fabiodcorreia/homebrew-repo
brew tap fabiodcorreia/package