Giter Site home page Giter Site logo

org-roam-treeview's Introduction

org-roam-treeview

This is a simple tree presentation for Org-roam.

Installation

(require 'org-roam-treeview)

Before you use org-roam-treeview you need to customize or set up a list of ids for the starting nodes. For example:

(setq org-roam-treeview-startids '("1cfc93fd-d5d1-4031-9c71-785216bb9f32"))

Or use straight (or use-package):

(use-package org-roam-treeview
    :straight (org-roam-treeview :type git :host github :repo "/odomanov/org-roam-treeview")
    :after (org org-roam)
    :config
    (setq org-roam-treeview-startids '("1cfc93fd-d5d1-4031-9c71-785216bb9f32"
                                       "9a9d1aae-ab3d-417b-a4af-36b8eadeed7e"
                                       "d38820a6-e63c-47b3-9191-a5813f57bb8a"))
    :bind
    (("C-=" . #'org-roam-treeview)
     :map org-roam-treeview-map
     ("й" . #'org-roam-treeview-hide-buffer)
     ("Й" . #'org-roam-treeview-kill-buffer)
     ("C-=" . #'org-roam-treeview)
     ))

After that launch org-roam-treeview (or press C-= with the configuration above). This opens a window on the right side which shows the tree view of the Org-roam network.

./screenshot.jpg

Commands

TAB
Expand/contract the current node.
RET
Open the file corresponding to the current node.
<, >
Enlarge/Shrink the window.
q
Bury the Org-roam Treemacs buffer
Q
Kill the Org-roam Treemacs buffer

You may use the mouse as well.

Customization

org-roam-treeview-startids
The list of node IDs for the initial display. The default is nil, so you need to set up the list to see anything in the beginning.
org-roam-treeview-map
The keymap used. It can be configured after the package loading.
org-roam-treeview-width
The initial width of the Org-roam treeview window.
org-roam-treeview-indent
The indentation of treeview levels. The default is 2.
org-roam-treeview-hook
is the hook to run after the package loading.

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.