Code Monkey home page Code Monkey logo

org-journal-list's Introduction

org-journal-list
================

A package to display sidebar, showing a list of org-notes with preview.

For a preview, please see [screenshot.png].

Installation
------------

You can install with use-package, from MELPA:

    (use-package org-journal-list
        :ensure t
        :config
        (setq org-journal-list-default-directory "~/notes/"))

Or checkout the code and install it locally:

   (use-package org-journal-list
       :load-path "~/your/local/path/to/this/package"
       :config
       (setq org-journal-list-default-directory "~/notes/"))

This will install org-journal-list and set ~/notes as a default journal directory.

Configurations
--------------

* Default directory:
By default, it will be "~/notes/journal/". All of the *.org files in subdirectories
will be listed as well. To change the default directory, you can change the
org-journal-list-default-directory variable:

   (setq org-journal-list-default-directory "/your/custom/path/")

Please note that, if you use "~" as $HOME folder in your path, the full path will
be displayed when the file list displayed. To omit the default path, use
"/Users/<your-name>/" instead of "~" for $HOME.

* Default note suffix:
When you open journal list with org-journal-list--start, the new note buffer will
be created with the name "dd-mm-yyyy.journal.org", you can change the ".journal.org"
part by changing org-journal-list-default-suffix variable:

   (setq org-journal-list-default-suffix ".org")

But you can't change the "dd-mm-yyyy" part, this is intended to let you reopen the
note of the same day at any point after the file created. If you have a different
note-taking workflow, you can just change the new buffer creation behavior, see
the next section.

* Create empty buffer instead of a named one:
By changing org-journal-list-create-temp-buffer to a non-nil value, you will have
an empty org-mode buffer instead of a named one:

   (setq org-journal-list-create-temp-buffer t)

The default directory when you save the buffer will be your journal default directory.

org-journal-list's People

Contributors

huytd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

org-journal-list's Issues

Compatibility support for journal names with org-journal

Currently the popular emacs package "org-journal" uses a naming convention of %Y%m%d (20190731) for entries. org-journal-list however defaults to %Y-%m%d.journal.org (2019-07-31.journal.org) and although the suffix (.journal.org) can be customized, the file name format can not be changed. If org-journal-list--start used a customize-able variable for the format of the journal entries, then the package would be compatible with org-journal. This would be a nice addition.

(defcustom org-journal-list-journal-file-base-name-format
"%Y%m%d"
"Default basename format for journal entries."
:type 'string)

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.