memos icon indicating copy to clipboard operation
memos copied to clipboard

feat: paste to insert image or files into text content

Open lyonbot opened this issue 7 months ago • 6 comments

  • When press Ctrl/Cmd + V, Auto create [[resources/xxx]] in Markdown
  • Auto select the placeholder & inserted marker.
  • Confirm before deleting a referenced resource. (only in current memo)
  • Fix issues of rendering ![[resources/xxx]]
  • Add support for rendering [[resources/xxx]]
  • Use <a> links to render resource names, link copyable.
  • In memo's resource list, do not display resource thumbnail, if it's already embedded.

https://github.com/user-attachments/assets/9ece455f-4d54-44b7-99df-c94ed09a903e

this will close #4694 and #4300

lyonbot avatar May 18 '25 07:05 lyonbot

I just saw this PR, Thank you @lyonbot for the implementation. Is it also possible to support HEIC format? I am having issues on my Mac where HEIC files are not properly loading. I've attached a screenshot for how it looks like if I attach images directly from iPhone. If this is more suitable for another PR I'll post it in the Issues section Please let me know.

Screenshot 2025-05-24 at 7 12 16 PM

timedilatesme avatar May 24 '25 23:05 timedilatesme

I just saw this PR, Thank you @lyonbot for the implementation. Is it also possible to support HEIC format? I am having issues on my Mac where HEIC files are not properly loading. I've attached a screenshot for how it looks like if I attach images directly from iPhone. If this is more suitable for another PR I'll post it in the Issues section Please let me know.

@timedilatesme I think it's better to support HEIC in a new issue / PR.

lyonbot avatar May 26 '25 15:05 lyonbot

I just saw this PR, Thank you @lyonbot for the implementation. Is it also possible to support HEIC format? I am having issues on my Mac where HEIC files are not properly loading. I've attached a screenshot for how it looks like if I attach images directly from iPhone. If this is more suitable for another PR I'll post it in the Issues section Please let me know.

Screenshot 2025-05-24 at 7 12 16 PM

We could Merge this first, maybe someone other will do HEIC Support in another PR?

vxtls avatar May 31 '25 02:05 vxtls

Att h real files not images. On Fri, May 30, 2025 at 10:33 PM VXTLS @.***> wrote:

