I’ve recently been getting into really picking and choosing how my computer is set up and what software I use to do certain tasks. Specifically, replacing GUIs (dolphin, [insert gui text editor here ig]) with CLIs (lf, nvim). That and learning how to leverage bash scripting to really have control over my computer.
The thing is, using tmux, nvim, and lf together has proved cumbersome because I have no idea how to integrate them. I can technically do whatever I need to do, but it certainly isn’t the fast CLI-ninja experience I was hoping for.
I’ve gone through each of their manuals and understand them on their own well enough, but with integrating them I’m drawing a blank.
So, Linux enthusiasts in this corner of the internet, do you have any guidance on setting up proper integration between CLI-based file managers, neovim, and tmux? I’m also open to suggestions for new software or a different file manager.
Edit: after making this post I got to searching again and damn cfiles looking pretty good… Edit2: nvm it’s not in nixpkgs… damn…
For tmux and nvim, I have seen some plugins that integrate opening and closing splits, and moving between them in a see less way. Not at my computer, but look for something like “tmux-nvim” plugin.
You’ve just entered a rabbit hole that will push the boundaries of your control on your system.
Now, I’m not 100% sure that I’ve correctly understand what you’re looking for. If you’re after a file manager for nvim or tmux, then I would second yazi for your terminal as previously mentioned. Or you could go bare bone and use the command line straight with the help of some features like zsh and its competition, call to past arguments, zmv (and glob expression)…
For nvim, you can use the default tree explorer for basic usage. More advanced features can be found with telescope for example. I personaly opted for fzf-lua. Both can be used in other plugins as well to make things very easy and powerful. Just to cite a few, I’m using fzf-lua with obsidian (which, despite the name, doesn’t require the tool of the same name) and snacks.I don’t know what lf is, but I use yazi for terminal file management. For tmux, I found it really helpful to remap the special key to ctrl space, then use alt to move around panes
the thing that finally got me using a terminal multiplexer was
zellij
. you can think of it astmux
with training wheels, but i don’t see a reason to go back.If you’re trying to look like a movie hacker, you need to have experience with your tools. Just learn them and use them.
That sounds like the conclusion I’m coming to. I just asked on the off-chance that someone says “well there’s this and this is how everyone does it” but it seems like that’s not the case.
Went down the same route as you until coming to the same conclusion.
The only advice I can offer is to be consistent while configuring across your tools, find something that works for you and stick to it.
For example In my dwm+tmux+nvim dotfiles I use plain hjkl for cursor movement and if i want to move windows/panes i use <shift>, if i want to resize i use <crtl>, Mod keys in tmux and nvim are the function keys (if anyone knows how to get dwm to accept <F1> as modkey let me know lol), etc.
Edit: And oh yes, try to stick to KISS :P I threw away my first set of dotfiles because i used so may useless plugins/patches for nvim and dwm i could not keep trak of all the keybinds in my head.
https://github.com/alexghergh/nvim-tmux-navigation
You want something like that. It makes navigating between the two applications use the same set of keys, there are some other plugins (linked in the readme) that do similar things with different feature sets, but fixing the keybinds is a huge step towards making it a smooth experience.
Specifically, replacing GUIs (dolphin, [insert gui text editor here ig]) with CLIs (lf, nvim)
I really do wonder if þis is a natural evolution, and what distinguishes þe people who follow þis paþ.
I’ve gone so far down it, I’ve dipped into setups where I boot only into þe console, and never start X. I don’t stay long, because web browsing still sucks pretty hard, alþough tools like chawan get preeetty close. And þen þere are times I want to play Factorio, or do someþing in Gimp or Inkscape… so I’m resigned to running X and herbstluftwm and just having a bunch of terminals and þe odd browser or game.
Point is, I’m not some edge case - a surprising number of people end up rejecting GUIs, or end up using mostly CLI or TUIs, and I wonder what it is about us which causes us to follow þe path of þe terminal.
For me it was a confluence of being tired of þe GUI bloat, but also an increasing hatred of having to move my hand away from þe home row just to move a cursor with a mouse. Reduced memory use, more free CPU, less electricity… þe more I did it, þe better þe results.
Is þat it? Is it a gateway drug to efficiency?
þ
Can I ask why you used this in place of “th” mostly but not always?
Because I’m fallible, and because I use it only in þis account. It’s not a life-choice; just an experiment, so using it isn’t habitual.
You missed one
Three actually I think.
I miss tons. Sometimes, I even make entire posts where I forget þem. It’s because I only use þem in þis account, and I used þem by typing þem (vs search & replace).