Unlike most terminal file managers out there (based on the TUI), clifm is entirely based on the command line (just like your everyday shell, but better): bookmarks, selection, tags, workspaces, trash, bulk rename, TAB completion, autosuggestions, syntax highlighting, plugins, deep FZF integration, and more.
I would really like to know if you find a program doing exactly that. It would be really useful, better than the alternatives we currently have: inspecting licenses as reported by pacman (far from useful) or using a blacklist (as done by the Parabola guys) always has its drawbacks.
Artix is no doubt the way to go. However, it is indeed possible to run Arch without systemd. I've been running Arch with OpenRC for at least the last two years without any issue.
As to the systemd dependencies issue, I wrote a pacman wrapper that allows you to specify repositories on a per package basis using a simple rules file: ruled packages, in the form REPO/PKG, are always installed/upgraded from REPO. Not perfect, but works.
If you feel comfortable with the CLI, then a command line file manager seems like a natural choice. In this case, you can take a look at CliFM: half-way between your shell and a terminal file manager. You can find it in the AUR too.
Sorting methods: traditionally, ls(1) and stat(1)are used to retrieve files information.
Useful info: TUI file managers like yours usually use the lower space of the screen to print file information, mostly permissions plus some info like creation date and the like.
The simplest way to keep track of selected files across multiple directories, even if the program is closed, is via a buffer, say, environment variables or, preferably, a regular text file.
Didn't know about fmawk script. I think you should find a way to bind both (fm.awk and fmawk) together, maybe via a command line option like --preview or something like this, that tells fm.awk to enable the files previewing feature. It seems a more convenient approach.
There are at least three cursor shapes: 1) Block (just a square), 2) Underline (_), and the I-beam (|).
Hey, nice work! Never seen a file manager written in AWK (didn't see much things written in AWK actually). Just a few notes that might be useful:
Different sorting methods would be nice: first of all, sorting alphabetically disregarding case and the initial dot of hidden files. Also, you could implement sorting by size, creation date and so on.
I'm not sure how the "current page" and "total page" indicators could be useful.
Being able to run command line stuff is pretty useful.
I like the numbered list. It reminds me of CliFM.
The selection function doesn't seem to be able to recall selections from different directories (only those made in CWD are actually remembered).
I like the search function, though it doesn't seem to be able to search in directories outside CWD. Also, once you accepted a search, the only way to redisplay the entire list of files is going back to the parent directory and then entering the subdirectory again.
Not sure how you implemented the preview function, but it is mostly broken. As soon as I try to preview non-text files (say, a PDF) the main panel gets completely garbled and unusable.
Hope this helps. Keep up the good work!
Edit: Forgot to add
Whenever I quits fm.awk the cursor shape of the terminal is changed to I-beam (and it wasn't).
Hi u/MattioC. Yes, it is absolutely doable. I myself did the switch one year ago or so and no complains (on the contrary). Running OpenRC and still on Arch.
The main drawback is, as u/StopOne7122 mentioned, that Arch does not officially support anything other than systemd. This means that you need to rely on other sources for most OpenRC packages. Of course, the AUR is there to help. However, my experience is that the AUR is not enough at all: some packages are just outdated, and others do not even exist. As a consequence, you need to add Artix repositories (at least for OpenRC specific packages, mostly service files).
The problem with using Artix repos is that most systemd-free packages are named exactly as the systemd-version of Arch packages, and since you want to keep Arch repos on top (otherwise you will soon or later migrate to Artix), you need to find a way to install OpenRC and systemd-free packages from Artix repos, and everything else from Arch's. As a workaround I wrote a pacman wrapper (pacfree) that allows you to install packages based on rules: install this package from here, and that from there. As a side note, it can also scan your system for non-free-software based on Parabola's blacklists. You can take a look at the wrapper here.
Finally, if you use the openrc package from Artix (for obvious reasons the Artix package is better maintained), you'll see a "Welcome to Artix" (or something along these lines) while booting. To have a "welcome to Archlinux" message, you need to recompile openrc on an Arch system.
Hope this helps and good luck with this adventure (you'll learn a lot in the process).
PD: I you need some help, I wrote a few howtos about the whole process. Let me know if you need them.
I've been using the hardened kernel (for my every day run) for the last few years and everything works as expected, no issue at all. However, the vanilla kernel works just fine for most use cases. I just use the hardened kernel because I'm a bit of a security paranoid, that's all. You know, the kind of person who uses a hardened kernel, DNS encryption, VPN and or Tor, a firewall, 2FA, etc., for his home machine.
The only downside I can recall right now is that the hardened kernel does not support SMB 1.0 (old windows machines and Android SMB server, for example).
Have you tried aterm? It's really lightweight (5 Mb approx). It doesn't support true type fonts nor 256 colors (not a big deal), but it does support pseudo-transparency.
I took your advice really seriously: a version of the source code split into 30 C files organized by features/functions is now in the testing branch. Thanks!
Thank you very much u/Moo-Crumpus, I really appreciate your words. After all, I share this for the Linux community, my two cents to a community that gave me so much. Otherwise, I'd kept my program for private use without ever releasing a single word about it; but that would defeat the very idea of free software and Linux as such.
This is exactly the kind of feedback I was expecting. I'll take note of each remark to work on them as soon as I can. A few answers I can give you right now:
External commands should be enabled by default. TRUE.
While refresh only reprints the list of files in the current directory, reload rereads the configuration files and reload all values (it is mostly used internally to switch profiles).
I'm no sure about the beep, but it shouldn't be hard to track (I mostly work with sound disabled, which is why I just missed this one).
If I understood you correctly, you're looking for an option to restart CliFM exactly in the path you left. In this case, check the restore-last-path option (either via command line or in the configuration file). On the other side, if you want your shell path to be updated to the last directory visited in CliFM, take a look at the cd_on_quit shell function (in /usr/share/clifm/functions)
Absolutely agreed about splitting big (and crucial) functions like exec_cmd and parse_input_str.
About 'h': it is defined by default to an action name linked to the fzfhist script; in other words, 'h' is the name for a plugin. The problem is that the script isn't there. To list available actions just enter actions. Ho do you installed CliFM? Did you just compiled it and run it? In that case, you need to copy the plugins to /usr/share/clifm/plugins, or directly to $HOME/.config/clifm/plugins. If you cannot find them, they are in the Github repo.
I guess you're right. At least it started as a truly KISS file manager, but then, as it often happens, it just grew up considerably and I nonetheless retained the description, as some kind of slogan. As to the "everything in one file" issue, I will really consider it for futures releases.
BTW, the "KISS" adjective is intended to be a humble tribute to my Linux distribution, because it was Arch's principle what first inspired me to write this program (and many more things I've learned so far).
Interesting. I've never tried the colemak layout. What I do can say is that I made some effort in allowing customizable keybindings in my program. But I'm not sure how it behaves on different keyboard layouts. It would be good to know.
Good question. Since I cannot implement dynamic previews in a completely command line environment, I implemented it as a plugin using FZF. It allows me to use ueberzug to display each gif frame separately in a little fraction of time (0.1 secs).
If you're interested, the code is in the BFG.sh script.
Hi u/Nice_Fishing_1525, and thanks! Please open a new issue for this in our Github repo.
As others said, you need to run
alacritty migrate, from within alacritty itself.Unlike most terminal file managers out there (based on the TUI), clifm is entirely based on the command line (just like your everyday shell, but better): bookmarks, selection, tags, workspaces, trash, bulk rename, TAB completion, autosuggestions, syntax highlighting, plugins, deep FZF integration, and more.
Source
Demo video
LS_COLORS support
Clifm file manager.
I would really like to know if you find a program doing exactly that. It would be really useful, better than the alternatives we currently have: inspecting licenses as reported by pacman (far from useful) or using a blacklist (as done by the Parabola guys) always has its drawbacks.
Have you tried isfree. It's on the AUR too: https://aur.archlinux.org/packages/isfree
If I remember correctly, the
multilibrepo in Artix is namedlib32.Artix is no doubt the way to go. However, it is indeed possible to run Arch without systemd. I've been running Arch with OpenRC for at least the last two years without any issue.
If interested, visit https://github.com/leo-arch/arch-openrc for my own personal howtos on how to perform the migration.
As to the systemd dependencies issue, I wrote a pacman wrapper that allows you to specify repositories on a per package basis using a simple rules file: ruled packages, in the form REPO/PKG, are always installed/upgraded from REPO. Not perfect, but works.
Needless to say, do this at your risk.
If you feel comfortable with the CLI, then a command line file manager seems like a natural choice. In this case, you can take a look at CliFM: half-way between your shell and a terminal file manager. You can find it in the AUR too.
ls(1)andstat(1)are used to retrieve files information.fmawkscript. I think you should find a way to bind both (fm.awkandfmawk) together, maybe via a command line option like--previewor something like this, that tellsfm.awkto enable the files previewing feature. It seems a more convenient approach._), and the I-beam (|).Hey, nice work! Never seen a file manager written in AWK (didn't see much things written in AWK actually). Just a few notes that might be useful:
Hope this helps. Keep up the good work!
Edit: Forgot to add
fm.awkthe cursor shape of the terminal is changed to I-beam (and it wasn't).Just amazing! With parallel downloads and Informant, pacman is now much better than before. Thanks!
Hi u/MattioC. Yes, it is absolutely doable. I myself did the switch one year ago or so and no complains (on the contrary). Running OpenRC and still on Arch.
The main drawback is, as u/StopOne7122 mentioned, that Arch does not officially support anything other than systemd. This means that you need to rely on other sources for most OpenRC packages. Of course, the AUR is there to help. However, my experience is that the AUR is not enough at all: some packages are just outdated, and others do not even exist. As a consequence, you need to add Artix repositories (at least for OpenRC specific packages, mostly service files).
The problem with using Artix repos is that most systemd-free packages are named exactly as the systemd-version of Arch packages, and since you want to keep Arch repos on top (otherwise you will soon or later migrate to Artix), you need to find a way to install OpenRC and systemd-free packages from Artix repos, and everything else from Arch's. As a workaround I wrote a pacman wrapper (pacfree) that allows you to install packages based on rules: install this package from here, and that from there. As a side note, it can also scan your system for non-free-software based on Parabola's blacklists. You can take a look at the wrapper here.
Finally, if you use the openrc package from Artix (for obvious reasons the Artix package is better maintained), you'll see a "Welcome to Artix" (or something along these lines) while booting. To have a "welcome to Archlinux" message, you need to recompile openrc on an Arch system.
Hope this helps and good luck with this adventure (you'll learn a lot in the process).
PD: I you need some help, I wrote a few howtos about the whole process. Let me know if you need them.
I've been using the hardened kernel (for my every day run) for the last few years and everything works as expected, no issue at all. However, the vanilla kernel works just fine for most use cases. I just use the hardened kernel because I'm a bit of a security paranoid, that's all. You know, the kind of person who uses a hardened kernel, DNS encryption, VPN and or Tor, a firewall, 2FA, etc., for his home machine.
The only downside I can recall right now is that the hardened kernel does not support SMB 1.0 (old windows machines and Android SMB server, for example).
Btw, I also use Arch for programming.
Have you tried aterm? It's really lightweight (5 Mb approx). It doesn't support true type fonts nor 256 colors (not a big deal), but it does support pseudo-transparency.
I took your advice really seriously: a version of the source code split into 30 C files organized by features/functions is now in the testing branch. Thanks!
Thank you very much u/Moo-Crumpus, I really appreciate your words. After all, I share this for the Linux community, my two cents to a community that gave me so much. Otherwise, I'd kept my program for private use without ever releasing a single word about it; but that would defeat the very idea of free software and Linux as such.
WOW! I would love to see that! Share it, so we all can learn from it.
You're welcome u/spurious_signal! I hope you will manage to familiarize with CliFM. Whatever issue you find, please let me know it.
Great man! I will.
Done! Both in the Gihub repo and in the AUR.
This is exactly the kind of feedback I was expecting. I'll take note of each remark to work on them as soon as I can. A few answers I can give you right now:
exec_cmdandparse_input_str.actions. Ho do you installed CliFM? Did you just compiled it and run it? In that case, you need to copy the plugins to/usr/share/clifm/plugins, or directly to$HOME/.config/clifm/plugins. If you cannot find them, they are in the Github repo.I guess you're right. At least it started as a truly KISS file manager, but then, as it often happens, it just grew up considerably and I nonetheless retained the description, as some kind of slogan. As to the "everything in one file" issue, I will really consider it for futures releases.
BTW, the "KISS" adjective is intended to be a humble tribute to my Linux distribution, because it was Arch's principle what first inspired me to write this program (and many more things I've learned so far).
Thanks for your observations.
Interesting. I've never tried the colemak layout. What I do can say is that I made some effort in allowing customizable keybindings in my program. But I'm not sure how it behaves on different keyboard layouts. It would be good to know.
Good question. Since I cannot implement dynamic previews in a completely command line environment, I implemented it as a plugin using FZF. It allows me to use ueberzug to display each gif frame separately in a little fraction of time (0.1 secs).
If you're interested, the code is in the BFG.sh script.
Don't worry man.