Looksyk

A simple personal knowledge platform with a focus on clean markdown files, simple queries and a journal.


Project maintained by SebastianRzk Hosted on GitHub Pages — Theme by mattgraham

Configuration and Usage

Table of Contents

This page

Further Reading

Configuration

The configuration is done in the config.json file in the directory ~/.local/share/looksyk. This path can be changed with the environment variable LOOKSYK_CONFIG_PATH.

The default graph location is in ~/graph (or the configured location in the ~/.local/share/looksyk/config.json).

The command looksyk accepts the following command line arguments:

Usage

The Looksyk startup page explained

Overview of Looksyk’s basic features in the Journal view.

The Looksyk page explained

Overview of Looksyk’s basic features in the Page view.

Data Storage

The graph folder in the home directory contains all data.

Design

The design is based on the Material Design guidelines.

There are two ways to customize the design:

The following color values are supported:

The design consists of the following elements:

Inspire yourself with the following examples:

Dark Mode (default)

dark mode

Configuration:

"design": {
"primaryColor": "#0c884c",
"backgroundColor": "#15212D",
"foregroundColor": "white",
"primaryShading": "rgba(255, 255, 255, 0.1)"
}

Light Mode / Solarized Light

light mode

Configuration:

"design": {
"primaryColor": "#859900",
"backgroundColor": "#fdf6e3",
"foregroundColor": "#002b36",
"primaryShading": "rgba(0, 0, 0, 0.1)"
}

Extra Dark Mode

extra dark mode

Configuration:

"design": {
"primaryColor": "#859900",
"backgroundColor": "black",
"foregroundColor": "white",
"primaryShading": "rgba(255, 255, 255, 0.1)"
}

Markdown Syntax and Features

Page names and hierarchy

page hierarchy

Favorites

favorites

Code

Todos

Templates

Pages that start with the prefix Template / are treated as templates. Templates can easily inserted by the content-assist when editing a page.

The first block of a template is appendet to the current block in edit, all following blocks are inserted as new blocks. This allows you to create templates with multiple blocks, which are inserted as new blocks in the current page. Templates can be used to create reusable content, such as checklists, meeting notes, or project plans.

The indentation of the blocks in the template is preserved, so you can create nested blocks. The initial block in edit is considered as starting-point, the template is inserted at the same indentation level and the following blocks are inserted with the relative indentation to the first block.

Queries

Queries are placeholders for dynamic content in Markdown. The result of the query is calculated and displayed dynamically at runtime, whereby only the query syntax and not the result is stored in the Markdown file on disk.

Queries are particularly suitable for three problems:

Currently,all queries must be inserted exactly as described. Parameters cannot yet be swapped or omitted.

Query Page Hierarchy

Quick examples:

 Show a list of links
 {query: page-hierarchy root:"myRootTag" display:"inplace-list" }
 
 Show the count
 {query: page-hierarchy root:"myRootTag" display:"count" }

Display types:

Query Todos

Quick examples:

 Show a list of todos with a checkbox and a link to the source file. The list is appended to the end of the current block
 {query: todos tag:"myTag" state:"todo" display:"referenced-list" }
 
 Show a list of todos (not modifiable, but renders in place)
 {query: todos tag:"myTag" state:"todo" display:"inplace-list"} 
 
 Show the count of todos
 {query: todos tag:"myTag" state:"todo" display:"count" }
 
 Show done todos
 {query: todos tag:"myTag" state:"done" display:"referenced-list" }

Display-types:

 Show a list of backlinks
 {query: references-to tag:"myTag" display:"referenced-list" }
 
 Show the count
 {query: references-to tag:"myTag" display:"count" }

Query Render Assets (“insert-content-from-file”)

 Insert the content of a file as text block
 {query: insert-file-content target-file:"myFile.asdf" display:"inline-text" }
 
 
 Insert the content of a file as code block, and highlight the code
 {query: insert-file-content target-file:"myFile.asdf" display:"code-block" }
 
 
 Insert a video
 {query: insert-file-content target-file:"myFile.mp4" display:"video" }
 
 
 Insert an audio file
 {query: insert-file-content target-file:"myFile.ogg" display:"audio" }

Query Blocks

History

Looksyk has a history feature that allows you to navigate to the previous and next page. The history is stored in the local storage of the browser and is not synchronized with other devices.

The history is displayed in the sidebar and can be dropped. The history is limited to 5 visible entries, but all entries are stored in the local storage.