Comments (14)
Hi, I've never tried linking files in markdown notes. Would you tell me what software you are using and provide a sample md including the file?
from trilium-py.
I just take markdown file import as an example, what i really need is ability to send a file to trilium note. since a cannot find out upload file API, but trilium restapi provide it since function create_note support type [ text, code, file, image, search, book. relationMap, render]. After a code view in this repo, I find it is easy to implement a file upload function. If I have time this weekend, I can make a pull requests.
Also, Markdown file can attach file, the grammar as like image, but when converse to html use markdown2, the html tag is different. what I most used scene is book note. when I create a book note, I'd like to attachment the file(epub|pdf) in this markdown file, when next time I read my booknote, at least I have a copy of the book.
Attachment is a simple markdown with file example in obsidian.
Obsidian Vault.zip
from trilium-py.
I tried to use obsidian-export to convert obsidian vault to ordinary markdown as explained here https://github.com/Nriver/trilium-py#import-from-obsidian.
But your the file in your sample does not seem to be handled properly by the tool. The square brackets in file name is causing issues like zoni/obsidian-export#14.
from trilium-py.
Sorry for the export problem and late reply. I'm experience a hard weekday. The obsidian example is just a toy and not self test.
Previously, I used Joplin which direct export markdown with file, you can try to upload.
In Monday, I have success write a function with process file upload, but currently I have no time to format it, maybe after I complete my lifework I have time.
joplinExport.zip
from trilium-py.
#11 Just add file upload function firstly, the markdown file process next time.
from trilium-py.
@Nriver Hi, since #11 has been merged, can you create a new release and update pypi?
from trilium-py.
I was waiting for his next pr. I will make a release anyway.
from trilium-py.
I was waiting for his next pr. I will make a release anyway.
Thanks
from trilium-py.
Just pushed 0.7.5 to pypi
from trilium-py.
Sorry for the late, I'm currently prepare for job interview and too busy, may I have time next weekend!
from trilium-py.
Good luck with your job interview.
from trilium-py.
I have finish code writing and function test. But I find some confused naming in API and parameter naming. Can you give some more parameter explanation about create function?
from trilium-py.
Basically I'd write with snake_case. But when it comes to the parameters defined in etapi like noteId
, https://github.com/zadam/trilium/blob/7fc2824325f6a6bcbbd2e18179d69dbd4ac65d09/src/etapi/notes.js#LL80C9-L80C9, I would prefer to use the same name even if it's camelCase not the snake_case.
from trilium-py.
Implemented in 99d2197
from trilium-py.
Related Issues (19)
- ModuleNotFoundError: No module named 'magic' HOT 3
- Could I use this for making ChatGPT bot? HOT 1
- How does it compare to pytrilium? HOT 3
- Duplicate Journal Day Note HOT 4
- Question: What is the earliest python version to be supported? HOT 3
- Support for attachments in Trilium v0.61 HOT 2
- Error raised using code from main: 4dc017d03d65dad31871e36b6d1fd59439d80b34 HOT 1
- em tags in imported image paths HOT 2
- Import markdown files with frontmatter yaml? HOT 5
- Attachments removed from ETAPI API
- Sync by using trilium-py? HOT 1
- Can not parse todo item correctly in 0.61.13 HOT 1
- 大佬整个中文文档吧 HOT 1
- Support for full-text search HOT 1
- Problem with certain images when importing .md HOT 5
- Img tags without closing "/>" HOT 1
- How to test for valid login and etapi session? HOT 4
- invalid escape sequence (was Export: no argument 'savePath') HOT 2
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 trilium-py.