Skip to content

Commit

Permalink
comment out consol logs
Browse files Browse the repository at this point in the history
  • Loading branch information
xpgo committed Feb 2, 2021
1 parent 22d4aa1 commit 60b5733
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ Although the mechanism is simple, it would be better to know that there are two

- The **default** configuration is the **In-Folder** type with note filename of `_about_.md`. When create description note for a folder, a note file named `_about_.md` will be created in the clicked folder. However, the file `_about_.md` is hidden by the CSS rules of the plugin. You can let it shown by configure the **Hide Note** option.

- If you like the **Out-Folder** style, please configure the note name as {{FOLDER_NAME}} before using the plugin.
- If you like the **Out-Folder** style, please configure the note name as {{FOLDER_NAME}} before using the plugin.

- **NOTICE**: For those who use the plugin with version < 0.4 and use {{FOLDER_NAME}} as folder name, please manually move all you note files out of the folders and update the plugin. Sorry for the inconvinience.

## Configuration

Expand Down
6 changes: 3 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,14 @@ export default class FolderNotePlugin extends Plugin {
var folderNotePath = this.getFolderNotePath(folderPaths[i]);
folderNotePaths.push(folderNotePath[0]);
}
console.log('folders: ', folderNotePaths);
// console.log('folders: ', folderNotePaths);
var fileSelector = 'div.nav-file > div.nav-file-title';
rootElem.querySelectorAll(fileSelector)
.forEach(function (fileElem) {
var filePath = fileElem.attributes.getNamedItem('data-path').textContent;
console.log('filePath: ', filePath);
// console.log('filePath: ', filePath);
if (folderNotePaths.indexOf(filePath) > -1) {
console.log('Folder Note: ', filePath);
// console.log('Folder Note: ', filePath);
fileElem.addClass('is-folder-note');
}
}
Expand Down

0 comments on commit 60b5733

Please sign in to comment.