Closed dgk4201 closed 2 years ago
Thank you for your suggestion, I will try to implement it.
Thanks. I think it will be great feature.
Regards,
Dan Kalagher www.ixploreYellowstone.com
978-337-4201
On Wed, Sep 5, 2018 at 9:11 PM WenHong.Tan notifications@github.com wrote:
Thank you for your suggestion, I will try to implement it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/telesoho/vscode-markdown-paste-image/issues/17#issuecomment-418930941, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJEkxwds2Y6HaODQnJmxysjvATK3fd3ks5uYHZOgaJpZM4WXq4C .
I see you've implemented the feature, but it doesn't work for me. I'm on a pixelbook. Would that make a difference? Thanks.
BTW, I've installed xclip.
@dgk4201 Could you select "Help\Toggle Developer Tools" to show javascript console panel, then use Ctrl+Alt+V to paste some rich text into a markdown, and send the console log to me?
Nothing happens. I'm on a pixelbook. Here's the console:
[Extension Host] debugger listening on port 60649 extensionHost.ts:235 Extension Host extensionHost.ts:236 Debugger listening on ws:// 127.0.0.1:60649/ef5c97bc-2d6f-42d1-aa21-fc96a0285adb For help see https://nodejs.org/en/docs/inspector
log.ts:157 INFO no standard startup: not running latest version console.ts:134 [Extension Host] "vscode-markdown-paste" is now active! 3console.ts:134 [Extension Host] Clipboard Type: -1
Maybe it's xclip? Where should that be run? When?
Thanks for your help on this. I'd love to get this working.
Regards,
Dan Kalagher https://www.iXploreNatureApps.com
On Thu, Dec 20, 2018 at 1:53 AM WenHong.Tan notifications@github.com wrote:
@dgk4201 https://github.com/dgk4201 Could you select "Help\Toggle Developer Tools" to show javascript console panel, then use Ctrl+Alt+V to paste some rich text into a markdown, and send the console log to me?
[image: image] https://user-images.githubusercontent.com/10979091/50268518-72c5f380-046e-11e9-8125-2c970b322e36.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/telesoho/vscode-markdown-paste-image/issues/17#issuecomment-448893593, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJEk6il3hhUAe9eeFg7iSb-hIKhXR6-ks5u6zPegaJpZM4WXq4C .
@dgk4201
I think xclip work fine on your pixelbook. Maybe you copied content be not supported in this version.
This version of the extension does support "image/png","text/html" and "text/plain" only.
I want to know what content type of you copied. Could you please send me the output of teminal after
copying some rich content and runing the following command on your pixelbox terminal.
source ~/.vscode/extensions/telesoho.vscode-markdown-paste-image-0.11.0/res/linux_clipboard_content_type.sh
Here's the terminal output:
dankalagher@penguin:~$ source ~/.vscode/extensions/telesoho.vscode-markdown-paste-image-0.11.0/res/linux_clipboard_content_type.sh TIMESTAMP TARGETS UTF8_STRING TEXT dankalagher@penguin:~
Here's a screen shot of what I copied from PowerPoint: [image: image.png] When I do an ctrl-alt-v, I get nothing. A normal ctrl-v pastes a plain text version. Regards,
Dan Kalagher https://www.iXploreNatureApps.com
On Thu, Dec 20, 2018 at 8:50 PM WenHong.Tan notifications@github.com wrote:
@dgk4201 https://github.com/dgk4201 I think xclip work fine on your pixelbook. Maybe you copied content be not supported in this version. This version of the extension does support "image/png","text/html" and "text/plain" only. I want to know what content type of you copied. Could you please send me the output of teminal after copying some rich content and runing the following command on your pixelbox terminal. source ~/.vscode/extensions/telesoho.vscode-markdown-paste-image-0.11.0/res/linux_clipboard_content_type.sh
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/telesoho/vscode-markdown-paste-image/issues/17#issuecomment-449210674, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJEk7sAIlLIEYvKdHzZKPQa0vgaiSxZks5u7D5PgaJpZM4WXq4C .
@dgk4201 I'm so surprised while copy text from application on different linux will get different target type. I use ubuntu, I always get 'text/plain' content type while copy any text, so I use 'text/plain' to get clipboard text. It's the reason the extension doesn't work on your pixelbook. I have to fix this issue first. Thank you for your help.
@dgk4201 I want to know the clipboard content type on your pixelbook, Could you help me to sent clipboard content target types of browser and powerpoint on your pixelbook to me? You can use the following command to get clipboard content target types:
xclip -selection clipboard -o -t TARGETS
For example: I copy some text from web browser Chrome, will get the following output by the command.
TIMESTAMP TARGETS SAVE_TARGETS MULTIPLE STRING UTF8_STRING TEXT text/html text/plain
When I copy some text from LibreOffice Impress, will get the following output by the command.
text/plain;charset=utf-8 text/plain;charset=UTF-8 UTF-8 UTF8_STRING COMPOUND_TEXT STRING application/x-openoffice-editengine;windows_formatname="EditEngineFormat" text/richtext MULTIPLE
I'll do this on the weekend. Don't have time today. However, I think I know what the problem is -- the pixelbook uses a VM for Linux. I don't think the ChromeOS clipboard is available to Linux.
Regards,
Dan Kalagher https://www.iXploreNatureApps.com
On Fri, Dec 21, 2018 at 12:22 AM WenHong.Tan notifications@github.com wrote:
@dgk4201 https://github.com/dgk4201 I want to know the clipboard content type on your pixelbook, Could you help me to sent clipboard content target types of browser and powerpoint on your pixelbook to me? You can use the following command to get clipboard content target types:
xclip -selection clipboard -o -t TARGETS
For example: I copy some text from web browser Chrome, will get the following output by the command.
TIMESTAMP TARGETS SAVE_TARGETS MULTIPLE STRING UTF8_STRING TEXT text/html text/plain
When I copy some text from LibreOffice Impress, will get the following output by the command.
text/plain;charset=utf-8 text/plain;charset=UTF-8 UTF-8 UTF8_STRING COMPOUND_TEXT STRING application/x-openoffice-editengine;windows_formatname="EditEngineFormat" text/richtext MULTIPLE
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/telesoho/vscode-markdown-paste-image/issues/17#issuecomment-449257234, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJEk-4DeOrhjLNQXkjNdYAzBY8H36NSks5u7HAFgaJpZM4WXq4C .
BTW, I just tried it on a Mac. Doesn't work. I get plan text. I must be missing something on setup. What exactly do I need to do to set it up? How do I use pbpaste?
Regards,
Dan Kalagher https://www.iXploreNatureApps.com
On Fri, Dec 21, 2018 at 8:51 AM Dan Kalagher dan.kalagher@gmail.com wrote:
I'll do this on the weekend. Don't have time today. However, I think I know what the problem is -- the pixelbook uses a VM for Linux. I don't think the ChromeOS clipboard is available to Linux.
Regards,
Dan Kalagher https://www.iXploreNatureApps.com
On Fri, Dec 21, 2018 at 12:22 AM WenHong.Tan notifications@github.com wrote:
@dgk4201 https://github.com/dgk4201 I want to know the clipboard content type on your pixelbook, Could you help me to sent clipboard content target types of browser and powerpoint on your pixelbook to me? You can use the following command to get clipboard content target types:
xclip -selection clipboard -o -t TARGETS
For example: I copy some text from web browser Chrome, will get the following output by the command.
TIMESTAMP TARGETS SAVE_TARGETS MULTIPLE STRING UTF8_STRING TEXT text/html text/plain
When I copy some text from LibreOffice Impress, will get the following output by the command.
text/plain;charset=utf-8 text/plain;charset=UTF-8 UTF-8 UTF8_STRING COMPOUND_TEXT STRING application/x-openoffice-editengine;windows_formatname="EditEngineFormat" text/richtext MULTIPLE
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/telesoho/vscode-markdown-paste-image/issues/17#issuecomment-449257234, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJEk-4DeOrhjLNQXkjNdYAzBY8H36NSks5u7HAFgaJpZM4WXq4C .
@dgk4201 Paste rich text feature not supported by this version, Maybe I need to buy an Mac first. :sweat_smile:
Please add the feature for Windows (desc. says it work for Linux)
Mac would be great @telesoho
@telesoho This appears to be implemented and can be closed
I'd like to be able to paste rich text content and have it converted to md. Ulysses does this with a 'paste from' command.
My workflow with Ulysses: I copy text from powerpoint containing bold, italic, emphasis, and lists and paste it into Ulysses using the 'paste from' feature. Ulysses converts the rich text to MD. I can then copy the MD formatted text to the clipboard as HTML to be pasted into an SQL document.