It would be great If shift-delete just permanently deleted

Message
Author
User avatar
Sparky
Posts: 1196
Joined: Sun Dec 23, 2018 7:07 pm

It would be great If shift-delete just permanently deleted

#1 Post by Sparky »

Instead of asking you If you are sure. Why would I have clicked on the shift button If I wasn't sure, it's just an extra unnecessary step IMO.
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

User avatar
Jerry3904
Administrator
Posts: 21944
Joined: Wed Jul 19, 2006 6:13 am

Re: It would be great If shift-delete just permanently deleted

#2 Post by Jerry3904 »

That's been complained about for a very long time on the Xfce Forum, and it would apparently require recompiling Thunar from source. If you want to try that yourself, this might be a good place to start:

https://askubuntu.com/questions/337225/ ... -in-thunar
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: It would be great If shift-delete just permanently deleted

#3 Post by skidoo »

FWIW, the section of code you would need to edit lies within thunar-application.c::thunar_application_unlink_files()
/thunar-application.c#L2147
Why would I have clicked on the shift button If I wasn't sure
because I'm a fat-fingered, sometimes overcaffeinated, sometimes zeepy, keyboard-pounding monkey

Rawr !

:lion:

User avatar
Sparky
Posts: 1196
Joined: Sun Dec 23, 2018 7:07 pm

Re: It would be great If shift-delete just permanently deleted

#4 Post by Sparky »

skidoo wrote: Thu Jan 31, 2019 5:12 pm FWIW, the section of code you would need to edit lies within thunar-application.c::thunar_application_unlink_files()
/thunar-application.c#L2147
I'm too worried about changing code myself. And what happened if it updates? Does it update to my non coded version?
I'm assuming these things are extremely time laborious for admins/maintainers, I just wish I could do something to help out.
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

User avatar
Sparky
Posts: 1196
Joined: Sun Dec 23, 2018 7:07 pm

Re: It would be great If shift-delete just permanently deleted

#5 Post by Sparky »

skidoo wrote: Thu Jan 31, 2019 5:12 pm FWIW, the section of code you would need to edit lies within thunar-application.c::thunar_application_unlink_files()
/thunar-application.c#L2147
Why would I have clicked on the shift button If I wasn't sure
because I'm a fat-fingered, sometimes overcaffeinated, sometimes zeepy, keyboard-pounding monkey

Rawr !

:lion:
Wait. Maybe I'm making this more difficult than it has to be. You are saying If I follow those guidelines I can do it?
I mean, I could just use copy and paste. I've got nothing to lose right? It's not gonna mess up my thunar?
I think I'll do it then.
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

User avatar
manyroads
Posts: 2623
Joined: Sat Jun 30, 2018 6:33 pm

Re: It would be great If shift-delete just permanently deleted

#6 Post by manyroads »

You can do all sorts of things to make Delete be 'forever'. :alien: I add a Thunar Custom Action for that... but you can map a keyboard short-cut or even melt your PC. :lipsrsealed:
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
Sparky
Posts: 1196
Joined: Sun Dec 23, 2018 7:07 pm

Re: It would be great If shift-delete just permanently deleted

#7 Post by Sparky »

manyroads wrote: Thu Jan 31, 2019 8:01 pm You can do all sorts of things to make Delete be 'forever'. :alien: I add a Thunar Custom Action for that... but you can map a keyboard short-cut or even melt your PC. :lipsrsealed:
Still learning. I am consuming the info relatively fast.
For example, you are 87% more probable than the average person to be using Arch/Manjaro.
All I did was scrape your user data ;)
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

User avatar
handy
Posts: 611
Joined: Mon Apr 23, 2018 2:00 pm

Re: It would be great If shift-delete just permanently deleted

#8 Post by handy »

@Sparky, if you change the code, just keep notes on exactly what you had to do, with line numbers & such. It should really be quite easy to make the changes any time you need to in the future after that.

Probably just as simple as cut, paste, save & compile. :)
1_MSI: MAG B560 TORP', i5, RAM 16GB, GTX 1070 Ti 12GB, M2 238GB + USB, MX-23 Fb to Openbox
2_Lenovo: Ideapad 520S, i5, RAM 8GB, GPU i620, HDD 1TB, MX-21 - Openbox
3_Clevo: P150SM-A, i7, RAM 16GB, nVidia 8600, 2x 1TB HDD & M.2 256 GB, MX-21 - Openbox

User avatar
manyroads
Posts: 2623
Joined: Sat Jun 30, 2018 6:33 pm

Re: It would be great If shift-delete just permanently deleted

#9 Post by manyroads »

Sparky wrote: Thu Jan 31, 2019 8:05 pm
Still learning. I am consuming the info relatively fast.
For example, you are 87% more probable than the average person to be using Arch/Manjaro.
All I did was scrape your user data ;)
Yes, I did use manjaro for years... as have others here. :bagoverhead:
Last edited by manyroads on Thu Jan 31, 2019 8:37 pm, edited 1 time in total.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
Sparky
Posts: 1196
Joined: Sun Dec 23, 2018 7:07 pm

Re: It would be great If shift-delete just permanently deleted

#10 Post by Sparky »

manyroads wrote: Thu Jan 31, 2019 8:15 pm
Sparky wrote: Thu Jan 31, 2019 8:05 pm
manyroads wrote: Thu Jan 31, 2019 8:01 pm Still learning. I am consuming the info relatively fast.
For example, you are 87% more probable than the average person to be using Arch/Manjaro.
All I did was scrape your user data ;)
Yes, I did use manjaro for years... as have others here. :bagoverhead:
Sorry, that isn't intended as a negative. You just bring more to the table!
Respect you man!
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

Post Reply

Return to “General”