File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ feat: `ctrl+m ctrl+m`, Trigger Markmap for editing mode.
77feat: ` Markmap ` slash command.
88feat: ` Markmap ` contextual menu.
99feat: Editing block or highlighting block will be the central node of the Markmap, otherwise it will use the whole page blocks.
10+ fix: Local images can not popup after changing graph.
1011
1112## 0.1.2
1213
Original file line number Diff line number Diff line change @@ -92,10 +92,11 @@ Most of features come from `Markmap` project.
9292
9393## Markmap trigger
9494
95- * ` m m ` : trigger Markmap for non-editing mode.
96- * ` ctrl+m ctrl+m ` : trigger Markmap for editing mode.
95+ * ` m m ` : trigger Markmap for non-editing mode, show currennt block and children when editing or highlighting, otherwise show all page blocks .
96+ * ` ctrl+m ctrl+m ` : trigger Markmap for editing mode, show current block and children .
9797* ` /Markmap ` slash command: to trigger markmap for current block and children.
9898* ` Markmap ` contextual menu item: to trigger markmap for current block and children.
99+ * Icon Button: to trigger markmap for current page.
99100
100101## Markmap properties
101102
Original file line number Diff line number Diff line change @@ -156,12 +156,19 @@ async function main() {
156156 let originalRoot : INode ;
157157 let originalTotalLevel : number ;
158158
159+ let config = await logseq . App . getUserConfigs ( ) ;
160+
161+ // reload config if graph change
162+ logseq . App . onCurrentGraphChanged ( async ( ) => {
163+ config = await logseq . App . getUserConfigs ( ) ;
164+ } ) ;
165+
159166 logseq . on ( 'ui:visible:changed' , async ( { visible } ) => {
160167 if ( ! visible ) {
161168 return ;
162169 }
163170
164- const config = await logseq . App . getUserConfigs ( ) ;
171+
165172 let blocks = await logseq . Editor . getCurrentPageBlocksTree ( ) ;
166173 let page = await logseq . Editor . getCurrentPage ( ) as any ;
167174
You can’t perform that action at this time.
0 commit comments