Main icon indicating copy to clipboard operation
Main copied to clipboard

[Request]: clifm

Open leo-arch opened this issue 1 year ago • 10 comments

Prerequisites

  • [X] I have searched all issues/PRs to ensure it has not already been reported or fixed.

Criteria

  • [X] Non-GUI tool
  • [X] Reasonably well-known and widely used (e.g. if it's a GitHub project, it should have at least 500 stars and/or 150 forks)
  • [X] English interface (or at least English documentation)
  • [X] Latest stable version
  • [X] Full version (i.e. not a trial version)
  • [X] Fairly standard install (e.g. uses a version-specific download URL, no elaborate pre/post install scripts)

Name

clifm

Description

The shell-like, command line file manager

Homepage

https://github.com/leo-arch/clifm

Download Link(s)

https://github.com/leo-arch/clifm/releases/tag/v1.11

Some Indication of Popularity/Repute

Clifm has almost 1K starts on Github, and is already packaged for several Linux/Unix systems, like Alpine, Fedora, NixOS, Termux, Gentoo, FreeBSD, DragonFly, and MacOS, including Cygwin. It has been reviewed by Brodie Robertson and is ranked among the 2023 top 5 console file managers for Linux by linuxlinks.com.

leo-arch avatar Apr 03 '23 14:04 leo-arch

Where are the downloads for Windows?

rashil2000 avatar Apr 03 '23 16:04 rashil2000

Hi @rashil2000. Thanks for the quick reply.

So, you mean the Windows binary. Sadly, we're not providing any yet. My bad, didn't quite understand the last Criteria point (just thought a Makefile was an enough standard install method).

However, I'll start working on this and let you know. Thanks again.

EDIT: btw, what do you need to be included exactly? Just the naked binary? What about libraries?

leo-arch avatar Apr 03 '23 19:04 leo-arch

Are libraries required during runtime?

The best way would be to have a single statically linked binary, along with Readme, License etc. files in an archive.

rashil2000 avatar Apr 03 '23 21:04 rashil2000

Yes, there are libs required at runtime (by default we dynamically link libs), at the very least readline.

Is there a way to check required files locally? Maybe a guideline to build packages for Scoop? I normally use Cygwin to test clifm on Windows systems.

EDIT: I guess I can write my own json recipe. That wouldn't be much of a problem. But, how do I test it?

leo-arch avatar Apr 03 '23 22:04 leo-arch

On a Windows machine you can just run:

scoop install <local-path-to-json>

to install the package, which you can then test locally.

rashil2000 avatar Apr 04 '23 19:04 rashil2000

Thanks @rashil2000! I'll check this out and let you know as soon as I have a working manifest.

leo-arch avatar Apr 04 '23 20:04 leo-arch

@leo-arch the source code is very unix/linux focused. I was able to compile clifm using cygwin64, but there are some things that do not work properly. See the following .zip for executable and a slew of required cygwin .dll files.

clifm.zip

I was not able to compile clifm using msys2, but I am not sure if the problem is with msys, the source code, or my setup.

If you want to support Windows, you might see if there is some cross-platform library to handle the features you need.

amreus avatar Jan 21 '24 14:01 amreus

Hi @amreus. Please take a look at both the install instructions and this issue.

I've been testing clifm on Cygwin and MinGW since 2 years ago aprox (including some users feedback), and it works reasonably well (it's true though that the source code is very unix/linux focused).

Could you please specify what is not working properly?

leo-arch avatar Jan 21 '24 17:01 leo-arch

@leo-arch Ok followed those instructions - I didn't notice the Makefiles at first.

Outside of msys2, the executable still requires a bunch of .sll files. I don't think there is a way around it.

I want to be able to run apps in cmd.exe or powershell. clifm doesn't find its support files (help file, shell scripts) when executed in this environment (not in msys2.) Maybe just a matter of making clifm look in a relative location for its files since Windows doesn't used /usr/local/*.

Anyway, thanks for the app - pretty cool.

amreus avatar Jan 21 '24 18:01 amreus

Outside of msys2, the executable still requires a bunch of .sll files. I don't think there is a way around it.

Clifm won't run natively on Windows (and it probably never will), but only on Cygwin-like Unix/Linux environments.

Maybe just a matter of making clifm look in a relative location

Clifm looks for executables in those paths specified in the PATH environment variable. You may try adding whatever path you need there.

Anyway, thanks for the app - pretty cool.

Thanks! You're welcome.

leo-arch avatar Jan 21 '24 19:01 leo-arch