Giter Site home page Giter Site logo

minjo's Introduction

Minjo

My minimal journalling setup, making use of plain mardown files and scratchpads integrated in dwm. The idea is to keep it as alightweight and minimal as possible. screenshot]

Workflow

With my current setup, I do have the following functionality:

  • Alt+n opens a scratchpad with neovim which starts in a markdown filte at ~/Documents/journal/$(date +%Y_%m_%d).md. If the file does not yet exist, it will be created.
  • Alt+N opens a scratchpad with neovim, which first calles combine_journals.sh to create a single markdown containig content from all others and then opens the resulting file at ~/Documents/journal/0_combined_journal.md. This makes it easy to search and navigate the file with neovim. If a checkbox is filled e.g. [ ] --> [x], this is synced back to the original single file upon saving the file.

Setup

This is still a lot manual and requires the following:

  1. get the scripts to the journal folder (or tweek all the pathing)
mkdir ~/Documents/journal
cp *.sh ~/Documents/journal

# symlinks to have the scripts executeable or add them to a directory in path
ln -s ~/Documents/journal/open_journal.sh ~/.local/bin/
ln -s ~/Documents/journal/combine_and_open_combined_journal.sh ~/.local/bin/
  1. Setup the scratchpads in dwm/config.h
const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", "-e", "/home/md/.local/bin/open_journal.sh", NULL };
const char *spcmd2[] = {"st", "-n", "spfm", "-g", "144x41", "-e", "ranger", NULL };
const char *spcmd3[] = {"keepassxc", NULL };
const char *spcmd4[] = {"st", "-n", "spterm", "-g", "120x34", "-e", "/home/md/.local/bin/combine_and_open_combined_journal.sh", NULL };
  1. Enable the sync-back on saving the vim buffer
autocmd BufWritePost 0_combined_journal.md :! bass /home/md/Documents/journal/sync_back_todos.sh

And that should be it :)

minjo's People

Contributors

matthiasdold 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.