Skip to content

Commit

Permalink
Refactoring and Optional Root Folder Count
Browse files Browse the repository at this point in the history
  • Loading branch information
Ozan Tellioglu committed May 26, 2024
1 parent 3da3c8e commit cbf3aec
Show file tree
Hide file tree
Showing 15 changed files with 253 additions and 365 deletions.
7 changes: 6 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all",
"printWidth": 155,
"semi": true,
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "always",
"jsxBracketSameLine": true,
"overrides": [
{
"files": ".prettierrc",
Expand Down
62 changes: 0 additions & 62 deletions CHANGELOG.md

This file was deleted.

11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,22 @@

## Brief Explanation

- This plugin helps you to see the number of elements you have under all available folders within your file explorer.
- 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.
- 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.
- By default, expanded folders won't have the number of notes in case they have sub-folders.

## Sample View

<img src="https://github.com/ozntel/file-explorer-note-count/raw/main/images/folder-count.png" width="50%"/>

## 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 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.

<img src="https://github.com/ozntel/file-explorer-note-count/raw/main/images/collapsed-folder-setting.png" />

- You can include/exclude folder note from file counts (excluded by default)
- Note: [folder-note-core](https://github.com/aidenlx/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/](https://www.ozan.pl/contact/) or directly to <me@ozan.pl>.
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@aidenlx/folder-note-core": "^1.2.2",
"@release-it/bumper": "^2.0.0",
"@release-it/conventional-changelog": "^2.0.1",
"@rollup/plugin-commonjs": "^18.0.0",
Expand Down
17 changes: 5 additions & 12 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,17 @@ import { nodeResolve } from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
import copy from 'rollup-plugin-copy';
import css from 'rollup-plugin-import-css';
import { env } from 'process';

const isProd = process.env.BUILD === 'production';

const banner = `/*
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
if you want to view the source visit the plugins github repository
*/
`;
const isProd = env.NODE_ENV === 'production';

export default {
input: 'src/fec-main.ts',
input: 'src/main.ts',
output: {
file: 'build/main.js',
sourcemap: 'inline',
sourcemapExcludeSources: isProd,
file: isProd ? 'build/main.js' : 'main.js',
sourcemap: !isProd,
format: 'cjs',
exports: 'default',
banner,
},
external: ['obsidian'],
plugins: [
Expand Down
164 changes: 0 additions & 164 deletions src/fec-main.ts

This file was deleted.

Loading

0 comments on commit cbf3aec

Please sign in to comment.