Giter Site home page Giter Site logo

obsidian-incomplete-files's Introduction

Obsidian Incomplete files

This plugin help discover your incomplete files base on given rules.

✅ Powerful, Dead Simple

CleanShot 2023-11-17 at 14 22 52

Demo: https://www.youtube.com/watch?v=GO3N-IdBNVA&ab_channel=YomaruHananoshika

Features

  1. rule based incomplete files detection
  2. show all incomplete files with issues
  3. non intrusive, you install the plugin and don't need to do anything else
  4. incomplete files view: see all your incomplete files in a list
    1. see last update time of this file
  5. realtime udpate of your incomplete files
  6. highly optimized so it is fast to analyse files

Rules

rule name description DEFAULT
EMTPY CONTENT This rule cannot be turned off. When the file has no content, it is treaded as incomplete.
EMPTY CONTENT HEADING When a heading has no content, it is treated as incomplete.
INCOMPLETE STNTAX When a file has the incomplete syntax, it is treated as incomplete. The incomplete syntax is %% INCOMPLETE(issue which is a string) %% or %% INCOMPLETE %%

Installation

Through community plugin store

You can install this plugin in the community plugin store. 👍

Through BRAT

  1. install the BRAT plugin
  2. go to the plugin option, add beta plugin, copy and paste the link of this repo.
  3. the plugin will automatically appear in the list of installed community plugins, enabled this plugin

Manual installation

  1. cd to .obsidian/plugins
  2. git clone this repo
  3. cd obsidian-incomplete-files && bun install && bun run build
  4. there you go 🎉

Contribution

how to start

  1. clone this repo to your plugins
  2. bun install
  3. bun dev

Create a new rule

  1. add a new enum to INCOMPLETE_ISSUE_TYPE
  2. also add to settingSchemas.ts
  3. create your scanner
export const issueScanners = [
 checkEmptyContent,
 checkEmptyContentHeading,
 checkIncompleteSyntax,
];

// this is the interface you can refer to 
export type IssueScanner = {
 issueType: INCOMPLETE_ISSUE_TYPE;
 func: ScanFunction;
 icon: string;
 setting: {
  name: string;
  description: string;
  default: boolean;
 };
};
  1. create a test case for your scanner
  2. test it in your development vault
  3. there you go 🎉

Give Thanks

If you are enjoying this plugin then please support my work and enthusiasm by sponsoring me on Github or buying me a coffee on https://www.buymeacoffee.com/yomaru.

Buy Me A Coffee

obsidian-incomplete-files's People

Contributors

hananoshikayomaru avatar radlakha avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

radlakha

obsidian-incomplete-files's Issues

problematic writing style

CleanShot 2023-12-20 at 22 12 11@2x

this writing style will make the plugin think that it is not complete. But in Obsidian, this writing style is not recognize as a valid heading.

✅ / ❌ we need to determine whether we should follow the markdown definition or obsidian definition.

Tags

Nice plugin! Until now I used tags and checklist for notes I want to finish later. But you plugin seems like a nicer solution! Thanks!

Just wondering what you think about adding support for tags. Adding a #incomplete is maybe a good addition for people working with tags?

[YOM-565] fix bug

app.js:1 Uncaught Error: element or incompleteFilesContainer is null
    at isFileInView (plugin:incomplete-files:16508:11)
    at eval (plugin:incomplete-files:17101:16)
    at e.tryTrigger (app.js:1:695499)
    at e.trigger (app.js:1:695432)
    at t.trigger (app.js:1:713365)
    at t.onChange (app.js:1:703783)
    at e.trigger (app.js:1:610660)
    at e.<anonymous> (app.js:1:608471)
    at app.js:1:237027
    at Object.next (app.js:1:237132)

YOM-565

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.