Enhance {{clipboard}} to work with copied files' paths #24
Replies: 8 comments 10 replies
-
Just to let you know that Sorry that it is not working yet on Windows :( As you know I'm not an expert but I'm facing some issues with
:) |
Beta Was this translation helpful? Give feedback.
-
Yes I had a clue that also Windows might have different clipboards for different things. But good to know that the file copying/pasting works on Mac. About different clipboards, I remember now that Linux has two clipboards: One is the normal copy/paste clipboard, and a second one is for text that is selected in a command line terminal window. You just select text in a terminal window and it becomes available in a secondary clipboard, but you can't access it with Ctrl+V, you need to use some other keyboard shortcut to paste it. Things todo:
If I need to create new versions of |
Beta Was this translation helpful? Give feedback.
-
I found a couple of libraries that can read file paths from clipboard: But I was not able to load them correctly. I was able to |
Beta Was this translation helpful? Give feedback.
-
Hi @FelipeRearden , can you test on Mac to copy multiple files same time to clipboard and then see what |
Beta Was this translation helpful? Give feedback.
-
Hello @Taitava !!!!
I was trying to show that on MacOS, you have to use
Fist example show that when there is only {{clipboard}}, MacOS will cut the text when see a
With “ {{clipboard}}” we have the desired result
I copied just the files_names :)
I have the same principle as you :) thanks for your comment.
Additional thing to talk to you that I remember reading this: on MacOS the file_path:absolute starts with
This is a fantastic idea !!!! I haven’t thought about multiple files yet, but it is a something important and you are right about the “ ” issue.
This is a AMAZING idea !!!!! These ‘modes’ could be useful not only for multiple file_paths, but for text in multiple lines too
I know this feeling: when we get excited about something we can’t stop writing :) This is gonna be an amazing feature in the future. Let’s keep talking :) Have a great day! |
Beta Was this translation helpful? Give feedback.
-
Ah, now I understood it when I read it again one more time. Thanks! 🙂
It's enough that I know
That seems like a bug! But the character is
Thanks! 🙂 I have to say that I didn't think about multiple files, too, when I first started to thinking about how
Hmm, currently
Exactly! 🙂
Thank you and have a great day too! You are super! 🙂 |
Beta Was this translation helpful? Give feedback.
-
And one more mode: |
Beta Was this translation helpful? Give feedback.
-
This clipboard file path thing has received an answer in Obsidian's forum by renmu:
I haven't tried this code yet. Seems like it should work on Windows and Mac. If a solution for Linux will be found, I think this discussion can be moved back to Ideas (now it's in Ideas - on hold). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
At least in Windows, if you select a file in Explorer (= file manager) and copy it with Ctrl + C, the system does not use the regular clipboard to store a path to the copied file. If you in this situation use a shell command with
{{clipboard}}
in it, you will end up with an empty text instead of a path to the file that should be in the clipboard.I don't know how this works in Mac. In Linux, if I remember correctly, you get the file path in the clipboard just like you would expect.
I need to think about a way how to provide access to clipboard files. I'd like to define a command that, when executed, it would copy whatever file I have in the clipboard to my Obsidian vault. It would be nice for my cat food database where I collect images of different food brands and ratings done by my cat. 😸
Beta Was this translation helpful? Give feedback.
All reactions