Code Monkey home page Code Monkey logo

file-explorer-note-count's Introduction

Obsidian File Explorer Count

Brief Explanation

  • This plugin helps you to see the number of elements you have under all available folders within your file explorer.

  • Counts will include total number of all elements under a folder and its sub-folders.

  • By default, expanded folders won't have the number of notes in case they have sub-folders.

Sample View

Settings

  • You can turn on the option for viewing the counts for all folders including the expanded folders. Otherwise, expanded folders won't have the number unless the expanded folder does not include any sub-folder.

  • You can include/exclude folder note from file counts (excluded by default)
    • Note: folder-note-core required, install and enable this plugin to take effects

Contact

If you have any issue or you have any suggestion, please feel free to reach me out directly using contact page of my website ozan.pl/contact/ or directly to [email protected].

You can also contact directly with Aiden.

file-explorer-note-count's People

Contributors

aidenlx avatar ozntel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

file-explorer-note-count's Issues

[BUG] Plugin fails sometimes

See these console errors:

TypeError: Cannot read properties of undefined (reading 'dataset') app.js:1 
    at setCount (folder-count.ts:85:18)
    at eval (folder-count.ts:78:14)
    at iterateItems (misc.ts:23:9)
    at setupCount (folder-count.ts:75:5)
    at eval (fec-main.ts:79:13)
    at tryGetView (fec-main.ts:71:21)
    at doWithFileExplorer (fec-main.ts:74:13)
    at FileExplorerNoteCount.initialize (fec-main.ts:117:9)
    at t.<anonymous> (app.js:1:1877575)
    at app.js:1:235927

And:

Plugin failure: file-explorer-note-count TypeError: Cannot read properties of undefined (reading 'dataset') app.js:1 
    at removeCount (folder-count.ts:94:22)
    at eval (folder-count.ts:77:21)
    at iterateItems (misc.ts:23:9)
    at setupCount (folder-count.ts:75:5)
    at eval (fec-main.ts:79:13)
    at tryGetView (fec-main.ts:71:21)
    at doWithFileExplorer (fec-main.ts:74:13)
    at FileExplorerNoteCount.initialize (fec-main.ts:117:9)
    at FileExplorerNoteCount.onunload (fec-main.ts:129:14)
    at e.unload (app.js:1:733229)

My debug info:

SYSTEM INFO:
	Obsidian version: v1.2.8
	Installer version: v1.2.8
	Operating system: Windows 10 Home 10.0.19045
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 11
	Restricted mode: off
	Plugins installed: 103
	Plugins enabled: 90

I am using version 1.2.1 of File Explorer Note Count.
After reinstalling, I got it working again for now.

[Bug] Plugin failed to load on mobile

I'm on Obsidian 1.4.3, and since this update, the plugin fails to load. I don't quite know why, it happened to icon-folder plugin too but they fixed it apparently.

Something probably changed in the way obsidian handles things.

Failed to load plugin file-explorer-note-count

image

When I open Obsidian, I am prompted with this error: Failed to load plugin file-explorer-note-count

I don't know why this error occurred, even if I created a new repository and only used this plug-in, it would report an error

Obsidian:Version 1.1.16 (Installer 1.1.16)
macos:12.6.2
plugin:1.2.1

love this plugin! Expand to more than just markdown?

turned this on and love the result! but I noticed that my media folders with .png's in them are not counted, I take it the logic you have only counts markdown files? what about expanding that and adding an option to count all files, or allowing an additional option to provide file extensions in a comma separated list for what should be displayed in the counts?

FR: Add the outgoing links in the notes to the counts?

I finds this plugin very helpful in my use cases. I wonder if it can count the number of outgoing links of each note as well. For example, I have a folder structure of following:

  • Root Folder
    • Folder 1
    • Folder 2
      • Note 1
      • Note 2 (this note contains 2 links to other notes)
      • Note 3

Currently the total count of Root Folder is 3 but I wish it can also include the extra 2 counts in Note 2 to make it 5. I know it's not suitable to all users so we can make this behavior configurable. Look forward to your comments. Thx

File count did not work since last updated

Obdisian Version: v1.1.16
file-explorer-note-count Version: 1.2.1

Since last updated, the plugin did not work anymore and I have tried to uninstall/reinstall the plugin and it did not help.

I checked the consol and there is some error infomation:
image

does anyone have the same issue?

Does not run since last update of today

Let me guess: You have adapted it to the new insider release 1.2?

I cannot install it again on android

Xiaomi Poco X3 pro.

Error messages:

Failed to load plugin

Failed to unload plugin

It doesn't work when I reload the vault

I have to reopen this plugin every time I open my main vault. I wonder if this has anything to do with the official sync, as I didn't realize this problem until I started to use it. There are some error messages on the console after opening the library, I have put the screenshot below. Hope you can help me out.
image

Issue with CSS?

Recently I've been getting this error a ton when this plugin is enabled:

image

Total Note Count Shows

The total note count no longer shows next to the vault name.

Debug Info

SYSTEM INFO:
Obsidian version: v1.6.0
Installer version: v1.4.16
Operating system: Windows 10 Home 10.0.22631
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: light
Community theme: Minimal v7.2.3
Snippets enabled: 1
Restricted mode: off
Plugins installed: 17
Plugins enabled: 17
1: Kanban v1.5.3
2: List Callouts v1.2.7
3: Minimal Theme Settings v7.5.0
4: Obsidian Columns v1.5.2
5: Paste image rename v1.6.1
6: Settings Search v1.3.10
7: Dataview v0.5.66
8: Custom Font Loader v1.4.0
9: Advanced Tables v0.21.0
10: Discord Rich Presence v1.5.1
11: File Explorer Note Count v1.2.1
12: YouHaveBeenStaring v1.2.2
13: Style Settings v1.0.8
14: Vault Changelog v0.1.0
15: Editing Toolbar v2.4.16
16: Iconize v2.12.0
17: Excalidraw v2.2.0

Improve compatibility with novel-word-count-obsidian or other file explorer plugins

First there was this plugin, and I used it, and I was very happy with the extra information I was able to get in my file explorer. However, over time, more plugins that aim to provide a better file explorer started appearing, such as the Novel Word Count Plugin. However, when I enabled that plugin, all my folder note counts disappeared! Disabling and re-enabling each, it seemed that whichever one was enabled later would hide the counts of the previous.
Digging into implementation a bit, I find that both plugins try to bind to .nav-files-container .nav-folder-title::after, while only one ::after can be defined on a single <div>.

The most general way I can see to mitigate the issue of file explorer plugins conflicting, without specifically referencing other plugins, is to add a setting for choosing which div to add the pseudo-element to (for now, either item.titleEl or item.titleInnerEl). This could be labeled as an advanced setting for troubleshooting interactions with other plugins; it would also allow this plugin to stay compatible with future file explorer plugins that may try to also add pseudo-elements to various divs.

I've opened a similar issue on the other plugin: isaaclyman/novel-word-count-obsidian#14, though it would be best if all file explorer plugins were able to support other ones as well.

Windows 10, Obsidian v1.0.0, File Explorer Note Count v1.2.0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.