211 points · by superasn · 4y ago · 77 comments
I sometimes wonder if learning how to use Dataview inside of Obsidian is too technical to get mass adoption, compared to WYSIWYG tools like Notion that let you build databases with nice UI filtering. But the performance of Dataview is so much better, and the control you have over queries so much more granular, that it’s worth the learning curve. The Obsidian community is also incredibly good at helping new users learn, which makes me feel optimistic.
To help make things a bit more user-friendly I have been building an Obsidian theme called Minimal[1] which allows you to take Dataview tables and display them in a card layout[2]. I really enjoy that layout for certain types of information, while having all the underlying power of Dataview.
I expect these tools to include more and more tools for automation based on a reactive programming style (more suited to non-programmers), expanding its function as a warehouse of ideas into a more active role for user-created applications. The NOCODE camp is growing from its VB6-like visual-style roots into environments that look more like an IDE in the style of the browser's "Inspect" window.
The key development that I miss is that of reifying query results, allowing the user to use the data generated by a search as an object in itself. I even have a name for that reified object - a wit would be a collection of data compiled with a common criteria (representing a minimum unit of meaning, is a wordplay on bit being the minimum unit of knowledge), similar to a spreadsheet range. When tools like Obsidian or Logseq start allowing the user to use query results as first-class data, I predict that we will see a revolution in end-user process automation.
I think we're getting there, too. See, for instance, https://github.com/nothingislost/obsidian-query-control — it renders the results of an embedded Obsidian query and you can interact with checkboxes. Likewise, a collaboration between dataview and the Task Collector plugin might let us manipulate different task statuses from a dataview query: https://github.com/ebullient/obsidian-task-collector/issues/...
Exciting times!
Thanks! I had it as a vague idea for several years, though it has been getting a lot more concrete as I've seen new tools adopting similar approaches - but without any of them taking the final step of converting a search result collection into a user-accessible object ready for direct manipulation.
And now that I see tools adopting that style of data management, the concept allows me to see the commonalities among tools with quite different approaches - be it tabular Nocode storage like Airtable or outliners like Roam, Workflowy and the like. Whenever the tool returns a collection from a data gathering process, I see a wit that should be able to be extracted and further processed by the user.
BTW, the main difference between a query result and a wit is that you can store its items in the same structure as the rest of your content in the outliner, and send them to a new process (like spreadsheet cells, but with hierarchical data). Usually, query results are presented through a different interface than the rest of content, but a 'wit' should be homoiconic like Lisp.
(Errata to my grandparent post: a 'bit' is a "minimum unit of data", of course, not of knowledge).
> Exciting times!
You bet! :-D
Yes, this https://youtu.be/Pot9GnHFOVU is the kind of programmable system I'm talking about, creating behavior on top of your stored content with methods specific to the particular collections of data already in your system, and ideally with minimal syntax for transferring data among the different tools.
Outliners are used in this area for decades. What we have now is just a new hype-cycle, with new apps, new technologies and a new mix of features.
> When tools like Obsidian or Logseq start allowing the user to use query results as first-class data, I predict that we will see a revolution in end-user process automation.
So, SQL?
You contradict yourself. Is it "just a new hype-cycle," or is it "new apps, new technologies, and a new mix of features?" If it's the latter... isn't that substantively different than what we had before?
Outliners have quite the fandom, but my issue with the traditional outliner is that they often trap data in outline form. Sure, most good outliners offer export options. Unfortunately, the second you've taken data from your outliner and exported it, you now have two versions of your data, and you've lost.
Logseq (and Obsidian) have changed this. Finally, a single document _is_ an outline, a backlink, a data source, a webpage, a presentation, and so on... The only thing the user has to do is work with that single page of information.
It's more than hype for me.
The concepts are old and have a new hype. The apps are new. But generally, it doesn't matter much for the user whether you have some old-school desktop-app with gtk or Qt, or a "modern" electron app, or some webapp on your own server or some service in the cloud. At the end it's all the same ideas and concepts in different colors and flavors.
> If it's the latter... isn't that substantively different than what we had before?
That entirely depends on who is "we". We which are all users? Or we the old users? Or we the young users? Or we the new users? I'm not saying that there is not development or change, just that this is nothing new, or even a new development. This has going for a long time, it just reached a new cycle and and a new generation of users.
> Outliners have quite the fandom, but my issue with the traditional outliner is that they often trap data in outline form. Sure, most good outliners offer export options. Unfortunately, the second you've taken data from your outliner and exported it, you now have two versions of your data, and you've lost.
This is a fundamental problem of every app and space. But interoperability does exist here and there, it's not just exports.
> Logseq (and Obsidian) have changed this.
Not really? They only established a common foundation for interoperability. Which is also what other apps are doing to some degree. But you still have limitations by everything which is not covered by this foundation. For example, can Logseq handle dataview-syntax? Or generally any obsidian-plugin has it's own special syntax? What about other markdown-editors? How much do they support the special syntax used by obsidian or it's plugins?
True, the markdown-space has now a healthy movement toward interoperability and gains many nice functionalities. But it's not like this is especially new. And all those features also existed before Markdown in some app, in some way or another. Nothing is really new here. What's happening is that a new platform is growing, collection nice stuff from the collective pool of abilities, and a new consolidation is happening. This happens all the time. Sometimes it works, sometimes it dies.
Funny enough, the WWW was one of the first and most successful of this movements. And markdown grew from this as a simplification, to now grew into the same space where WWW started and obsidian now moves toward too, just in a different flavor. This whole "new" movement is just replicating where others were already before in different cloths.
> Finally, a single document _is_ an outline, a backlink, a data source, a webpage, a presentation, and so on...
So has Org-mode 10 years ago, XML 20 Years ago. HTML 30 years ago. More or less, the numbers may be a bit off.
> It's more than hype for me.
Good for you. I'm not question that. Just saying this generation is not the first one having that.
To say that what we have now is nothing but a new hype cycle while the Zettelkasten method was only widely exposed within the last couple of decades, and was not utilized in the design of past Outliners, shows you don't really understand what's actually changed.
What outliners do you know which allow end-users to feed their data into formulas for processing it without using general-purpose programming languages? I'm genuinely interested, as I've been exploring these tools for years and I haven't found any that meets my requirements.
> So, SQL
How many end-users without any programming experience are able to create moderately complex SQL queries?
With a data-centric outliner tool, they'll be able to decompose those into several simple graphical queries.
Bit of a pointless constraint, the talk is about outliners, not no-code-datamangment. Which tool today does this even offer on a useful level?
But you can look at leo editor (https://leoeditor.com), which is active for 20+ years, fully scriptable and extendable. Though, it's a hot piece of garbage for laymen. It's offers a bunch of features and plugins even for non-coders, but I'm not sure it would satisfy you for this area, if you can't code. Obsidian is probably better than, even if it has more limitations at the moment.
But I'm not sure if there ever is a tool which will satisfy everyone with just a no-code-approach.
I don't think it's all that useful, outside of some basic "making a shopping/packing/project list" type calculations. It's worth checking out if you're interested in the history though.
There is a fair bit left to do for the plugin (export to raw Markdown, section-level metadata), but I hope you find it useful!
It has completely replaced Pocket/Instapaper for me.
That's all pretty abstract. A simple example: it allows you to construct a tabbed view of several todo lists based on tags and fields and adjust priority and status from that single UI.
It's been available for many years, but has never been trendy, despite its unique design and strengths. I recommend giving it a spin!
I was a heavy TiddlyWiki user in the past but moved away from it precisely because of its singe-HTML file design. Modern browsers like chrome made it virtually impossible to save an edited page. Not TW's fault per se, but ruined my experience with it. There is a way to install TW-5 with node.js as a directory tree but my ship has sailed. Now I am a happy obsidian user.
Not to mention downloading and parsing 20mb-worth of html+js each time you open up the wiki can be quite slow.
As for lazy loading --- when enabled, it breaks the indexing (e.g. finding backlinks) and searching because these are done by the js inside the browser too. I only lazy-load images and binaries because they are not indexable anyway.
Either way, super powerful.
Refs: https://en.m.wikipedia.org/wiki/Datalog https://github.com/tonsky/datascript https://www.datomic.com/
The inline programmability of DataView and the Grid views etc are pretty killer. Unfortunately Obsidian is not for me, so I hope Logseq catches up.
I guess I fit solidly inside the 5GB free tier and probably will for quite a while.
I would use Dropbox but the app feels quite heavy and it wasn’t very easy to set up on iPhone.
* list all unfinished tasks grouped by some custom metadata ( project, etc.)
* have note templates which contains a dynamic query for the history of the same type of note for historical context
* use it in conjunction with Obsidian charts to make custom charts ( e.g. number of meetings with tag/metadata/mention of X)
Currently, I'm using Evernote and its new Tasks feature is very good, even though it could be better.
I cannot move from Evernote to Obsidian if I don't solve the issue of managing tasks effectively from with Obsidian, as I currently do with Emacs.
E.g. (note HN strips out emoji)
- [] Write documentation for Foobar #docs #personxyz (cal emoji) 2022-05-22
You then write a query in a markdown code block with a custom query language.E.g.
```tasks
not done
description does not include #deferred
due before today
path does not include Templates
```
For recurring tasks, I combine with the periodic notes plugin, I put the tasks in my daily/weekly (I don't use monthly but it is an option) with labels like #wednesday if it needs to done on a specific time. Then I include appropriate queries in my daily notes to bring up the relevant tasks, and I also have a Todo note with various longer term/backloggy tasks.There are other plugins you can use, like Dataview which is the subject of this post (but means each Todo needs to be its own note), or the Todoist plugin, but Tasks is the one which works for me.
I understand that it is a complex thing though, and not something easy to just throw in
I wish it were FOSS, or had a roadmap to become FOSS once the whole world already owns a licensed copy, like everyone should, but even though I'm normally a major FOSS enthusiast, I'm just happy this software exists at all, in any form.
I will definitely be making use of this dataview extension!
Tag wrangler is the other.
Maybe there are some basic queries that could support "two-way binding" of this sort, but it would be fiendishly complex and ultimately better solved by a different tool altogether
It doesn't need to be between dataviews. Just temporary filter the view, or export it in a regular static table. This is just about enhancing the View, not changing the concept.
Which opens the question, can dataview also take tables as data-source?
> Maybe there are some basic queries that could support "two-way binding" of this sort
I'm not talking about Two-way-bindings. Though this would be awesome. And I don't think it would be that hard to implement in general, depening on how exactly obsidian works internally with dataview.