konodyuk / obsidian-typing Goto Github PK
View Code? Open in Web Editor NEWProgrammatic customizations for groups of notes
Home Page: https://konodyuk.github.io/obsidian-typing/
License: MIT License
Programmatic customizations for groups of notes
Home Page: https://konodyuk.github.io/obsidian-typing/
License: MIT License
Hello! This as very quickly become one of my all-time favorite plugins for obsidian. However looking through the docs and I couldn't find a way to automatically set a field to the current date, nor documentation on how to include javascript in an OTL file so I could grab it that way. Is this a feature that exists? Thank you so much in advance!
Hey, first of all I want to say, that you did an amazing piece of work here and I greatly appreciate and awaited this kind of contribution to the obsidian plugins. To me, it seems like a perfect bridge between the casual obsidian workflow and eg. capacities.io's with its object centered approach. I have a few questions though.
hide_inline_fields = "all"
inside styles, am I doing something wrong? I have a base type that adds this style to and all other types inherit that base type.Testing the plugin (I really love it so far) seems, file uploads are placed in files
folder in root.
A welcome functionality would be having the parameter to set the directory where the file should be saved, and the default value being the folder that was set as Attachments Folder in Obsidian Settings or a path set in the plugin settings.
I am not sure how possible it is, but it would provide some nice flexibility, and interoperability with plugins like dataview and metadata menu.
Another nice feature would be to allow setting a top level folder as a type, and applying the type to all entries in subfolders too.
I have seen some refactoring you have done, what is OTL format you replaced yaml with?
Hello! Somewhere I had read that Typing does not support using YAML properties as fields because of the way Obsidian parses links, and that won't chance until Obsidian fixes the way linking works in properties. That is perfectly fine, however I would still love to be able to create empty yaml properties in a newly created note! It looks like the only way I can do so is to write some Javascript code, which I will absolutely do but I think just providing a ergonomic way to make empty properties is a nice middle-ground until the linking issue is fixed.
My usecase in the moment would be to add a reviewLater
property that I can set as a bool in Obsidian's editor.
Thank you!
I can't seem to find the main.js file in order to manually install. The BRAT plugin also cannot find it. Many thanks in advance!
Would it be possible to selectively apply or not apply based on file type, Prefix, Suffix, or some variation of sorting?
So, when using undo in the OTL files, if you press undo one more time after the vary last state has been restored, it will delete the contents of the file. This has caused a headache on a few occasions. Pressing redo will NOT restore the deleted text.
This seems quite popular for installing plugins still in review process:
https://github.com/TfTHacker/obsidian42-brat
Has auto update as well.
Maybe there could be instructions added in the README to use this?
Hello,
I can't seem to find the typing.otl file or the command to create it even after reloading and toggling it on and off. Am I doing something wrong?
This page mentions a relation
argument for the Note field type. I know not everything is documented, but what is this argument's use case?
I'm not sure what may cause this, but when I enable this plugin, upon creating a new note, I am not brought into the title bar to rename the note and when I press F2, it does not enter file rename (and in fact seems to lock all typing until I switch notes). I must use the right-click > rename function in order to rename a file after enabling, and I must restart Obsidian after disabling the plugin in order to restore the original functionality.
First off, what an interesting concept. For a bit of set up ahead of time, this looks like it could accomplish some intereting things that are generally done with Templater, Quick Add, and possibly others.
Just noting that the examples have portions that are only visible in Preview.
Is it possible to set them up so that they would be available in Edit mode, too?
I do about 99% of my work in Edit mode, rarely switching to Preview.
Thanks,
For example, neither of these fields works:
fields {
tags: List[Tag[dynamic=true]]
choices: List[Choice["A", "B", "C"]]
}
When you try to create a tag
, or choose one of the choices
, the field just gets cleared out.
Another user ran into the same issue in this video at the linked timestamp:
Obsidian Typing BETA Plugin!
Just by looking at the docs, at a first glance it seems to me that the main typing.otl
file needs to be located at the root of the Obsidian vault. In general, I think it would be a nice addition if such file could be stored in a custom location specified by the user. For instance, I'd like to save it in a schema
folder, where I also have other plugin-related config file (e.g. templates).
In addition, once the typing.otl
can be "confined" to some folder, it would also be nice to have the possibility to split it into different files (for example, one for each type, which would be indeed useful when type specifications grow big). I'm actually not sure whether this possibility has already been considered, since in the docs I can see a placeholder for a "Scripting > Imports" section ๐
Obsidian 1.4.12 (macOS)
type Movie
in /typing.otlVM272 plugin:typing:151657 Uncaught TypeError: Cannot read properties of null (reading 'state')
at eval (plugin:typing:151657:21)
at Object.onBlur [as focusoutfalse] (plugin:typing:151856:11)
at HTMLDivElement.j (plugin:typing:254:33)
at p (plugin:typing:124:12)
at q (plugin:typing:364:27)
at q (plugin:typing:363:17)
at q (plugin:typing:363:17)
at P (plugin:typing:179:1234)
at L (plugin:typing:290:188)
at P (plugin:typing:179:483)
Let me know if further debugging interface is needed
Just went to try out the plugin and noticed that despite being in the documentation, Boolean
isn't actually implemented as a field type. Kind of odd considering it's arguably the most basic one. I've checked and it's the only documented type missing. true
and false
also say "invalid type".
Add a command/hotkey that allows you to create a typed note in the same place Obsidian would normally create a new note. Unless already supported, make the folder
option in typing.otl
optional and have it create notes in the default folder.
This would cater to people who want to avoid using folders as much as possible and rely on tags, properties, and now "_type"s.
Optionally add a button to this list to create a typed note under a folder, and overall just add support for this concept.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.