Giter Club home page Giter Club logo

zet's Introduction

POSIX Zettelkasten

This is a single-script implementation of a text-based Zettelkasten. There is a single multicommand following the Busybox approach that relies on the names of hardlinks to pick the right path for the command execution.

Setup

Check the zet Ansbile role in my dotfiles configuration to get an idea where and how the script can be copied to take full advantage of it.

Usage

Here are the options:

  • Use zet to create a new entry in the zettel.
  • Use zetf to find an entry through an interactive list (with fzf).
  • Use zetp to paste full file paths based on entry names to Vi/Vim/Neovim buffer.
  • Use zetg to grep entries for their contents and put their names in the buffer.

zetp matches file names and zetg matches file contents. Both command accept positional arguments of standard input (FD1).

I intend both to be used inside Vi and its derivatives to paste and create links to other entries in Zettelkasten. Zettel links can then be navigated with gf in Vi normal mode. You can switch back and forth between Vi buffers.

Use magic Vi wands. Type in query names in Vi buffer and type !!zetp or !!zetg in the normal mode. This will insert links if they're returned.

Interactions

Inside Vim

I use zetg and zetp inside a Vi session to paste file paths. And then i use gf in the normal mode to go these files.

From the command line

Also, one might want to open multiple files at once from the command line. Here is how to do it.

vim -O $(zetg posix)

This command is going to open all files in separate splits. Without the -O parameter, files would be opened is separate buffers, which is also nice.

zet's People

Contributors

mdm-code avatar

Stargazers

 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.