You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lettarget=(el ? el : /body/i.test(e?.target?.tagName) ? workspace.getActiveViewOfType(obsidian.View).containerEl : e?.target||e?.containerEl);
353
-
if(target===undefined||target.closest('.is_continuous_mode')===null||/menu-item/.test(e.target.className)){return}// ignore e.target ancestor is not in continuous mode
353
+
if(target===undefined||target.closest('.is_continuous_mode')===null||/menu-item-title/.test(e?.target?.className)){return}// ignore e.target ancestor is not in continuous mode
case(/workspace-tab-header|workspace-leaf/.test(target.className)): scrollRootItems(e,target);break;// scroll leaf into view
@@ -546,15 +546,13 @@ class ContinuousModePlugin extends obsidian.Plugin {
546
546
&&!this.settings.excludedNames.includes(item.basename+'.'+item.extension)// remove items excluded by name
547
547
);
548
548
switch(true){// warnings:
549
+
caseitems.length>this.settings.maximumItemsToOpen&&!window.confirm('Continuous Mode:\nOpening '+this.settings.maximumItemsToOpen+' of '+items.length+' items.\n(Change the “Maximum number of items to open at one time” setting to adjust this value.)'): resetPinnedLeaves();return;// opening multiple items
&&!window.confirm('You are about to replace all items in the active split. Are you sure you want to do this? (This warning can be disabled in the settings.)'):
&&!window.confirm('Are you sure you want to open '+items.length+' items? (This warning can be disabled in the settings.)'):
554
-
resetPinnedLeaves();return;// warn on opening > 99 notes
551
+
&&!window.confirm('Continuous Mode:\nYou are about to replace all items currently open in the active split.\nAre you sure you want to do this?\n(This warning can be disabled in the settings.)'):
552
+
resetPinnedLeaves();return;// confirm replacing open items
'No readable files found.\nCheck the Settings to see if you have included any specific file types to be opened in Continuous Mode.');
554
+
alert(type==='document links' ? 'Continuous Mode: No document links found.' :
555
+
'Continuous Mode:\nNo readable files found.\nCheck the Settings to see if you have included any specific file types to be opened in Continuous Mode.');
558
556
resetPinnedLeaves();return;// alert no items found
559
557
}
560
558
switch(true){
@@ -677,6 +675,7 @@ class ContinuousModePlugin extends obsidian.Plugin {
if(e.target.classList.contains('workspace-tab-header')){onTabHeaderDragEnd(e,getTabHeaderIndex(e));}// get initial tab header index for onTabHeaderDragEnd()
alert('Active tab group is not in continuous mode.');
1171
+
alert('Continuous Mode:\nActive tab group is not in continuous mode.');
1169
1172
}
1170
1173
}
1171
1174
});
@@ -1302,7 +1305,7 @@ let ContinuousModeSettings = class extends obsidian.PluginSettingTab {
1302
1305
});
1303
1306
});
1304
1307
newobsidian.Setting(containerEl).setName('Maximum number of items to open at one time').setDesc('Leave empty (or set to 0) to open all items at once. Otherwise, setting a value here allows you to incrementally open the items in a folder (or search results or document links) by repeatedly selecting “Append items in Continuous Mode.” Useful for dealing with folders containing a large number of items. (Note: The “single click” action above must be set to one of the “Append” options.)')
Copy file name to clipboardExpand all lines: manifest.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"id": "continuous-mode",
3
3
"name": "Continuous Mode",
4
-
"version": "3.4.1",
4
+
"version": "3.4.2",
5
5
"minAppVersion": "0.15.0",
6
6
"description": "Displays all open notes in a tab group as if they were a continuous scrollable document (sometimes called \"Scrivenings mode\"). Open all notes in Continuous Mode from a folder, search results, or links in a file or Dataview/query block; use arrow keys to navigate between notes; display notes in “Compact Mode” similar to Evernote or Bear; reorder notes via tab header drag-and-drop, sorting, more.",
0 commit comments