Comments (10)
Ok so it makes sense to alias to line one
and line two
, which is the current behavior.
from obsidian-importer.
Agree with all of this. That was my thinking when I did it.
To reiterate
- Notes can often just be a title.
- The obsidian note name is just what keep exported as filename so it's already sanitised.
- Because the original title can have any character or even line breaks, the filename can be different, so the original title is added as an alias.
- To prevent multi line aliases, new line chars are replaced with spaces.
Note, on the original ticket question...
I considered checking whether the title matched the filename and only adding the alias if different, but I decided to just keep it simple and consistent for every note. Which could definitely be reconsidered if necessary.
from obsidian-importer.
@daledesilva I am not sure I understand the purpose of using keepJson.title.split('\n') for aliases. Can notes have multiple titles?
from obsidian-importer.
Notes can have titles that are more than one line long, but I only noticed that accidentally.
The data then looks like this: "title": "line one\nline two",
. It can even have trailing newlines.
from obsidian-importer.
For "line one\nline two"
, what does the filename become?
from obsidian-importer.
With 1.1.0, it's line one_line two
The alias becomes line one line two
from obsidian-importer.
Hmm ok, so we should probably ignore the title field altogether? What do you think @daledesilva?
from obsidian-importer.
Definitely don't ignore the title, at least for file names. Notes can even be only a title. I don't think many people use multi line titles, you'd have to know and press shit enter, or a normal enter would take you to the note content when you input it. (Or you can just copy text there that has more lines.)
I think it's fine as is, collapsing multi line titles with a single space, and keeping the file name with underscores.
from obsidian-importer.
The file name is created from what Keep exports as file names in the zip. If it's always some combination of flattened "title" field then it would make sense to ignore.
from obsidian-importer.
I think that's what it is, yes, and if there's no title, it's the date instead. But I would not ignore it, unless you have some better mechanism for creating a file name or title. It makes a lot of sense to me, to have the OS friendly file name, and if it differs from the original, have an alias field with the original title with special characters if there were any.
from obsidian-importer.
Related Issues (20)
- OneNote bug bounty - $300 HOT 12
- Icons imported from Notion don't show correctly in Obsidian
- Roam Import: Problems with double dot and slash HOT 1
- Roam Import: Missing features.
- Import data from Bear (.bear2bk) skips half of my files? HOT 3
- unknown attachment: com.apple.drawing.2 HOT 4
- Evernote: Notes that include $ symbol have broken links HOT 2
- Evernote: Titles with quotation marks are imported as Untitled Note HOT 2
- Import from Notion does not work HOT 1
- [Evernote] Tag hierarchy/structure is not imported HOT 1
- Import from Journey.cloud
- Backslashes unhelpfully placed before underscores
- Evernote: File name of a resource is cut off at the first dot HOT 1
- Ability to import from clipboard [spec for mobile] HOT 2
- [Apple Notes] Image file name conflict results in "(error reading attachment)" HOT 3
- [OneNote] Table not properly formatted if it contains code
- [Evernote] Fails to set some notes' dates HOT 6
- Repeated crashing during Notion import HOT 1
- [OneNote] Sign in often not possible HOT 2
- [OneNote] hierarchically nested section groups are not shown and cant be imported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-importer.