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 config.json).

The application port and the graph location can be provided by arguments ( --port and --graph-location).

The application title can be modified with the argument --title.

Usage

Data Storage

The graph folder in the home directory contains all data.

Design

The design is based on the Material Design guidelines. All colors can be configured in the config.json file.

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

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" }

History

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.