Using trash on MacOS Homebrew
I use the command `trash` on homebrew mac and recently screwed myself in mc when I deleted files and realized it didn't use trash either. Is there an alias, keyboard remapping, or something else that would work on MacOS homebrew? Thanks ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: Using trash on MacOS Homebrew
On Thu, 25 Aug 2016, Joseph Reagle wrote: I just saw mc^2 yesterday, but didn't see it on homebrew, don't know if it's an acrimonious fork, and don't know Lua! But this gives me a reason to try to install it :-) It's a friendly experimental fork of mc featuring a Lua-based scripting engine and I sincerely hope that one day it will be fork no more. -- Sincerely yours, Yury V. Zaytsev ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: Using trash on MacOS Homebrew
On 8/25/16 10:41 AM, Mooffie wrote: > It'd be easier to add the command to the user menu (that's ). Great tip, I hadn't looked into that yet. > You can do this in mc^2. Here's a little snippet to make use > 'trash': > > https://gist.github.com/mooffie/4111a39e18934e2b4e7001c1c0cd3213 > > (BTW, I know of a homebrew user who installed mc^2 by slighthly > modifying Formula/midnight-commander.rb) I just saw mc^2 yesterday, but didn't see it on homebrew, don't know if it's an acrimonious fork, and don't know Lua! But this gives me a reason to try to install it :-) ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: Using trash on MacOS Homebrew
On 8/23/16, Joseph Reaglewrote: > > For the time being, and if I remember, I type `trash`, mark the files, and > then `ctrl+x t` to paste them. It'd be easier to add the command to the user menu (that's ). (BTW, passing gazillion files to the shell with `ctrl+x t` hangs MC. At least on my system.) > > I wish I could map F8 to a user supplied command. You can do this in mc^2. Here's a little snippet to make use 'trash': https://gist.github.com/mooffie/4111a39e18934e2b4e7001c1c0cd3213 (BTW, I know of a homebrew user who installed mc^2 by slighthly modifying Formula/midnight-commander.rb) ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: Using trash on MacOS Homebrew
On Tue, 23 Aug 2016, Joseph Reagle wrote: On 8/23/16 12:44 PM, Yury V. Zaytsev wrote: Sadly, I don't think there is anything you can do other than using libtrash or the like, but I'm not sure whether libtrash has been even ported to macOS. Not that I could see. I wish I could map F8 to a user supplied command. Have a look at the mc.default.keymap : you can't exactly map Delete to a custom command, but, at least, you can unmap it, so that you don't trigger it accidentally. Of course, you can patch delete_cmd() in mc sources, but that requires... err... patching. -- Sincerely yours, Yury V. Zaytsev ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: Using trash on MacOS Homebrew
On 8/23/16 12:44 PM, Yury V. Zaytsev wrote: > Sadly, I don't think there is anything you can do other than using > libtrash or the like, but I'm not sure whether libtrash has been even > ported to macOS. Not that I could see. I wish I could map F8 to a user supplied command. For the time being, and if I remember, I type `trash`, mark the files, and then `ctrl+x t` to paste them. ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Using trash on MacOS Homebrew
I use the command `trash` on homebrew mac and recently screwed myself in mc when I deleted files and realized it didn't use trash either. Is there an alias, keyboard remapping, or something else that would work on MacOS homebrew? Thanks ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc