lukeleppan / better-word-count

Counts the words of selected text in the editor.
MIT License
263 stars 41 forks source link

Multi-window Support #90

Open pjeby opened 1 year ago

pjeby commented 1 year ago

This PR adds multi-window support (per #53), by creating a status bar item per window. The approach used is the same used by Quick Explorer to add status bar items to other windows, in a way that allows multiple plugins to share these status bars. (That is, such that the extra status bars will disappear when all plugins using them are disabled, and you can safely enable or disable such plugins in any order at any time.)

pjeby commented 9 months ago

Ok, conflicts are resolved, looks like it still works.

lukeleppan commented 9 months ago

Could you please give me some detail on how to test this

pjeby commented 9 months ago

Open a note in a new window. The new window should have a status bar with a word count, independent of the count shown in other windows. (Assuming you're not using a theme or snippet that affects the visibility of the status bar.)

That is, it just makes it possible for you to see a word count for the current note in each Obsidian window, rather than only one word count shown in the main window.