mgmeyers / obsidian-embedded-note-titles Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
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 ?
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?
What
I look forward to this being updated,
Thanks!
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)
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:
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:
I decide to manually install it via BRAT, and I get an incompatibility issue.
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
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
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:
embeddedTitle: false
, disableFor 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.
Add a option to use the first aliases for files metadata instead of the title which could be something meaningless sometimes.
hi, mgmeyers.
Embedded note-titles became an essential plugin for my workspace. I wanna use this plugin on mobile too! Please support mobile!
# Heading 1
must be on the first line or first line after YAML. If there are characters above the H1, the plugin will inappropriately render the title.# heading 1
on any line in the note.thanks for considering this.
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!
The title is not included when exporting the note to PDF.
FTR, I discovered this plugin via this forum. It's a cool way to settle the title vs. no title dilemma.
Would be great to have the option to center justify or other options. Either throughStyle Settings or through a CSS snippet.
Thanks for the plugin!
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.Matrix
→ Matrix
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
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.
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!
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!
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!
Currently, the Title is placed at the very top of the document. I would like to be able to have it placed underneath the metadata.
It has been asked before, but can it be done? Automatic Note titles in export > pdf?
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
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.
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.)
When I set the title image by using banners, the H1 title rendered automatically by the embedded-note-titles plugin cannot be displayed.
Banners repo: https://github.com/noatpad/obsidian-banners
The heading will have two arrows for collapsing it.
The heading should only have one arrow for collapsing it.
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?
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:
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)
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?
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
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.
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.
What I'd love to achieve, is to edit the text from the big title provided by this plugin
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
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
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.