I use tmux primarily as it allows me to manage and restore sessions. Layzgit can be used from within nvim, i.e. if lazygit is installed and you use lazyvim it will automatically open lazygit within your nvim. Creating new window or panes on the fly when needed is of course a big plus as well and helps to focus on the task at hand, which can vary depending on the project (=session in my case)
I just started using Lazygit anr have already gotten tired of closing nvim to open Lazygit to do something in it only to close it and go back to nvim, rinse, cycle, repeat. This sounds like a great use for tmux
@@xalium Yeah, after I typed this comment I watched a vid that recommended setting up Lazygit inside of Neovim with vim-floaterm. I've got that set up with a keymap now and that was a huge game changer
Need help 😢, I run nvim and lazygit in 2 different windows inside tmux…. Lazygit picks up changes from nvim but when I revert my changes or switch branches.. nvim doesn’t detect any changes, I need to manually refresh the buffers to see the change… any help will be appreciated
I just open multiple terminal windows, either tiling them or on separate tags (workspaces). even when i’m working without Xorg, I just log into several ttys and switch with alt and arrows
@@viktorshutov if you use ssh multiplexing, you can use multiple terminals over one ssh connection. the only benefit tmux has is keeping sessions after logout/crash. Personally, I don’t use it for that, since it’s overkill for such usage. If I *really* needed that, I could use gnu screen (still overkill, but less), but I don’t find myself needing this functionality very often.
Oh comeon, using windows for that is crazy, we need to use panes for that, how I manage my projects is, each project gets a window, usually it has 3 panes, the bigger one is neovim and the two smaller ones on the right are lazygit and just a terminal. I've set leader a and leader a to switch between panes which is super useful. Windows are also for some other minor stuff aswell, but for each project I like to keep it in a single window and do more stuff with panes
Honest question: why lazy git? What’s wrong with the CLI? I don’t know about y’all but I rarely need to commit specific files cause all changes are related to a specific thing, so they committed all at once. So a git add all and git diff is all I need. Am I missing something?
A suggestion for your series that would be really helpful: tmux and nvim as a combo does not play nicely together on the alacritty terminal, could you do a short set up cheat sheet on getting them to work
when you're connected to a server you are allowed a single session and require a multiplexer like tmux to be able to do multiple things on that single session
I love the new tattoo 😂
Thanks!!
Lol I thought it is real 😂. Actually glad it is not real. Good joke. 👍
leader n is next and leader p is previous. You can do leader to jump also.
I use tmux primarily as it allows me to manage and restore sessions. Layzgit can be used from within nvim, i.e. if lazygit is installed and you use lazyvim it will automatically open lazygit within your nvim. Creating new window or panes on the fly when needed is of course a big plus as well and helps to focus on the task at hand, which can vary depending on the project (=session in my case)
Love it. Another great workflow
i use fugitive in neovim for that. WIth gs fugitive shows me same info and i can stage and make commit fast
Also a great workflow
I just started using Lazygit anr have already gotten tired of closing nvim to open Lazygit to do something in it only to close it and go back to nvim, rinse, cycle, repeat. This sounds like a great use for tmux
Why not use lazygit plugin for vim? I just do leader gg
@@xalium Yeah, after I typed this comment I watched a vid that recommended setting up Lazygit inside of Neovim with vim-floaterm. I've got that set up with a keymap now and that was a huge game changer
same@@xalium
I have an honest question since I’m trying to see if I want to get into tmux. why use Tmux if Iterm already have split, sessions, and tabs i believe
Need help 😢, I run nvim and lazygit in 2 different windows inside tmux…. Lazygit picks up changes from nvim but when I revert my changes or switch branches.. nvim doesn’t detect any changes, I need to manually refresh the buffers to see the change… any help will be appreciated
I'm in the struggle of deciding how much to do with tmux. So far I'm just getting persistent sessions and some nice theming, but you make me wonder..
I just open multiple terminal windows, either tiling them or on separate tags (workspaces). even when i’m working without Xorg, I just log into several ttys and switch with alt and arrows
Sometimes you're on remote server and have some complex work to do, so I'm doing
w
who
whoami
pwd
tmux ls
tmux
@@viktorshutov if you use ssh multiplexing, you can use multiple terminals over one ssh connection.
the only benefit tmux has is keeping sessions after logout/crash.
Personally, I don’t use it for that, since it’s overkill for such usage. If I *really* needed that, I could use gnu screen (still overkill, but less), but I don’t find myself needing this functionality very often.
@@aarond309 never heard of ssh multiplexing, thank you, I'll check it out
Oh comeon, using windows for that is crazy, we need to use panes for that, how I manage my projects is, each project gets a window, usually it has 3 panes, the bigger one is neovim and the two smaller ones on the right are lazygit and just a terminal. I've set leader a and leader a to switch between panes which is super useful. Windows are also for some other minor stuff aswell, but for each project I like to keep it in a single window and do more stuff with panes
Cool tattoo! Is that a G or terminal pains managed by something like yabai?
It's a tmux logo
Oooooo this is the setup
What is "leader"? Is it Ctrl usually?
Default is ctrl + b
Does Lazygit automatically refresh? Or do you need to switch to the Lazygit window for it to pick up the recent changes?
It has auto-refresh
thanks@@themohmand
I have tabs in Konsole for that. So unless I'm coding in kmscon or getty, what is the benefit?
I’m not too familiar with tmux, but for this specific case couldn’t you just open multiple tabs?
I tried tmux, but didn't stay. Kitty with tabs are enough for me, and for git I use fugitive
Have you had a look at zellij?
I’ll have to check it out!!
Honest question: why lazy git? What’s wrong with the CLI? I don’t know about y’all but I rarely need to commit specific files cause all changes are related to a specific thing, so they committed all at once. So a git add all and git diff is all I need. Am I missing something?
Man, if you had friends, I would definitely want to be one 👍
Did you really SFX a TMUX tattoo 🤣🤣
Maybe
Does nvim have a strong refactor like jetbrain ide? I really need it
A suggestion for your series that would be really helpful: tmux and nvim as a combo does not play nicely together on the alacritty terminal, could you do a short set up cheat sheet on getting them to work
That sounds nice
what's the issue exactly? cause I've been using alacritty + tmux and neovim with no problems.
Yeah me too. For years now? What’s up?
Where is leader button
For tmux it’s CTRL+b by default
bro don't know ALT+Tab exists.
Or have to make everything complicated, because I don't have work to done & to look cool !
are you good?
noob
when you're connected to a server you are allowed a single session and require a multiplexer like tmux to be able to do multiple things on that single session