Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

thanks!

re: extensibility -- mc does have scripting [1] (although not sure if you meant something else)

re: image viewer -- hmm how would that work considering mc is running in terminal? I guess it could interact with some sort of modal window for file previews or something like that.

[1] https://github.com/MidnightCommander/mc/blob/master/misc/mc....



> re: extensibility -- mc does have scripting [1] (although not sure if you meant something else)

Scripting in the sense that the application exposes an API that scripts can interact with to query data or perform actions, usually to an equivalent capacity as to what the user could do themselves.

In the case of Far Manager, the Lua scripting API exposes the same API as for plugins, which allows complex integrations such as implementing custom UIs and VFSs.

> re: image viewer -- hmm how would that work considering mc is running in terminal? I guess it could interact with some sort of modal window for file previews or something like that.

Well, there's a whole bunch of methods. Many terminals support at least one protocol for drawing bitmaps, such as Sixel; ranger uses the simple method of overlaying an X11 window on top of the terminal emulator's.


There is a fork of mc that adds Lua scripting support [1], but it hasn’t been updated since 2016. There were also talks about merging it with mc [3], alas never happened.

[1] https://www.geek.co.il/~mooffie/mc-lua/docs/html/

[2] https://github.com/mooffie/mc

[3] https://midnight-commander.org/ticket/3745




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: