logseq13-missing-commands
logseq13-missing-commands copied to clipboard
Logseq plugin with missing but really helpful commands đȘ
                 Â
Missing Commands, Views & Features
A part of the
Logseq13 family of plugins
Summary
Missing, but helpful commands, views & features for Logseq
Designed to be very productive with keyboard â€ïž
Â
âčïž Some commands has default shortcut and some not.
To find out the shortcut for the particular command (or bind your own) use this instruction.
Any command could be called from Commands Palette
Â
âïž Some parts of this plugin heavily rely on Logseq's Document Object Model (DOM) structure. This means that every Logseq update could potentially break specific plugin functions. If you notice anything unusual, please create an issue with details.
Â
â ïž GitHub may need some time to load all demo animations (GIF) in collapsed blocks on this page.
Â
1) âïž Features
TAB-trigger on SearchTo fill the input with selected search item. Just press the |
Fast access to current page name on SearchHelpfull, when you need to access subpages of the current page. Just press the |
Go to the block start (end) with double-pressing the «Home» («End») keyJust like in Sublime Text editor. MacOS's Restriction: This feature only works for natural lines of block, which have a «new line» character or «\n». It does not work with lines created due to the size of the layout. In such cases, the only way to proceed is to press |
Spare space between 1-level blocksIncrease the space between 1-level blocks in order to clearly separate them from each other. Motivation: blocks on the first level represent the most general parts of the information, which usually stand separately: headings, categories, clients, code snippets, links, etc. |
Edit block on mouse click on page reference or tag with
|
2) đ§ Blocks reordering
Toggle auto headingWithout accessing block context menu. |
Sort / reverse / shuffle blocksNote: To sort in descending order use sort and then reverse commands. Note: Sort and reverse commands available via block context menu. Shuffle command only via Command Palette |
3) đ§ Fast navigation
Go to (â) previous / (â) next blockInstantly goes to next / prev block. Even with multiline blocks. Note: cursor position saves from block to block.
before     &     after |
Go to (âïž) parent / (âïž) last child blockNavigating whole block tree throught diagonal â jumping between the parent and the last child block. |
Go to |â| previous / |â| next sibling blockJumping between sibling blocks only. Note: cursor position saves from block to block. Note: we cannot leave current parent. Note: the difference from prevous command is skipping all child blocks. |
4) đ§ Blocks movements
Outdent (â€) children of the blockPerform outdent (indent to the left) for every child of the particular block. Note: standard Logseq commands |
Move block (â€) on top / (â€) on bottom of siblingsInstantly makes block the first (or the last) child of the parent. Note: standard Logseq commands |
5) đ§ Splitting & Joining blocks
Magic Split & Magic JoinSearch block content for ordered / unordered lists and split it to corresponding blocks structure. Note: supported numeration style: Note: supported bullets style:
Split     &     Join |
Split by lines / Join via new linesSimple command to pick out each line of block to separate block (and vica-versa). Note: There are two types of join command: with respect to block structure and without it.
Split     &                     Join |
Split by words / Join via spacesGet all words from the text and place it at the separate blocks (and vice-versa). Note: Words could contain letters,
Split     &                     Join |
Split comma-separated words / Join via commasGet all words from the comma-separated text and place it at the separate blocks (and vice-versa). Note: Use previous Split by words command to split. Note: Joinig respects the root node with colon «:». |
Split / Join sentencesSplit paragraph of text by sentences (one block = one sentence). And join the blocks to single paragraph. Note: Split removes the dots at the end. Join returns the dots back.
Split     &     Join |
6) đ§ Updating blocks
Magic Bold / Italics / Underlne / Hightlight / Strikethrough / Code / Reference / Tag / QuotesApply various formatting in a smart way: auto-select whole words, recognize Logseq special syntax, smart undo formatting, and work out of editing mode. To use it in edit mode:
Note: command uses «_» for italics to prevent this cases. |
Remove new linesRemove all «new line» characters from text. Helpful for work with OCR texts. Note: command adds spaces when it's necessary. |
Lower / upper / title letters caseNote: title case command has two variations â title words and title sentences. |
Remove HTML tagsRemove all HTML tags from the block, leaving only the text content. Note: there is no exceptions â everything between «» will be removed. |
Parse YouTube timestampsTransform copied from YouTube timestamps to Logseq format. |
7) đ Views
Hide references started with «.»Hide any page and tag references that start with the dot: «.», assuming that these are special reserved references that do not need to be shown. Note: there are two ways of hiding:
Hide by wrapping to «âŠÂ» only                     &   Hide completely and show on block hover |
Tabular viewUse the Note: it could be nested â Use the Use the FAQ: How to return back double square brackets for page references in the left column? Add following code to
.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper .page-reference .bracket {
display: inline-flex;
}
|
Columns viewUse the Use the Use the |
Gallery viewUse the Use the Use the |
Border viewUse the |
If you â€ïž what I'm doing â consider to support my work
Installation
From Logseq Marketplace (recommended way):
   Â
- Click «...» and open the «Plugins» section (or press
t p) - Click on the «Marketplace»
- On the «Plugins» tab search for «Missing Commands & Views» plugin and click install
- If you want to change default shortcuts commands â go to «Keymap» (
g s)
Manual way (in case of any troubles with recommended way)
- In Logseq: Enable «Developer mode» in «...» â «Settings» â «Advanced»
- Download the latest plugin release in a raw .zip archive from here
- Unzip it
- In Logseq: Go to the «...» â «Plugins», click «Load unpacked plugin» and point to the unzipped plugin folder
- â ïž The important point here is: every new plugin release should be updated manually
FAQ
How to change default shortcut for the particular command?
- Open «Settings» â «Keymap» (or press
g s). - Copy this emoji «đȘ» (for Windows use «đȘ») and insert it to search input.
- Change any shortcut you want
Why I cannot revert the result of particular command with one Undo action?
This is a restriction of the Logseq API: there is no way to execute complex commands in a single Undo. Therefore, the plugin attempts (when it makes sense) to minimize the count of Undo actions by removing the entire block tree instead of removing each block independently.
Why there is strange «Þ» charactear appears sometimes during Undo command?
The reason is this bug in Logseq plugin API. The plugin uses «Þ» character intentionally as a workaround for this issue. When the bug is resolved, this workaround will no longer be necessary.
Additional helpful plugins with the same vibe
- Shallow Copy by
MateuszMyalski - Side Block by
YU000jp - Custom Files by
cannibalox - LogTools by
cannibalox - Awesome Content by
yoyurec
Credits
Some parts of this plugin based on reviewed and refined works of another authors:
- Auto heading based on Another Embed by
sethyuan - Tabular view based on «Tabular Journals» by
nmartin84(there is no such repo anymore) - Gallery, box & columns views based on LogTools by
cannibalox - Columns view based on Awesome Content by
yoyurec - Magic formatting based on Obsidian: Smarter MD Hotkeys by
chrisgrieser
- Icon created by Nuricon