vxtls left a comment (usememos/memos#4698) https://github.com/usememos/memos/pull/4698#issuecomment-2924041527

I just saw this PR, Thank you @lyonbot https://github.com/lyonbot for the implementation. Is it also possible to support HEIC format? I am having issues on my Mac where HEIC files are not properly loading. I've attached a screenshot for how it looks like if I attach images directly from iPhone. If this is more suitable for another PR I'll post it in the Issues section Please let me know.

[image: Screenshot 2025-05-24 at 7 12 16 PM] https://private-user-images.githubusercontent.com/64778535/447293014-1d1dcc78-40fd-49bc-91b7-b3acff9d2d9c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDg2NTg5NzUsIm5iZiI6MTc0ODY1ODY3NSwicGF0aCI6Ii82NDc3ODUzNS80NDcyOTMwMTQtMWQxZGNjNzgtNDBmZC00OWJjLTkxYjctYjNhY2ZmOWQyZDljLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTMxVDAyMzExNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5YTQyODJkY2QyYzUxNzk0YzM2MDgyNGEzMTk2MzQzZDdlNjhmZGI4OGJkNzUwNjAzNzFhYzNiNzJhOWI3MTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MjV6zNnGEQ6y6198qD_nAO8P87uoj3b59ItI-W2G-rw

We could Merge this first, maybe someone other will do HEIC Support in another PR?

— Reply to this email directly, view it on GitHub https://github.com/usememos/memos/pull/4698#issuecomment-2924041527, or unsubscribe https://github.com/notifications/unsubscribe-auth/BR2Z6WNDVWXSB427RLDLPTD3BEII3AVCNFSM6AAAAAB5LPRNTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMRUGA2DCNJSG4 . You are receiving this because you commented.Message ID: @.***>

wizzelman801 avatar May 31 '25 02:05 wizzelman801

Don’t spread the word though

On Fri, May 30, 2025 at 10:49 PM Sherwin Manalon @.***> wrote:

Att h real files not images.

On Fri, May 30, 2025 at 10:33 PM VXTLS @.***> wrote:

vxtls left a comment (usememos/memos#4698) https://github.com/usememos/memos/pull/4698#issuecomment-2924041527

I just saw this PR, Thank you @lyonbot https://github.com/lyonbot for the implementation. Is it also possible to support HEIC format? I am having issues on my Mac where HEIC files are not properly loading. I've attached a screenshot for how it looks like if I attach images directly from iPhone. If this is more suitable for another PR I'll post it in the Issues section Please let me know.

[image: Screenshot 2025-05-24 at 7 12 16 PM] https://private-user-images.githubusercontent.com/64778535/447293014-1d1dcc78-40fd-49bc-91b7-b3acff9d2d9c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDg2NTg5NzUsIm5iZiI6MTc0ODY1ODY3NSwicGF0aCI6Ii82NDc3ODUzNS80NDcyOTMwMTQtMWQxZGNjNzgtNDBmZC00OWJjLTkxYjctYjNhY2ZmOWQyZDljLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTMxVDAyMzExNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5YTQyODJkY2QyYzUxNzk0YzM2MDgyNGEzMTk2MzQzZDdlNjhmZGI4OGJkNzUwNjAzNzFhYzNiNzJhOWI3MTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MjV6zNnGEQ6y6198qD_nAO8P87uoj3b59ItI-W2G-rw

We could Merge this first, maybe someone other will do HEIC Support in another PR?

— Reply to this email directly, view it on GitHub https://github.com/usememos/memos/pull/4698#issuecomment-2924041527, or unsubscribe https://github.com/notifications/unsubscribe-auth/BR2Z6WNDVWXSB427RLDLPTD3BEII3AVCNFSM6AAAAAB5LPRNTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMRUGA2DCNJSG4 . You are receiving this because you commented.Message ID: @.***>

wizzelman801 avatar May 31 '25 02:05 wizzelman801

It works best with uploading them to the system not pictures. On Fri, May 30, 2025 at 10:50 PM Sherwin Manalon @.***> wrote:

Don’t spread the word though

On Fri, May 30, 2025 at 10:49 PM Sherwin Manalon @.***> wrote:

Att h real files not images.

On Fri, May 30, 2025 at 10:33 PM VXTLS @.***> wrote:

vxtls left a comment (usememos/memos#4698) https://github.com/usememos/memos/pull/4698#issuecomment-2924041527

I just saw this PR, Thank you @lyonbot https://github.com/lyonbot for the implementation. Is it also possible to support HEIC format? I am having issues on my Mac where HEIC files are not properly loading. I've attached a screenshot for how it looks like if I attach images directly from iPhone. If this is more suitable for another PR I'll post it in the Issues section Please let me know.

[image: Screenshot 2025-05-24 at 7 12 16 PM] https://private-user-images.githubusercontent.com/64778535/447293014-1d1dcc78-40fd-49bc-91b7-b3acff9d2d9c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDg2NTg5NzUsIm5iZiI6MTc0ODY1ODY3NSwicGF0aCI6Ii82NDc3ODUzNS80NDcyOTMwMTQtMWQxZGNjNzgtNDBmZC00OWJjLTkxYjctYjNhY2ZmOWQyZDljLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTMxVDAyMzExNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5YTQyODJkY2QyYzUxNzk0YzM2MDgyNGEzMTk2MzQzZDdlNjhmZGI4OGJkNzUwNjAzNzFhYzNiNzJhOWI3MTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MjV6zNnGEQ6y6198qD_nAO8P87uoj3b59ItI-W2G-rw

We could Merge this first, maybe someone other will do HEIC Support in another PR?

— Reply to this email directly, view it on GitHub https://github.com/usememos/memos/pull/4698#issuecomment-2924041527, or unsubscribe https://github.com/notifications/unsubscribe-auth/BR2Z6WNDVWXSB427RLDLPTD3BEII3AVCNFSM6AAAAAB5LPRNTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMRUGA2DCNJSG4 . You are receiving this because you commented.Message ID: @.***>

wizzelman801 avatar May 31 '25 05:05 wizzelman801