Whenever you open a .md file, Neovim will prompt you to open a live preview in your browser. The preview syncs to your buffer as you type.
- Neovim 0.12+
- Git
- Node.js
| package clistuff | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "net/url" | |
| "os" | |
| "strings" | |
| ) |
| ## This help screen | |
| help: | |
| printf "Available targets\n\n" | |
| awk '/^[a-zA-Z\-\_0-9]+:/ { \ | |
| helpMessage = match(lastLine, /^## (.*)/); \ | |
| if (helpMessage) { \ | |
| helpCommand = substr($$1, 0, index($$1, ":")-1); \ | |
| helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \ | |
| printf "%-15s %s\n", helpCommand, helpMessage; \ | |
| } \ |
| #!/usr/bin/env bash | |
| # label-desktop.sh | |
| # Generates a labeled wallpaper and sets it on a macOS desktop (Space). | |
| # | |
| # Usage: | |
| # label-desktop.sh <project-name> [desktop-index] | |
| # | |
| # Arguments: | |
| # project-name Text label to display on the wallpaper | |
| # desktop-index Which desktop to target (1-based, default: current) |