adamyg / mcwin32

Midnight Commander for Windows
https://sourceforge.net/projects/mcwin32/
204 stars 13 forks source link

Where is mcedit binary file? #28

Closed caffeine-mgn closed 1 year ago

caffeine-mgn commented 2 years ago

Sometimes I need just quickly edit some file. And usually I can do it on Linux with mcedit

adamyg commented 2 years ago

mcedit is an alias for mc, aka a symlink under unix.; copy mc.exe as mcedit.exe to emulate.

adamyg commented 2 years ago

shall modify packaging to create a mcedit.exe image from mc.exe

AndiLeni commented 1 year ago

@adamyg I tried to simply use mc myfile.txt to open the editor, but instead it opens midnightcommander in the current folder. Is there an option to quickly open a file in mc's editor directly?

adamyg commented 1 year ago

shall repackage mc as mcedit in next release; waiting on 4.8.29

aka: C:/Program Files (x86)/Midnight Commander/mc.exe --> C:/Program Files (x86)/Midnight Commander/mcedit.exe

adamyg commented 1 year ago

build-228

adamyg commented 1 year ago

released

myfonj commented 8 months ago

I'm unable to see any mcedit executable neither in 228 nor 229 ZIP dists, was it really released?

However, from what I have tried, creating hardlink mcedit.exe -> mc.exe with

mklink /H mcedit.exe mc.exe

seems to do the trick, so could be manual workaround for the mean time. (As well as simply duplicating mc.exe and renaming the duplicate to mcedit.exe.)

Edit: IIUC, the duplication of mc.exe into mcedit.exe is what the installer currently does (?) So to reiterate, I was referring to content of mcwin32-build229-x64.zip and previous.

adamyg commented 8 months ago

Just copy mc.exe to mcedit; the same action is done when packaged .

On Thu, Feb 29, 2024 at 12:14 AM Michal Čaplygin @.***> wrote:

I'm unable to see any mcedit executable neither in 228 nor 229 ZIP dists, was it really released?

However, from what I have tried, creating hardlink mcedit.exe -> mc.exe with

mklink /H mcedit.exe mc.exe

seems to do the trick, so could be manual workaround for the mean time. (As well as simply duplicating mc.exe and renaming the duplicate to mcedit.exe.)

— Reply to this email directly, view it on GitHub https://github.com/adamyg/mcwin32/issues/28#issuecomment-1969330354, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKF46VQI6L4EIB7Q4HPQJ3LYV5JXFAVCNFSM5WCJP2OKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJWHEZTGMBTGU2A . You are receiving this because you modified the open/close state.Message ID: @.***>

myfonj commented 8 months ago

Sure, that's the second ("duplicating") option I have mentioned. But wouldn't be better if users of ZIP archives "installations" would not have to do that and had it prepared already? Is it possible to distribute it with duplicate or even better some kind of (smaller) proxy launcher that would behave like a symlink?