Comments (7)
How about #807 ?
from markdown-mode.
I'll look into dnd later.
If I use yank instead of yank-media with an image in clipboard contents I still get the "Selection owner couldn't convert" – is this something that should work, or is plain yank always expected to only yank text and never images?
I'm not sure yet, but I suppose yank always yanks text.
from markdown-mode.
I've also implemented the dnd feature
from markdown-mode.
Nice! I can now M-x yank-media
in a markdown-buffer and it does the right thing :-)
If I drag from thunar into emacs, it still just opens the file – I believe this requires (setq-local dnd-protocol-alist (cons '("^file:///" . markdown--dnd-local-file-handler-which-is-not-yet-implemented) dnd-protocol-alist))
as in https://yhetil.org/orgmode/[email protected]/ ?
If I use yank
instead of yank-media
with an image in clipboard contents I still get the "Selection owner couldn't convert" – is this something that should work, or is plain yank
always expected to only yank text and never images?
from markdown-mode.
Is this meant to work cross-plattform or exclusively for Gnome? I am using Emacs 29.1. on Windows and when an image is on the clipboard and I call yank-media in a markdown-buffer I get the following message:
yank-media: No handler in the current buffer for anything on the clipboard
from markdown-mode.
Emacs has not supported images in clipboard on Windows yet.So this feature works only on Desktop Linux and macOS.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Window-System-Selections.html
When Emacs runs on MS-Windows, it does not implement X selections in general, but it does support the clipboard. gui-get-selection and gui-set-selection on MS-Windows support the text data type only; if the clipboard holds other types of data, Emacs treats the clipboard as empty. The supported data type is STRING.
from markdown-mode.
You might also want to support the XDS protocol so that you can e.g., directly drag an image shown in firefox and drop it onto Emacs frame without needing to save it first somewhere, etc. Po Lu's initial message in the linked thread should be of help (and the later patches of course).
I neglected to do this in the org-mode patch but you definitely want to call decode-coding-string on the string returned by url-unhex-string in the copied files yank-media handler.
If I use yank instead of yank-media with an image in clipboard contents I still get the "Selection owner couldn't convert" – is this something that should work, or is plain yank always expected to only yank text and never images?
See the subthread https://yhetil.org/emacs-devel/[email protected]/ and the conclusion therein.
from markdown-mode.
Related Issues (20)
- Add support for LaTeX enviroments HOT 1
- Markdown mode leads to heavy input lag HOT 11
- [filelink](does not support spaces in filename) HOT 3
- Caret signs inside math are fontified as Markdown markup
- Should filename links be URI-decoded? HOT 1
- Update MacPorts links in README
- tab in lists items results in invalid list indent itemization
- [Feature Suggestion] markdown-beginning/end-of-line functions
- `move-beginning-of-line` move to wrong position on heading when markdown-hide-markup is enabled HOT 1
- preserve indent-tabs-mode in markdown-edit-code-block HOT 5
- Incorrect table alignment with code block HOT 1
- Markdown hiding for links broken when text surrounded by square brackets
- resurrect emacs-26 support? HOT 2
- Bug: Angle-bracketed URLs in inline code are fontified as links
- "_" character in a variable name turns on underline HOT 1
- Wrong gfm-view-mode syntax highlight if only using *-ts-mode (tree-sitter modes) HOT 1
- v2.6 ERT test failures on wiki-link-rules and wiki-link-search-under-project with Emacs 29.1 HOT 4
- R language isn't included in markdown-gfm-recognized-languages HOT 3
- Wrong table width calculation for Unicode Combining Diacritical Marks
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 markdown-mode.