Git Product home page Git Product logo

obsidian-typing's People

Contributors

konodyuk 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  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  avatar  avatar  avatar  avatar  avatar  avatar

obsidian-typing's Issues

Is there a way to set a field to the current date?

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!

Feature summary, clarifications and documentation

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.

  1. Could you give a more comprehensive outline of the already implemented features soon, with possibly minimum examples, like for the already documented features?
  2. I use the latest version as of rn but hiding inline properties does not work using 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.
  3. Is any close intergration with the templater plugin intended? Or asked differently, is there currently a way to use markdown templates with typing somehow? Headers and footers are a nice feature but not really flexible atm
  4. Do you plan on providing more extensive options for automatic formating of note titles like {compact_date} with a customizable, more human readable date format instead?

File Uploads Destination Directory Parameter

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.

[Feature Request] Tag Based Typing, and type Sub Folders

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.

[Feature Request] Add option to create yaml properties for fields instead of inline

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!

Missing main.js file?

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!

Seems to be causing canvas card text to render lower.

Here's the card with the setting Headers and Footers: preview mode enabled.

image

Here's my settings window.

image

I tested it out creating new cards with settings enabled and disabled and figured out it's the Headers and Footers: preview mode

image

I also pulled up a sandbox vault and tried it out with only the Typing plugin installed. Still had the issue.

Here's one of them side by side

image

Would it be possible to selectively apply or not apply based on file type, Prefix, Suffix, or some variation of sorting?

[Bug] Using undo can cause the OTL contents to be deleted.

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.

typing.otl missing

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?

Documentation: Note relation

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?

F2/File Rename Collision?

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.

Interesting concept - works with Edit mode more?

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,

Location of `typing.otl` and imports

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 ๐Ÿ˜„

New types don't show up

Obsidian 1.4.12 (macOS)

  • Creating type Movie in /typing.otl
  • Issue still exists if movie.otl exists in /OTLfiles (my file directory) with the correct type, and root schema is empty
  • Using Command Palette I trigger Typing: New
  • The following error message appears in console:
VM272 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

no type `Boolean`

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".

Create typed notes in same folder obsidian would create a note.

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.
image

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.