Drag and drop and cut/copy/paste of any file into a document should copy the file into the vault attachments folder as an internal ![[file]] link:
If the file format is recognised, it should be transcluded;
If the file format is not recognised, there should be a button offering to open the file in the default program for that format.
File links (file:///full path) should be used where the intention is to retain the file outside the vault.
This request is prompted by a question yesterday on the discord and a realisation that I will need to be doing a lot of this in the near future.
It is apparent that there are many inconsistencies in the current system, eg:
- only a limited number of formats can be dragged
- some dragged files are transcluded, PDF offers a button to open in default program, HTML and TXT have the content pasted into the file.
- Pasting doesn’t work. Mostly. Pasting a URL gives a path which, in preview, has a button to open in default program.
File links work, but they require more time and effort to operate so it would be best if they were reserved for those occasions when users want the file to stay in its current location outside the vault.
The request has been triggered by a question on the discord yesterday and a realisation that I will have to be doing a lot of this in the near future.
And conceptual consistency makes for a better user experience.