rainstormstudio / nerd-icons-dired

GNU General Public License v3.0
55 stars 10 forks source link

nerd-icons-dired does not support `set-rectangular-region-anchor` + `kill-region` under `wdired` enabled Dired buffer #5

Closed stardiviner closed 11 months ago

stardiviner commented 1 year ago

When I try to enable wdired on nerd-icons-dired minor mode enabled Dired buffer. I edit dired buffer will got error. file read-only. I hope this package can support "set-rectangular-region-anchor" in wdired-change-to-wdired-mode.

stardiviner commented 1 year ago

After I dive into source code:

So this is the reason.

rainstormstudio commented 1 year ago

We changed to text-property a few days ago as overlay is not the proper way of using font icons like nerd-icons.

I'll take a look at wgrep and try to fix this.

stardiviner commented 1 year ago

Thanks.

milanglacier commented 1 year ago

Wdired mode in my computer works fine. What does using wgrep on dired buffer mean? I am on the commit c05ba4815d375d779644ca7ac215632fda75089c.

stardiviner commented 1 year ago

@milanglacier You're right, thanks for point out the right thing, I'm confused [C-c C-p] keybinding for wgrep and wdired. Now I updated issue title.

I recorded a video to reproduce my error when using wdired in Dired buffer with nerd-icons-dired buffer. You can see, in the video, I toggled wdired, I can edit and save the modified Dired buffer. Then I got error when I use set-rectangular-region-anchor to mark two place rectangluar region, then press [C-w] try to delete region selected, raised error buffer read-only.

recorded video

rainstormstudio commented 1 year ago

Thanks for the detailed video! I think it's because I set the icons to be readonly in the buffer. I'll look into this.

stardiviner commented 1 year ago

@rainstormstudio Any idea update about this problem?

rainstormstudio commented 1 year ago

I'll be moving back to overlays but before I do so I need to fix some bugs related to overlays.

stardiviner commented 1 year ago

The text-property can't be inserted without read-only property? Maybe Emacs-dev mailing list has some idea?

rainstormstudio commented 1 year ago

no it's dired who has read-only property already so I cannot insert the icons directly

stardiviner commented 1 year ago

I see, thanks for explaination.

stardiviner commented 11 months ago

The issue is fixed, close now. Thanks @rainstormstudio