LazyGit & Tmux: Elevate Your Workflow

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 49

  • @meowhib
    @meowhib 8 месяцев назад +55

    I love the new tattoo 😂

    • @typecraft_dev
      @typecraft_dev  8 месяцев назад +9

      Thanks!!

    • @bekiraltindal9053
      @bekiraltindal9053 3 месяца назад

      Lol I thought it is real 😂. Actually glad it is not real. Good joke. 👍

  • @silveradopunked8329
    @silveradopunked8329 3 месяца назад +2

    leader n is next and leader p is previous. You can do leader to jump also.

  • @Kessra
    @Kessra 8 месяцев назад +14

    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)

    • @typecraft_dev
      @typecraft_dev  8 месяцев назад +1

      Love it. Another great workflow

  • @MrLotrus
    @MrLotrus 8 месяцев назад +8

    i use fugitive in neovim for that. WIth gs fugitive shows me same info and i can stage and make commit fast

  • @JoshPeterson
    @JoshPeterson 8 месяцев назад +4

    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
      @xalium 8 месяцев назад +3

      Why not use lazygit plugin for vim? I just do leader gg

    • @JoshPeterson
      @JoshPeterson 8 месяцев назад

      @@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

    • @kevinkinney1021
      @kevinkinney1021 8 месяцев назад

      same@@xalium

    • @andremossi5957
      @andremossi5957 25 дней назад +1

      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

  • @KannadaLofi
    @KannadaLofi 17 дней назад

    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

  • @MrReedMiester
    @MrReedMiester 7 месяцев назад

    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..

  • @aarond309
    @aarond309 8 месяцев назад +3

    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
      @viktorshutov 2 месяца назад

      Sometimes you're on remote server and have some complex work to do, so I'm doing
      w
      who
      whoami
      pwd
      tmux ls
      tmux

    • @aarond309
      @aarond309 2 месяца назад

      @@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.

    • @viktorshutov
      @viktorshutov 2 месяца назад

      @@aarond309 never heard of ssh multiplexing, thank you, I'll check it out

  • @Pravya10
    @Pravya10 Месяц назад

    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

  • @not.a.casual
    @not.a.casual 7 месяцев назад +1

    Cool tattoo! Is that a G or terminal pains managed by something like yabai?

    • @blbezcc
      @blbezcc 7 месяцев назад

      It's a tmux logo

  • @tinotaylor
    @tinotaylor 3 месяца назад

    Oooooo this is the setup

  • @bekiraltindal9053
    @bekiraltindal9053 3 месяца назад +2

    What is "leader"? Is it Ctrl usually?

  • @mars_0008
    @mars_0008 8 месяцев назад +4

    Does Lazygit automatically refresh? Or do you need to switch to the Lazygit window for it to pick up the recent changes?

    • @themohmand
      @themohmand 8 месяцев назад +5

      It has auto-refresh

    • @mars_0008
      @mars_0008 8 месяцев назад

      thanks@@themohmand

  • @w01dnick
    @w01dnick 8 месяцев назад

    I have tabs in Konsole for that. So unless I'm coding in kmscon or getty, what is the benefit?

  • @jsap09
    @jsap09 5 месяцев назад

    I’m not too familiar with tmux, but for this specific case couldn’t you just open multiple tabs?

  • @brendon205
    @brendon205 3 месяца назад

    I tried tmux, but didn't stay. Kitty with tabs are enough for me, and for git I use fugitive

  • @danielandreasen2293
    @danielandreasen2293 8 месяцев назад +1

    Have you had a look at zellij?

    • @typecraft_dev
      @typecraft_dev  8 месяцев назад +2

      I’ll have to check it out!!

  • @FreddyRangel85
    @FreddyRangel85 7 месяцев назад +3

    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?

  • @Queeebo
    @Queeebo 8 месяцев назад

    Man, if you had friends, I would definitely want to be one 👍

  • @HowToLinux
    @HowToLinux 8 месяцев назад +4

    Did you really SFX a TMUX tattoo 🤣🤣

  • @s-xatya5088
    @s-xatya5088 8 месяцев назад +1

    Does nvim have a strong refactor like jetbrain ide? I really need it

  • @michaelblakey7794
    @michaelblakey7794 8 месяцев назад +1

    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

    • @typecraft_dev
      @typecraft_dev  8 месяцев назад

      That sounds nice

    • @Redyf
      @Redyf 8 месяцев назад

      what's the issue exactly? cause I've been using alacritty + tmux and neovim with no problems.

    • @maguilecutty
      @maguilecutty 8 месяцев назад

      Yeah me too. For years now? What’s up?

  • @cribro0572
    @cribro0572 8 месяцев назад

    Where is leader button

    • @typecraft_dev
      @typecraft_dev  8 месяцев назад

      For tmux it’s CTRL+b by default

  • @khanra17
    @khanra17 8 месяцев назад

    bro don't know ALT+Tab exists.
    Or have to make everything complicated, because I don't have work to done & to look cool !

    • @Redyf
      @Redyf 8 месяцев назад

      are you good?

    • @a1mer06
      @a1mer06 8 месяцев назад

      noob

    • @bhavyakukkar
      @bhavyakukkar 7 месяцев назад

      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