mds -h
meudeus v0.19.0
a skim shredder for plain-text papers
Usage: mds [OPTIONS] <COMMAND>
Commands:
debug-cfg print Debug representtion of config
init `initialize` .sqlite database in notes dir, specified by config
note create a note [aliases: n]
tag create a tag (note without file body) [aliases: t]
select select note S, i.e. print its name to stdout
link link 2 notes A -> B, selected twice in skim interface [aliases: l]
unlink unlink 2 notes A -> B, selected twice in skim interface [aliases: ul]
remove remove note R, selected in skim interface [aliases: rm]
rename rename note R, selected in skim interface [aliases: mv]
print print subgraph of notes and links reachable downwards from selected note P [aliases: p]
explore explore notes by <c-h> (backlinks) , <c-l> (links forward)
[aliases: ex]
surf surf through all links and code snippets found downwards from selected note S
[aliases: s]
stack browse GLOBAL stack of notes [aliases: st]
checkmark checkmark, toggle state TODO/DONE of multiple task items, found in a selected note C
[aliases: k]
help Print this message or the help of the given subcommand(s)
Options:
-c, --color whether color output should be forced
-h, --help Print help
-V, --version Print version
- Any note can be linked to any number of other notes via a directed
->
link. - Note names are rendered as markdown in skim picker/preview.
- A note having only a name, but devoid of earthly file body is also considered a note, but is called a tag instead.
- Keybindings of most of secondary actions can be reconfigured in config.
- A command can go through 1 or more modes during its dialogue, e.g.
surf
command starts inexplore
mode.- after a user chooses a note, whose subtree he/she wants to explore for urls/code snippets,
surf
command switches tosurf
mode. surf
command stays in asurf
mode loop for the note initially selected after a primary action withEnter
or some secondary action has been selected for one of found urls/code snippets.
- All of
explore
,surf
andcheckmark
commands start inexplore
mode. explore
command can switch tosurf
orcheckmark
mode and then back toexplore
mode.explore
command includes the functionality of most of other commands (link
,unlink
,rename
,delete
,surf
,checkmark
, etc), and is used as the only entrypoint for program's interface by its author.- In
explore
modeCtrl-h
(backlinks) andCtrl-l
(forwardlinks) bindings are available. Ctrl-t
keybinding may be used to toggle between structural links -> structural task -> details -> (cycle) preview of current note or note subgraph respectively. This renderedp/print
command somewhat redundant.
surf
command/mode may be used for searching for all[description](url/file_path/dir_path)
markdown links and'''code_block'''
found downwards from a note S, selected forsurf
.- Destination in
[description](destination)
markdown links is matched againstworld.surf-parsing.url-regex
regex in config.
- If it matches, it's considered a url link.
- Otherwise, it's considered local filesystem link, either absolute or relative (no
file://
protocol prefix required). - If
filesystem_link:37
matchesworld.surf-parsing.file-dest-has-line-regex
regex in config it's considered a$FILE:$LINE
link. - Local filesystem link has any env variables replaced with their values, e.g.
$HOME/path/to/file
gets expanded to/home/user/path/to/file
.
'''code_block'''
description is parsed as the first line of'''code_block'''
, comments# bash comment
or// C comment
may be used for informative descriptions.- Syntax in
'''code_block'''
can be hinted for highlight in preview by specifying tag ```syntax_tag, e.g. ```bash or ```javascript.
checkmark
command/mode may be used to parse out trees of- [ ] description
task items and allows navigating/toggling them into- [x] description
state.
stack
mode is a simple way to manage priorities of notes.- A note can be pushed to stack by Alt-a from
explore
mode ofexplore
command. - A switch to
stack
mode fromexplore
mode ofexplore
command can be made by Ctrl-a. - By selecting a note with
Enter
instack
mode one returns toexplore
mode with the note selected. - In
stack
mode a note can be popped off stack with Alt-p. - Selected note can be moved to top of stack by Alt-t.
- Currently only single
GLOBAL
stack is supported. It may be extended to multiple stacks in a future.