mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-11 05:45:26 -06:00
FR: Drag and drop documents from file managers #4277
Closed
opened 2025-10-01 16:37:22 -05:00 by giteasync
·
14 comments
No Branch/Tag Specified
main
feature/note_info_new_layout
feat/improve-docs-take1
bugfix/title-color-in-note-tree
stable
feat/rice-searching-with-sqlite
feat/persistant-tray
migrate_pageurl
feat/push-to-wiki-when-docs-change
feat/redo-llm-feature-take2
weblate-trilium-client
kev/share-html
feat/website/improvements
fix/mkdocs-take-2
feature/dx
fix/try-to-fix-swaggerui-api-pages
feat/add-ckeditor-plugin-options
feat/improve-docs
feat/add-websocket-docs
feat/llm-tool-improvement
feat/better-image-viewer
feature/electron-builder
feat/add-ocr-capabilities
feature/fs_sync
renovate/csrf-csrf-4.x
algolia_v1
v0.100.0
v0.99.5
v0.99.4
v0.99.3
v0.99.2
v0.99.1
v0.99.0
v0.98.1
v0.98.0
v0.97.2
v0.97.1
v0.97.0
v0.96.0
v0.95.0
v0.94.1
v0.94.0
v0.93.0
v0.92.7
v0.92.6
v0.92.5-beta
v0.92.4
v0.92.3-beta
v0.92.2-beta
v0.92.1-beta
v0.92.0-beta
v0.91.6
v0.91.5
v0.91.4-rc1
v0.91.4-beta
v0.91.3-beta
v0.91.2-beta
v0.91.1-beta
v0.90.12
v0.90.11-beta
v0.90.10-beta
v0.90.9-beta
v0.90.8
v0.90.7-beta
nightly
v0.90.6-beta
v0.90.5-beta
v0.90.4
v0.90.3
v0.90.2-beta
v0.90.1-beta
v0.90.0-beta
v0.63.7
v0.63.6
v0.63.5
v0.63.4
v0.63.3
v0.63.2-beta
v0.62.6
v0.63.1.1-beta
v0.63.1-beta
v0.62.5
v0.63.0-beta
v0.62.4
v0.62.3
v0.62.2
v0.61.15
v0.61.14
v0.62.1-beta
v0.62.0-beta
v0.61.13
v0.61.12
v0.61.11
v0.61.10-beta
v0.61.9-beta
v0.61.8-beta
v0.61.7-beta
v0.61.6-beta
v0.61.5-beta
v0.61.4-beta
v0.61.3-beta
v0.61.2-beta
v0.61.1-beta
v0.61.0-beta
v0.60.4
v0.60.3
v0.60.2-beta
v0.60.1-beta
v0.60.0-beta
v0.59.4
v0.59.3
v0.59.2
v0.59.1
v0.59.0-beta
v0.58.8
v0.58.7
v0.58.6
v0.58.5
v0.58.4
v0.58.3-beta
v0.58.2-beta
v0.58.1-beta
v0.58.0-beta
v0.57.5
v0.57.4
v0.57.3
v0.57.2
v0.57.1-beta
v0.57.0-beta
v0.56.2
v0.56.1
v0.56.0-beta
v0.55.1
v0.55.0-beta
v0.54.3
v0.54.2
v0.54.1-beta
v0.54.0-beta
v0.53.2
v0.53.1-beta
v0.52.4
v0.53.0-beta
v0.52.3
v0.52.2
v0.52.1-beta
v0.52.0-beta
v0.51.2
v0.51.1-beta
v0.51.0-beta
v0.50.3
v0.50.2
v0.50.1
v0.50.0-beta
v0.49.5
v0.49.4
v0.49.3
v0.49.2-beta
v0.49.1-beta
v0.49.0-beta
v0.48.9
v0.48.8
v0.48.7
v0.48.6-docker
v0.48.6.1
v0.48.6
v0.48.5
v0.48.4
v0.48.3
v0.48.2
v0.48.1-beta
v0.48.0-beta
v0.47.8
v0.47.7
v0.47.6
v0.47.5
v0.47.4
v0.47.3
v0.47.2
v0.46.9
v0.47.1-beta
v0.46.8
v0.47.0-beta
v0.46.7
v0.46.6
v0.46.5
v0.46.4-beta
v0.46.3-beta
v0.46.2-beta
v0.46.1-beta
v0.46.0-beta
v0.45.10
v0.45.9
v0.45.8
v0.45.7
v0.45.6
v0.45.5
v0.45.4
v0.45.3
v0.45.2
v0.45.1
v0.45.0-beta
v0.44.9
v0.44.8
v0.44.7
v0.44.6
v0.44.5
v0.44.4
v0.44.3-beta
v0.44.2-beta
v0.44.1-beta
v0.44.0-beta
v0.43.4
v0.43.3
v0.43.2
v0.43.1
v0.43.0-beta
v0.42.7
v0.42.6
v0.42.5
v0.42.4
v0.42.3
v0.42.2
v0.42.1
v0.42.0-beta
v0.41.6
v0.41.5
v0.41.4-beta
0.41.3
v0.41.3-beta
v0.41.2-beta
v0.41.1-beta
v0.41.0-beta
v0.40.7
v0.40.6
v0.40.5
v0.40.4
v0.40.3
v0.40.2
v0.40.1
v0.39.6
v0.40.0-beta
v0.39.5
v0.39.4
v0.39.3
v0.39.2-beta
v0.39.1-beta
v0.39.0-beta
v0.38.3
v0.38.2
v0.38.1-beta
v0.38.0-beta
v0.37.8
v0.37.7
v0.37.6
v0.37.5
v0.37.4
v0.37.3
v0.37.2
v0.37.1-beta
v0.37.0-beta
v0.36.5
v0.36.4
v0.36.3
v0.36.2
v0.36.1-beta
v0.36.0-beta
v0.35.2
v0.35.1
v0.35.0-beta
v0.34.3
v0.34.2
v0.34.1
v0.34.0-beta
v0.33.7
v0.33.6
v0.33.5
v0.33.4
v0.33.3
v0.33.2-beta
v0.33.1-beta
v0.33.0-beta
v0.32.4
v0.32.3
v0.32.2-beta
v0.32.1-beta
v0.32.0-beta
v0.31.6
v0.31.5
v0.31.4
v0.31.3
v0.31.2-beta
v0.30.8
v0.31.1-beta
v0.31.0-beta
v0.30.7
v0.30.6
v0.30.5
v0.30.4
v0.30.3-beta
v0.30.2-beta
v0.30.1-beta
v0.30.0-beta
v0.29.1
v0.29.0-beta
v0.28.3
v0.28.2
v0.28.1-beta
v0.28.0-beta
v0.27.4
v0.27.3
v0.27.2-beta
v0.27.1-beta
v0.27.0-beta
v0.26.1
v0.26.0-beta
v0.25.2
v0.25.1-beta
v0.25.0-beta
v0.24.5
v0.24.4-beta
v0.24.3-beta
v0.24.2-beta
v0.24.1-beta
v0.24.0-beta
v0.23.1
v0.23.0
v0.22.1
v0.22.0
v0.21.0
v0.20.2
v0.20.1
v0.20.0
v0.19.1
v0.19.0
v0.18.0
v0.17.0
v0.16.0
v0.15.0
v0.14.1
v0.14.0
v0.13.0-beta
v0.12.0
v0.11.1
v0.11.0-beta
v0.10.2-beta
v0.10.1-beta
v0.10.0-beta
v0.9.2
v0.9.1-beta
v0.9.0-beta
v0.8.1
v0.8.0-beta
v0.7.0-beta
v0.6.2
v0.6.1
v0.6.0-beta
v0.5.6
v0.5.5-beta
v0.5.4-beta
v0.5.3-beta
v0.5.2-beta
v0.5.1-beta
v0.5.0-beta
v0.4.1
v0.4.0-beta
v0.3.3
v0.3.2
v0.3.1
v0.3.0
v0.2.2
v0.2.1
v0.2.0
v0.1.2
v0.1.1
v0.1.0
v0.0.11
v0.0.10
v0.0.9
Labels
Clear labels
BE
Difficulty: Easy
Difficulty: Hard
Difficulty: Hard
State: Blocked
State: Outdated
State: Triage
State: Triage
State: Under Debate
Type: Documentation
Type: Scripts & Themes
UI
UI
UI
awaiting feedback
ckeditor
container
dependencies
desktop-app
downstream
effort-high
effort-low
effort-medium
geo-map
llm
mermaid diagrams
mobile
ported-issues
pull-request
Mirrored from GitHub Pull Request
question
refactor
regression
scripting
search
search
sync
upstream
web-clipper
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TriliumNext/Trilium#4277
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gerroon on GitHub.
Hi
It would be very helpful if one can drag documents and drop into Trilium, both as an attachment and as a new document. If it is a recognized attachment and it is text based it would insert is the content.
At the moment when I try such action, it pretends that it will do it but I get a pop up that says "moving cloning here would create cycle"
I am using the Linux version.
@gerroon commented on GitHub:
Thanks for the additions
@gerroon commented on GitHub:
Also my request is abit more extended than the one you opened. I personoanlly would like to be able to drop documents as content of a note.
thanks
@gerroon commented on GitHub:
Thanks I appreciate it, this would make it great for documentation
@zadam commented on GitHub:
This is planned, I created an issue for this a week ago in #407
@zadam commented on GitHub:
Import support is now more extended - drag & drop on tree (or note detail) works and HTML & MD files are by default imported as new text notes (not attachments). Will be released soon.
@zadam commented on GitHub:
Thanks for report, looks like your issues were caused by the windows not giving correct MIME types (I was developing on linux which worked fine). I fixed that by detecting from the file extensions instead which works on windows as well. Fix is in 0.30.3-beta.
@zadam commented on GitHub:
If you right-click on the tree and then Import, you can configure the import - specifically if you uncheck "Import HTML, Markdown and TXT as text notes if it's unclear from metadata" then .md file will be imported as a code note.
Drag & drop uses default settings which imports markdown as text file.
@gerroon commented on GitHub:
@zadam
Thanks for the new fix. It works, almost. I can import an .md as a regular not but it imports as text file. And the issue with that is this, then I need to convert it to .md from regular text, and that totally messes up the note and converts to that html thing.
thanks for the new fixes and additions again.
@gerroon commented on GitHub:
Ok I just tested the latest release and I am not getting that work properly. It still adds it as an attachment. I just dragged and dropped an README.md
I am on Win 10 0.30.2-beta
@gerroon commented on GitHub:
Ok I did a bit more testing, it is a bit confusing
D&D of an .md onto the tree creates an attachment file
D&D of an .md into an empty document area imports the content but it still creates an attachment file in the tree
@gerroon commented on GitHub:
Sure but that does not make things easy, One always end up needing to use the import menu to get the right format.
Will it be possible to change those defaults so the user can actually utilize the drag and drop approach?
thanks
@gerroon commented on GitHub:
Thanks I will take a look at it.
@gerroon commented on GitHub:
@zadam
Ok I tried your recommendation. It works only if I go through that right click import, otherwise those settings are not remembered for drag and drops on Windows as far as I can tell.
thanks
@zadam commented on GitHub:
Yes, drag & drop always uses default settings.