├── .editorconfig ├── .github ├── FUNDING.yml └── workflows │ └── release.yml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── LICENSE ├── OnDemandRender.svelte ├── README.md ├── ScrollView.ts ├── ScrollViewComponent.svelte ├── ScrollViewMarkdownComponent.svelte ├── TagFolderList.ts ├── TagFolderView.ts ├── TagFolderViewBase.ts ├── TagFolderViewComponent.svelte ├── V2TreeFolderComponent.svelte ├── V2TreeItemComponent.svelte ├── dialog.ts ├── esbuild.config.mjs ├── eslint.config.mjs ├── images ├── respect-nestedtag-1.png ├── respect-nestedtag-2.png ├── screenshot.png └── simplecase.png ├── main.ts ├── manifest.json ├── package-lock.json ├── package.json ├── store.ts ├── styles.css ├── svelte.config.js ├── tsconfig.json ├── types.ts ├── updates.md ├── util.ts ├── v2codebehind.ts └── versions.json /.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | insert_final_newline = true 7 | indent_style = tab 8 | indent_size = 4 9 | tab_width = 4 10 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: vrtmrz 4 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release Obsidian Plugin 2 | on: 3 | push: 4 | # Sequence of patterns matched against refs/tags 5 | tags: 6 | - '*' # Push events to matching any tag format, i.e. 1.0, 20.15.10 7 | workflow_dispatch: 8 | 9 | jobs: 10 | build: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v2 14 | with: 15 | fetch-depth: 0 # otherwise, you will failed to push refs to dest repo 16 | submodules: recursive 17 | - name: Use Node.js 18 | uses: actions/setup-node@v1 19 | with: 20 | node-version: '18.x' # You might need to adjust this value to your own version 21 | # Get the version number and put it in a variable 22 | - name: Get Version 23 | id: version 24 | run: | 25 | echo "::set-output name=tag::$(git describe --abbrev=0 --tags)" 26 | # Build the plugin 27 | - name: Build 28 | id: build 29 | run: | 30 | npm ci 31 | npm run build --if-present 32 | # Package the required files into a zip 33 | - name: Package 34 | run: | 35 | mkdir ${{ github.event.repository.name }} 36 | cp main.js manifest.json styles.css README.md ${{ github.event.repository.name }} 37 | zip -r ${{ github.event.repository.name }}.zip ${{ github.event.repository.name }} 38 | # Create the release on github 39 | - name: Create Release 40 | id: create_release 41 | uses: actions/create-release@v1 42 | env: 43 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 44 | VERSION: ${{ github.ref }} 45 | with: 46 | tag_name: ${{ github.ref }} 47 | release_name: ${{ github.ref }} 48 | draft: true 49 | prerelease: false 50 | # Upload the packaged release file 51 | - name: Upload zip file 52 | id: upload-zip 53 | uses: actions/upload-release-asset@v1 54 | env: 55 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 56 | with: 57 | upload_url: ${{ steps.create_release.outputs.upload_url }} 58 | asset_path: ./${{ github.event.repository.name }}.zip 59 | asset_name: ${{ github.event.repository.name }}-${{ steps.version.outputs.tag }}.zip 60 | asset_content_type: application/zip 61 | # Upload the main.js 62 | - name: Upload main.js 63 | id: upload-main 64 | uses: actions/upload-release-asset@v1 65 | env: 66 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 67 | with: 68 | upload_url: ${{ steps.create_release.outputs.upload_url }} 69 | asset_path: ./main.js 70 | asset_name: main.js 71 | asset_content_type: text/javascript 72 | # Upload the manifest.json 73 | - name: Upload manifest.json 74 | id: upload-manifest 75 | uses: actions/upload-release-asset@v1 76 | env: 77 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 78 | with: 79 | upload_url: ${{ steps.create_release.outputs.upload_url }} 80 | asset_path: ./manifest.json 81 | asset_name: manifest.json 82 | asset_content_type: application/json 83 | # Upload the style.css 84 | - name: Upload styles.css 85 | id: upload-css 86 | uses: actions/upload-release-asset@v1 87 | env: 88 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 89 | with: 90 | upload_url: ${{ steps.create_release.outputs.upload_url }} 91 | asset_path: ./styles.css 92 | asset_name: styles.css 93 | asset_content_type: text/css 94 | # TODO: release notes??? 95 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # vscode 2 | .vscode 3 | 4 | # Intellij 5 | *.iml 6 | .idea 7 | 8 | # npm 9 | node_modules 10 | # package-lock.json 11 | 12 | # Don't include the compiled main.js file in the repo. 13 | # They should be uploaded to GitHub releases instead. 14 | main.js 15 | main_org.js 16 | 17 | # Exclude sourcemaps 18 | *.map 19 | 20 | # obsidian 21 | data.json 22 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | *.js 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "trailingComma": "es5", 3 | "tabWidth": 4, 4 | "printWidth": 120, 5 | "semi": true 6 | } 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 vorotamoroz 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /OnDemandRender.svelte: -------------------------------------------------------------------------------- 1 | 55 | 56 |