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
Is your feature request related to a problem? Please describe.
The command Breadcrumbs: Copy a Local Index to the clipboard will generate a hierarchical list.
The indent used in this hierarchical list is the space, i.e. adding 2 spaces increases a level of indent.
However, in the obsidian, the indent used for hierarchical list is configurable. And in my case, the indent used is the tab, i.e. adding 1 tab will increase 1 level of indent.
Therefore, here comes the problem, when I generate a long list with Breadcrumbs, I need to manually replace the indent of almost every item from 2 spaces to 1 tab.
Describe the solution you'd like
A configuration is preferred, so the user can choose the indent that they need.
Describe alternatives you've considered
alt 1. find and replacement performed manually.
alt 2. manually patch the main.js
functioncreateIndex(allPaths,asWikilinks){letindex="";constcopy=lodash.cloneDeep(allPaths);constreversed=copy.map((path)=>path.reverse());reversed.forEach((path)=>path.shift());constindent="..";//patch this line with: const indent = "\t";constvisited={};reversed.forEach((path)=>{for(letdepth=0;depth<path.length;depth++){constcurrNode=path[depth];// If that node has been visited before at the current depthif(visited.hasOwnProperty(currNode)&&visited[currNode].includes(depth))continue;else{index+=`${indent.repeat(depth)}- ${asWikilinks ? makeWiki(currNode) : currNode}\n`;if(!visited.hasOwnProperty(currNode))visited[currNode]=[];visited[currNode].push(depth);}}});returnindex;}
Additional context
no
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The command Breadcrumbs: Copy a Local Index to the clipboard will generate a hierarchical list.
The indent used in this hierarchical list is the space, i.e. adding 2 spaces increases a level of indent.
However, in the obsidian, the indent used for hierarchical list is configurable. And in my case, the indent used is the tab, i.e. adding 1 tab will increase 1 level of indent.
Therefore, here comes the problem, when I generate a long list with Breadcrumbs, I need to manually replace the indent of almost every item from 2 spaces to 1 tab.
Describe the solution you'd like
A configuration is preferred, so the user can choose the indent that they need.
Describe alternatives you've considered
alt 1. find and replacement performed manually.
alt 2. manually patch the main.js
Additional context
no
The text was updated successfully, but these errors were encountered: