Code Monkey home page Code Monkey logo

Comments (3)

andrewbrereton avatar andrewbrereton commented on August 17, 2024

I understand the reason behind this ... However ... There are two pieces of complexity here:

  1. This plugin works by processing line-by-line. This would need to change if was to consider groups of lines together, and
  2. The plugin would need to consider "Is this next line part of this task OR is it a new line with indentation?". There's no way to know the intent of the user. Perhaps I could add some settings to let the user decide how things are processed.

I have a suggestion that may be silly, so I will write it out, and you let me know.

Here is a screenshot from Obsidian showing the same thing that you shared:

image

However, if we go to View > Source Mode the you will see that I have achieved this by using a HTML line break tag <br>:

image

So my suggestion is:

The first line stays as the summary. If a <br> tag is encountered, then the summary is everything left of the first <br> tag, and the description is everything to the right of the first <br> tag.

Example with many <br> tags to demonstrate:

Source Mode:
image

What you see:
image

Event Summary: Do something

Event Description:

This would appear in the description.
This would also appear in the description.

There are two line breaks which makes this a paragraph"

Please let me know your thoughts. Have a play around with typing <br> into Obsidian so you can see how Obsidian behaves when you do this.

from obsidian-to-ical-plugin.

bepolymathe avatar bepolymathe commented on August 17, 2024

Hi @andrewbrereton

I understand the technical constraints and the need to work on a line...

Thanks for sharing your suggestions. I think the main problem arises if you insert dates in the line without grouping them in the same place.

image

Tasks and Dataview have more trouble interpreting it.

image

What if you used lightweight markup specific to the description... for example

- [ ] Test |d Some description here. Why not with two line <br> it could be cool ! d|

I don't know if it's a good solution... I'll have to think about it some more ;-)

from obsidian-to-ical-plugin.

bepolymathe avatar bepolymathe commented on August 17, 2024

Hi, @andrewbrereton

I hope you are well. I have not always had a miraculous idea for this problem. Could we try the proposal you made with
?

from obsidian-to-ical-plugin.

Related Issues (20)

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.