Coder Social home page Coder Social logo

org-logseq's Introduction

Org-logseq

Org-logseq supports to open logseq-style link (page or block reference), transclusion of referred and embedded blocks using overlays, along with Org-Mode.

Features

  • Open logseq-style links by native Org-Mode binding (C-c C-o, Enter, etc). Org-logseq supports:
    • Page link: [[a logseq page]]
    • Block reference: ((6064f6c6-440a-46ca-b8df-59131adab5a1))
    • Block Embed and Reference overlays.
  • Create a blank excalidraw file if necessary, while inserting it at point.
  • Display logseq block references in buffer as overlays:
    • ((6064f6c6-440a-46ca-b8df-59131adab5a1)) to [[id:6064f6c6-440a-46ca-b8df-59131adab5a1][Block heading]]
    • {{embed ((6064f6c6-440a-46ca-b8df-59131adab5a1))}} to the content of the referred block.
  • Download images stored in the logseq server to local. curl needs to be installed first.
  • Toggle contents.org as a sidebar.

Installation

Org-logseq requires grep. Install it using your system tool at first.

Org-logseq package is not on MELPA yet. Currently, the easiest way to install org-logseq is through quelpa or straight system, or use the :quelpa or :straight keyword by using use-package. In order to make :quelpa work well with use-package, you need to install quelpa-use-package.

  • quelpa
    (use-package org-logseq
      :quelpa (org-logseq :fetcher github :repo "llcc/org-logseq" :files ("*"))
      :custom (org-logseq-dir "~/logseq"))
        
  • straight
    (use-package org-logseq
        :straight (org-logseq :fetcher github :repo "llcc/org-logseq" :files ("*"))
        :custom (org-logseq-dir "~/logseq"))
        

Getting started

  1. Set the variable org-logseq-dir to your logseq path.
  2. M-x org-logseq-mode in your current buffer. Creating a directory-local varible in your logseq directory could be the best way to get it worked in all org files.
    ((org-mode . ((eval org-logseq-mode 1))))
        
  3. Use your native Org-mode bindings to open pages or block references.

Customization

org-logseq-create-page-p
A boolean value indicating whether or not org-logseq should try to new a page file at point if it does not exist. The varible defaults to nil.
org-logseq-block-ref-overlay-p
A boolean value indicating whether or not to display the overlays of block references when initializing the Org-Mode buffer.
org-logseq-block-embed-overlay-p
A boolean value indicating whether or not to display the overlays of block embed when initializing the Org-Mode buffer.

Changelog

<2021-04-08 Thu>

  • Add a org-logseq-toggle-contents-sidebar command, to toggle your contents.org as a sidebar.
  • Fix path quote bug in macOS, #issue1

Thanks

All to logseq.

org-logseq's People

Contributors

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