Giter Club home page Giter Club logo

obsidian-embedded-note-titles's People

Contributors

clemens-e avatar kostapc avatar lishid avatar mgmeyers avatar taurelas 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

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

dcoales sammosna b0o

obsidian-embedded-note-titles's Issues

Convert Journal File Names to different Date Style

For compatibility with LogSeq I use the YYYY-MM-DD file name style for journal files but I would prefer the title added to the file to be in more readable format e.g. Saturday, 17th July 2021. Would it be possible to have a date format setting and have the title for any file from the daily notes folder converted to the preferred format ?

H1 styling from theme

Thanks for the handy plugin.

The inserted H1 is not themed, based on the theme selected in Settings > Appearance.

Is this a deliberate choice?
Would it be possible to add the CSS classes to use the theme styling?

Not working with Live Preview on v0.13.12

What

  • Not working when Live Preview is enabled
  • If Live Preview is then disabled, the embedded note titles work again.

I look forward to this being updated,
Thanks!

[Bug] does not do anything

Obsidian version: 0.12.19

Whenever I open a note the following error shows up in the console and nothing happens in the note.

Uncaught DOMException: Failed to execute 'matches' on 'Element': The provided selector is empty.
    at getMatchedCSSRules (eval at <anonymous> (app://obsidian.md/app.js:1:1287967), <anonymous>:129:25)
    at getRefSizing (eval at <anonymous> (app://obsidian.md/app.js:1:1287967), <anonymous>:164:19)
    at HeadingsManager.getPreviewSizerStyles (eval at <anonymous> (app://obsidian.md/app.js:1:1287967), <anonymous>:214:36)
    at HeadingsManager.createHeading (eval at <anonymous> (app://obsidian.md/app.js:1:1287967), <anonymous>:292:18)
    at eval (eval at <anonymous> (app://obsidian.md/app.js:1:1287967), <anonymous>:343:22)
    at t.iterateLeaves (app://obsidian.md/app.js:1:1276816)
    at t.iterateLeaves (app://obsidian.md/app.js:1:1276914)
    at t.iterateRootLeaves (app://obsidian.md/app.js:1:1276999)
    at HeadingsManager.createHeadings (eval at <anonymous> (app://obsidian.md/app.js:1:1287967), <anonymous>:340:23)
    at eval (eval at <anonymous> (app://obsidian.md/app.js:1:1287967), <anonymous>:368:38)

[BUG] Can't enable plugin v. 1.1.2 in Obsidian

Writing it down here because I don't know if this is a bug with Obsidian or with the plugin.
After downloading it from the Obsidian community plugin client (v0.12.19 / Installer v0.10.7), the installed version is the 1.0.2:

imagen

Obsidian tells me there is no available update, yet by checking the plugin on the tab informs me it is. Clicking on update renders a "succesfully updated" that does nothing:

imagen

I decide to manually install it via BRAT, and I get an incompatibility issue.
imagen
imagen

Bug: Embedded Note Title makes editor line numbers misalign in Live-Preview

Hey, thanks for this plugin :)

I've noticed that, in LP mode, the embedded note title pushes the rest of the note downwards, which misaligns the line numbers from their corresponding lines

image

In this img, the start of the yaml --- should be at line 1, but is showing at line 4.

I had the same issue with Breadcrumbs, and used this solution to fix it: https://github.com/SkepticMystic/breadcrumbs/blob/7edc8ed25f2467da7e4810038085c58bcfe4a2cb/src/Views/TrailView.ts#L229

Basically, get the height of the embedded title, and add that to the height of the gutter

Feature request: Disable when note begins with a title or based on frontmatter

This plugin is delightful for notes where I do not have a title - some of my legacy notes already have a title, though, and sometimes I want to explicitly override the title.

I'd suggest that:

  • If a note's text content starts with a title, disable
  • If a note's frontmatter contains embeddedTitle: false, disable

For example:

---
embeddedTitle: false
foo: bar
---

# Title that Overrides Automatically Generated Title
Foo bar baz booze.

If interested, I'd be happy to take a look at implementing.

[FEAT] Mobile Support

hi, mgmeyers.
Embedded note-titles became an essential plugin for my workspace. I wanna use this plugin on mobile too! Please support mobile!

Setting to hide Title not working

Thank you for this terrific plugin, just what I need!
I have latest Insider Build 0.13.9 but when I turn on the setting to Hide Title when Level 1 Heading is present, that heading is not hidden.
See screenshot in Minimal theme
Screenshot 2021-12-14 at 17 02 14
.

FR: Get title from metadata

Could it be possible for the plugin to offer the possibility of getting the title not from the filename but from the declared metadata?

Thank you!

FR: Allow arbitrary formatting of title

This could be a difficult one. What I'm looking for is to be able to pass the note title thru any JS function that returns a string, and have the output displayed instead.

My main use case is the split dendron note names:

Math.Linear Algebra.MatrixMatrix

I'd be able to supply a function:

function dendronSplit(title) {
    return title.split('.').last()
}

This might be much more than is necessary or useful, but I imagine others would like to be able to format the title.
Even if you just allow a specific option to split dendron note titles, I'm happy. But this option is more extensible

Natively implemented in Obsidian V1.0.0?

A similar solution appears to be natively implemented in V1.0.0 . Noticeably the V1.0.0 update also broke my obsidian appearance, making all text shift entirely to the right margin in readable line length mode. Similar to this issue: b0o#2 .

Disabling the plugin appears to have fixed my issue.

Options to hide embedded title do not work

I've tried adding an H1 and also using the embedded-title: false setting in the frontmatter, but the embedded title never gets the embedded-note-title__hidden class added to it. I briefly looked through the code and couldn't find anything obvious. Can you replicate?

Obsidian version 0.13.19
Plugin version 1.2.6

PS - This plugin scratches a serious itch for me, thank you for creating it!

Bug: all pages show the same title when use other languages.

When I use some Japanese or Chinese words in the title, the preview will show the same title if I click another page.
For example :
I named two pages, one is "の" and another is "い".
When I click the first page, the title will show "の". Now If I click the "い" page , it still show "の" but not "い".

Thank you for bringing such a great plugin and looking forward to your reply!

Format title

Hello!

The plugin isn't using the same styling as my theme (Minimal) for the embedded h1 title. Is it possible to make the style match?

Thank you!

Titles in export PDF

It has been asked before, but can it be done? Automatic Note titles in export > pdf?

Sample CSS modification has errors

I was able to get the embedded note title to change using this CSS code:

.embedded-note-title {
color: blue;
}

I wasn't able to get any of the sample CSS to work (on top of that it seems to have an "s" at the end of .embedded-note-title, where the code in the plugin doesn't).

Thanks,

Gabe

Enable for mobile devices

Currently everytime I open my vault on my iPad the plugin turns off and I have to reenable on my Mac. Would be great if it could work on mobile Obsidian as well.

Please enable this for mobile if possible

Is there any chance to enable this for mobile? I find this plugin to be indispensable to the way I work with Obsidian and it's such a pain that I cannot load it on mobile. (I even tried turning off the desktop only flag in JSON but it didn't help.)

[Bug] Can't insert caret in last 2 lines of document.

Once the caret leaves the last 2 lines of my markdown document, I can no longer click to insert the caret in these final two lines, nor use the cursor keys to move the caret into these lines.

If I disable the plugin, then normal behaviour resumes.

Obsidian Embed H1

The heading in line 1 gets two collapse arrows in Live Preview mode

Steps to Reproduce

  1. Enable plugin
  2. Use Live Preview mode
  3. Turn on "Fold Heading" in the Editor settings pane
  4. Write a title in the very first line of a note (which heading size does not matter, it just must be in line 1)

Result

image
The heading will have two arrows for collapsing it.

Expected Result

image
The heading should only have one arrow for collapsing it.

Details

  • Embedded Note Titles Version: 1.1.6
  • Obsidian Version: v0.13.10
  • OS: MacOS 12.1

Overlapping CSS styles

I used styles for CSS customization.
.embedded-note-titles .markdown-preview-view > h1,
.embedded-note-titles .CodeMirror-scroll > h1 {
...}
But it also works in the Community plugins Browser in the plugins description.
Can this be avoided somehow?

Heading Duplicated in Live Preview for Notes in Sidebar

Using Obsidian 0.13.10 with Live Preview enabled and the Embedded Note Titles plugin version 1.1.6, I am seeing the note title duplicated on notes in the left or right sidebar. The number of repeated titles seems to be random -- sometimes I only see one, sometimes I see 10 or more.

Here's an example of what I'm seeing:

Screen Shot 2021-12-16 at 3 31 48 PM

Error in javascript console

I'm seeing lots of recurring instances of the following error in the the javascript console. These only appear when this plugin is enabled. Doesn't seem to cause any real adverse effect but I thought you might like to know.

VM300:810 Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
    at getSheetRules (eval at <anonymous> (app://obsidian.md/app.js:1:1490278), <anonymous>:810:31)
    at getMatchedCSSRules (eval at <anonymous> (app://obsidian.md/app.js:1:1490278), <anonymous>:895:25)
    at getRefSizing (eval at <anonymous> (app://obsidian.md/app.js:1:1490278), <anonymous>:1084:19)
    at PreviewHeadingsManager.getPreviewSizerStyles (eval at <anonymous> (app://obsidian.md/app.js:1:1490278), <anonymous>:1268:36)
    at PreviewHeadingsManager.createHeading (eval at <anonymous> (app://obsidian.md/app.js:1:1490278), <anonymous>:1286:18)
    at eval (eval at <anonymous> (app://obsidian.md/app.js:1:1490278), <anonymous>:1319:22)
    at Array.forEach (<anonymous>)
    at PreviewHeadingsManager.createHeadings (eval at <anonymous> (app://obsidian.md/app.js:1:1490278), <anonymous>:1316:51)
    at eval (eval at <anonymous> (app://obsidian.md/app.js:1:1490278), <anonymous>:1422:49)

Ability to select the title for easy copy/pasting

Embedding the title is great and natural, which made me many times wanted to copy the title as it feels natural. until I find i could not do it.

Is it possible to make the title selectable, so I can copy the content?

Convert format of journal file names

Hi,

I cloned your repo so that I could add the following lines at line 211 in HeadingsManager.ts to convert journal file names to a more readable format for the title. I stick with this format for the files for compatibility with LogSeq.

  // Check if the title is a date and if so convert it
    if (moment(title,"YYYY_MM_DD",true).isValid()){
      title = moment(title,"YYYY_MM_DD").format("ddd, Do MMMM YYYY");
    }

Obviously the file format and title format should be settings but I'm not sure how to do that at the moment. Do you think this is something you would want to include in your plugin. If you don't have time to do it yourself I'm happy to do some research and add the settings options if you would then consider accepting a pull request.

Anyway, thanks for the plugin in any event.

Cheers,
David

Editing Title Text - from the Title in Note

Hey thanks a lot for making this amazing plugin

I make YouTube videos On Obsidian and other PKM tools https://www.youtube.com/c/SantiYounger/videos

There's a system I want to teach (it's something more developed towards outliners like Roam) However I've found a way to adapt it to Obsidian and I'm really close to achieving it.

The only missing peace is the title, and this plugin is so close to allow for this workflow to happen

With that said I'd love to request for this feature, if possible, I'm not sure how complicated it would be, so I'd love to know your opinion if this is achievable.


Long story short

The system I'm working on is a variation of zettelkasten, I'm using a technique where the contents of a note is in the title. This allows for quick visualization of ideas, and easy reusing them.

In short I'm using long titles (around 20 - 40 words).

The biggest limitation for this system is how unfriendly Obsidian is to long titles. If it get's too long it just fades out and it's hard to edit it easily without having to use the arrows a lot to navigate the text.

image

What I'd love to achieve, is to edit the text from the big title provided by this plugin

l
image

This would be amazing and I'd be super greatful if it was possible to achieve.

However I'm aware that there might be potential limitations or that this might be more work than expected. I'd love to get your thoughts on this

Thank you

Daily note title format not applied

Hi,

I'm using version 1.2.2 and have entered the following as my daily note title format but it's not being applied.

ddd, Do MMMM YYYY

I have changed the format of my daily note file titles to the format below if perhaps that is causing the problem.

YYYY_MM_DD

Error when file opened in New Window

After the 15.6 update, individual notes can be opened in new window. However, when the file is opened in a new window, the title of the note is displayed 4 times. When the live preview/read modes are toggled, the no of titles increases at every such instance.
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.