Iterm switch panes12/10/2023 ![]() ![]() With hotkeys I can control where panes open. Now you can see the VS2019 prompt in the lower left corner. I'm doing this while Ubuntu is the focused pane. I'll then click the dropdown, hold ALT, and click on the Visual Studio Developer Command Prompt that I've added to the menu. NET Core) and sitting in my podcast's source code directory. ![]() The best way to get started with ZERO setup is to click the main Dropdown in Windows Terminal and hold down the ALT key while you click on a shell!īelow you can see Ubuntu/WSL2 on the left running htop, while on the right I'm running PowerShell 7 (powered by. There's great docs on setting up hotkeys for this, and you should. However, the Windows Terminal supports a multi-pane view at the Terminal-level, regardless of shell! There are several multi-pane options to choose from within a shell using something like tmux. "Use Tmux!" you might shout, and that's a valid thing to yell if I was only living in Linux (using WSL2). The Terminal of course has Tabs so you can open many different shells at once within a terminal instance, often I want to do things like Split Screen/Split Pane. I enjoy customizing the Windows Terminal with a nice prompt. My love and appreciate for the new open-source Windows Terminal is well-documented. Kitty lets you define a session, and load it on startup. ![]() This setup makes it really easy to load projects, so I’m not sure I need that last tmux feature, save and restore projects. Or ctrl-g will load a tab from a github repo! Or you can hit ctrl-r to load a project from a local dir. Map ctrl+f toggle_layout stack # fullscreen windowĪfter hitting ctrl-space, you can fuzzy pick an open project. Map ctrl+space kitten meow/load_project.py -dir $HOME/code/ -org my_cool_org This ended up working really well, so here it is: Ī similar mapping lets you switch between open projects, and create new projects from local dirs or github: # ~/.config/kitty/nf And after that I thought I could create new “sessions“ from github repos. I didn’t want to stop there, I figured I could create new “sessions“ as well. ' | fzf | xargs -I _ kitty focus-tab -match title:_" Map ctrl+space launch -type=overlay zsh -ic "kitty ls | jq -r '.tabs | map(.title) |. Add in fzf and a kitty mapping and you have a fuzzy project switcher very similar to tmux: # ~/.config/kitty/nf For example, you can list all tab titles: $ kitty ls | jq '.tabs | map(.title)'. But you’d have to click on a tab to switch, and any vim user will tell you that just won’t work. And it’s not too hard to manually create a tab, and cd to a project. Kitty doesn’t have sessions like tmux, but it does have tabs. īut there didn’t seem like a great solution to switching between projects. And full-screening a pane can be achieved with a mapping map ctrl+f toggle_layout stack. There is basically the same navigator plugin for kitty: vim-kitty-navigator. Seamlessly switch between vim and shell panesĪ few of these are easy. I noticed kitty has windows (equivalent of tmux pane), so I wondered if I needed tmux at all? I made a list of the important features tmux gives me: I was used to a terminal just kinda existing without using any of its features, so didn’t think about using kitty more.īut recently I switched jobs, and that got me thinking about my setup. So I settled on kitty, but I continued using tmux. Iterm was fine, but iirc I was looking for a terminal I could use on both mac and linux. Tmux prefix + s lists all your sessions, and lets you move between them.Īt some point I changed terminals from iterm to kitty. I used a session for each software project I’d work on. Tmux also has sessions, sessions are kinda like browser tabs. Navigator makes moving between vim splits and tmux panes seamless. I don’t think it had panes when I first started using it, or maybe it did? But I found tmux, and tmux has a great plugin vim-tmux-navigator. I used iterm for a while, and it was fine. There are a number of terminals available for osx. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |