bold open file
This commit is contained in:
parent
8750d52a4d
commit
4b025475db
1 changed files with 8 additions and 0 deletions
|
@ -102,6 +102,14 @@ window.addEventListener("load", () => {
|
|||
fileTreeElement.querySelector("ul").childNodes
|
||||
);
|
||||
|
||||
// Bold opened file
|
||||
const opened_file = fullpath.split("/").at(-1);
|
||||
last_openeded.querySelector("ul").childNodes.forEach((el) => {
|
||||
if (el.innerText === opened_file) {
|
||||
el.style.fontWeight = "bold";
|
||||
}
|
||||
});
|
||||
|
||||
uncollapse(last_openeded);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue