Giter Site home page Giter Site logo

dataedit's Introduction

  • ๐Ÿ‘‹ Heyo, Iโ€™m @unxok

  • ๐Ÿ‘€ Compsci student trying to make cool stuff

  • ๐ŸŒฑ Mostly interested in frontend right now- React, Next, Obsidian plugins

  • ๐Ÿ”ฎ Would like to work on projects eventually with- Svelte, Vue, Angular, Solid, Expo, React Native, Go, Rust, Python

  • ๐Ÿ“ซ You can reach me at [email protected]

  • I once got 25๐Ÿ‘ and 10๐ŸŽ‰ (and counting) on a comment and I will forever chase that high (proof)

dataedit's People

Contributors

unxok 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

Watchers

 avatar  avatar  avatar  avatar

Forkers

aquarius2019

dataedit's Issues

Creating properties when using aliases

Editing or creating a property with an alias ("TABLE something AS sth") does not work. The property is created with the alias name instead (and then not read).

Otherwise great plugin, thanks to the developer!

Column type doesn't show up

Thanks for the awesome plugin.

The first use case to try this plugin was to use it as a Spreadsheet. But before exploring its capabilities, the column type doesn't show up.

My current setup is, 4 notes with a common tag that works as the query filter. Each note has 4 properties with Number type.

TABLE col1, col2, col3, col4
FROM #tag
SORT file.name

plugin:dataedit:12 TypeError: Cannot read properties of null (reading 'cssClassName')

I get the following error:

plugin:dataedit:12 TypeError: Cannot read properties of null (reading 'cssClassName')
    at $g (plugin:dataedit:78:30571)
    at Zi (plugin:dataedit:10:19510)
    at si (plugin:dataedit:12:3135)
    at Em (plugin:dataedit:12:44660)
    at bm (plugin:dataedit:12:39661)
    at Jy (plugin:dataedit:12:39589)
    at Jl (plugin:dataedit:12:39444)
    at yi (plugin:dataedit:12:35827)
    at Sm (plugin:dataedit:12:34778)
    at ru (plugin:dataedit:5:8853)
    at Immediate.Ys [as _onImmediate] (plugin:dataedit:5:9244)
    at process.processImmediate (node:internal/timers:476:21)

When I try this query:

TABLE file.link, file.name
FROM "07 zettelkasten/zettel" 
WHERE !done

What am I doing wrong?

It Seems Like It Choked: Uncaught (in promise) Syntax Errors

From Dataview Type Query

TABLE mathLink-blocks.AltNotation, mathLink-blocks.Dimensions, mathLink-blocks.LinkedDimensions, mathLink-blocks.StaticDimensions, mathLink-blocks.LinkedStaticDimensions, mathLink-blocks.MKS, mathLink-blocks.CGS,mathLink-blocks.FPS, mathLink-blocks.LinkedFormula
FROM "Glossary"
LIMIT 50

obsidian.md-1714877932099.log

From Dataviewjs Type Query

const {fieldModifier: f} = this.app.plugins.plugins["metadata-menu"].api; 
dv.table (["File", "mathLink", "AltNotation", "Dimensions", "LinkedDimensions", "StaticDimensions", "LinkedStaticDimensions", "MKS", "CGS", "FPS", "LinkedFormula"], 
	await Promise.all(dv.pages('"Glossary"').map(async p => [ 
		p.file.link,
		await f(dv, p, "mathLink"),
		await f(dv, p, "mathLink-blocks.AltNotation"), 
		await f(dv, p, "mathLink-blocks.Dimensions"),
		await f(dv, p, "mathLink-blocks.LinkedDimensions"), 
		await f(dv, p, "mathLink-blocks.StaticDimensions"),
		await f(dv, p, "mathLink-blocks.LinkedStaticDimensions"),
		await f(dv, p, "mathLink-blocks.MKS"),
		await f(dv, p, "mathLink-blocks.CGS"),
		await f(dv, p, "mathLink-blocks.FPS"),
		await f(dv, p, "mathLink-blocks.LinkedFormula"), 
		]) 
)) 

obsidian.md-1714878245785.log

โœจ[Feature Request] Add support for dataviewjs syntax

Thanks for this awesome budding plugin.
If dataviewjs syntax also can be supported it will be further useful.
A sample dataviewjs script for notes created/modified today:

// default dateformat in case itโ€™s forgotten in front matter
var dateformat = "YYYY-MM-DD";
if (dv.current().dateformat) { dateformat = dv.current().dateformat; }

dv.table(["File", "LastModifiedOn", "CreatedOn"],
  dv.pages()
  .where(p => p.file.mday.equals(dv.current().file.day) || p.file.cday.equals(dv.current().file.day))
  .sort(p => p.file.mtime, 'asc')
  .map(p => [
    p.file.link,
    moment(p.file.mtime.toString()).format(dateformat),
    moment(p.file.ctime.toString()).format(dateformat),
  ])
);

Updates causing log flooding and flashing elements

The plugin seems to update its data extremely often, and in my case it causes the dataedit-links property to keep flashing, and seems to prevent me from updating the properties, as it updates while I am typing and resets the field between key strokes.

Is there a way to change this, or allow me to still change properties ? The plugin is pretty much unusable for me atm.

I can provide logs and more information if needed of course.

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.