AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Macdown plugins vim8/8/2023 # search for items tagged with "#tag1" AND "#tag2", tag list # search for items tagged with "#tag1" AND "#tag2", arguments # search for items tagged with "#tag1" AND "#tag2", short options Nb q "#tag1" # search for items tagged with "#tag1" AND "#tag2" # search for items tagged with "#tag1", shortcut and argument, alternative # search for items tagged with "#tag1", shortcut and argument # search for items tagged with "#tag1", shortcut and short option For example, use the -added / -a and -updated / -u flags to print the date and time that an item was added or updated: Nb show also provides options for querying information about an item. When using nb show with other file types or if the above tools are not available, nb show opens files in your system’s preferred application for each type. Excel, CSV, TSV, and data files ( $NB_DATA_TOOL):.Folders, Directories, Notebooks ( $NB_DIRECTORY_TOOL):.ImageMagick with a terminal that supports sixels.To prefer specific tools for certain file types, nb provides configuration variables that can be set in your ~/.nbrc file, which can be opened in your editor with nb settings edit. Nb show also supports previewing other file types in the terminal, depending on the tools available in the environment. Nb show example.md -render # opens example.md as an HTML page in w3m, links, or lynx Nb includes shortcuts for many commands, including nb a and nb for nb add: After an item is edited, nb automatically re-encrypts it and saves the new version.Įncrypted notes can be decrypted using the OpenSSL and GPG command line tools directly, so you aren’t dependent on nb to decrypt your files. When an encrypted item is viewed, edited, or opened, nb will simply prompt for the item’s password before proceeding. GPG is also supported and can be configured with nb set encryption_tool.Įach protected note and bookmark is encrypted individually with its own password. Password-protected notes and bookmarks are created with the -e / -encrypt flag and encrypted with AES-256 using OpenSSL by default. Password-Protected Encrypted Notes and Bookmarks ❯ nb show 12 -print # Sample Title #tag1 #tag2įor a full list of options available for nb add, run nb help add. ❯ pb | nb add "Argument content." \ -title "Sample Title" \ -tags tag1,tag2 \ -content "Option content."Īdded: sample_title.md "Sample Title" When a filename with extension is specified, a new note with that filename is opened in the editor: Nb add has intelligent argument parsing and behaves differently depending on the types of arguments it receives. The default file type can be changed to whatever you like using nb set default_extension. You can change your editor using the $EDITOR environment variable or nb set editor. Nb add with no arguments or input will open the new, blank note in your environment’s preferred text editor. Nb example:add "This is a note." # create a new note in the folder named "sample" Nb add -title "Secret Document" -encrypt # create a new note in the notebook named "example" # create a new password-protected, encrypted note titled "Secret Document" Nb add "This is a note." # create a new note with piped content echo "Note content." | nb add # create a new note containing "This is a note." # create a new note with the filename "example.md" nb also checks the environment for some additional optional tools and uses them to enhance the experience whenever they are available.Īck, afplay, asciidoctor, The Silver Searcher ( ag), catimg, Chafa, exa, ffplay, ImageMagick, GnuPG, highlight, imgcat, joshuto, kitty’s icat kitten, Links, Lynx, Midnight Commander ( mc), mpg123, MPlayer, ncat, note-link-janitor (via plugin), pdftotext, Pygments, Ranger, readability-cli, rga / ripgrep-all, sc-im, term-image, termpdf.py, Tidy-Viewer ( tv), timg, vifm, viu, VisiData macOS / Homebrew Nb leverages standard command line tools and works in standard Linux / Unix environments.
0 Comments
Read More
Leave a Reply. |