- Видео 5
- Просмотров 41 517
typecraft talks
США
Добавлен 16 май 2024
Segments from typecraft's live twitch stream. Ranting about programming, linux, neovim, and more. Crushing it since '85
Why use tmux on a remote server?
When and how should you use tmux on a remote server? This is particularly useful when you need to have a long-running process that you need to connect to later.
Let's get into it.
Let's get into it.
Просмотров: 635
Видео
The BEST way to learn vim without configuration
Просмотров 4,7 тыс.4 месяца назад
Learning vim takes time but we all have to push code. A great way to start learning and still be able to do work is through configs like NvChad. NvChad make it simple to install a suite of plugins, lowering the bar for people to dip their toe in the water. Although we think building your own is where you should ultimately be, these can get you in the door to see if Neovim is right for you. The ...
What the hell is Yazi ??
Просмотров 21 тыс.4 месяца назад
If you're a command-line junkie like me, you'd like the ability to navigate and manage your files with ease. That's where Yazi comes in. Yazi provides a quick-access command palette for your terminal, streamlining navigation and automation. Learn more at github.com/sxyazi/yazi
Bat and Catppuccin are AMAZING together
Просмотров 12 тыс.5 месяцев назад
What is bat? You can think of it like we do Neovim and vim. Like Neovim, bat is a modernized version of the command `cat`. It's got syntax highlighting and line numbers among other things. The best part is - you can apply themes to the highlighting. That's right, it's time for some catppuccin baby.
Or just use nohup.
What benefits does this have over ranger?
Written in Rust and not python. More speed.
I just wish yazi had the interface of superfile, I really like having multiple panes in a split view being able to see multiple dirs at the same time
I think it has built in support for image preview but I haven't tried it yet. I keep forgetting.
chezmoi 4 life
I like to run tmux on both with custom prefix locally and the original on the remote, so you can chose which side of the connection you want to split the panes
I’m trying to figure out an equivalent to rangers “S”
Yazi is really nice! I add it to my nvim config, but unfortunate it doesn't show image preview inside nvim terminal. :/ (I'm using Kitty too) But works great for a main files manager!
Is that a fish shell theme that you use on your terminal?
I really like Yazi a lot. Config is pretty extensive and nice to work with. One thing I've been struggling with for ages is to get image and video previews to work with yazi in Alacritty. Would love if you could investigate that and report back <3.
Yazi is pronounced "鸭子"
that’s how i use tmux on servers
Thanks, Nerd!
say do you have a video of fixing the status bar in tmux/catppuccin maybe? there is like a line on the status bar like where the time is...idk if its starship doing it or tmux status bar but its driving me crazy lol been trying to change everythingggg like this to catppuccin mocha transparent and its so hard lol
Is this a ranger clone?
What is this terminal, or what are you using to get the path, branch, tags, and time?
this video could have been 5 seconds long
Check joshuto
Yazi is the chinese word for Duck, pronounced like this: ruclips.net/video/E2SPoDG2qYM/видео.html
Cool file manager!
lol vim without config... vim has truely the worst defaults imaginable, mostly because of legacy , so by using the defaults you are really handicapping your self from the beginning , wich is yeah .... dumb... this will prolly get downvoted by the vim fanboys but its actually really easy to prove with an example, 4 fingers on home row yet by default you use your index finger for the two most used (in sequence might i ad) directions ... and the only reason for the direction keys being `hjkl` is because VI (the old one yes) was developed in an era before standardized keyboards existed and the developer was using a ADM-3A terminal (yes terminal) if he would have been using an atari 800 the arrow keys on that one are on `[];'` and vim boys would be defending that choice probably
Yet vim motions have become almost ubiquitous in programming tools and TUIs and are still lorded as one of the best ways to move around a text file. So it may have been a fluke but that does not discount it. Many of the greatest human discoveries are flukes. Be negative all you want but the fact that I wish more things had vim binds built in speaks to its power and usefulness. Have a lovely day!
@@CalvinB_ (sorry forgot to hit repl on this one) , i would say : well thats odd i hardly know any terminal applications that actually use vim like controls, except for a few that are forks of other apps but then with vim motions added to it... what do you think is more likely any way , that the vim controls are actually the best by accident and thats why those apps you mention use them, or that they only use them because the dev was already familiar with them and figured why learn a new set and or figure out a new set of keys when i can just use the existing one? , one more thing, if these (and im specifially reffering to hjkl in this casee) were actually so damn good , one would think that there was atleast 1 Professionall (lefthanded) FPS player that used those keys for moving around.... as that area of the keyboard has more keys within reach than what they use by default anywayt, and also some (righthanded) players that would use the equivalent sdfg to move about ..., ps one other thing vimmers should just start using english :) yank is not copy in english even if your using the y key just call it copy , if you think it makes sense then why dont you call keyleft , hirtum (left for horses) , keyup jump and keyright left just because its on the l ?
When you mentioned whichkey, i thought i used something like that in Emacs
vifm is another terminal file manager that provide lots of vim style keybindings and concepts
the only issue with nvChad is how to config lsp linter formatter ... tried it couldnt get idea even nvchad config doesnt have all those configs they somehow sync with github repo of nvchad... which make it hard for beginner to setup it
for formatter, use conform? comes by default with nvchad. for linter , use nvim-lint
I also suggest using chat gpt, was really helpful when tryna setup formatter and lsp, tho i did have to prompt that i was using the new folder system for nvchad
How do I set up yazi to open with Nvim ?
you should check superfile file manager, the best looking TUI FM!
--theme="ansi" --> /bat/config
Wait until you find out about Yazi plugins
It's like ranger file manager.
I aliased yazi to fm (file manager). It's pretty cool and extensible
LunarVim
AstroNvim is very good as well.
It really is!
I will never get why people are making single paned file explorer instead of double pane like original norton commander
it supports tabs(default 't' to create a new tab, switch tabs with 1-9), which is close enough :D
If you create a terminal split (natively of through tmux / zellij) and open yazi inside both splits, you can use it as a double pane file manager thanks to its DDS system.
@@Sonico98 didn't thought about this, might try it
@@Sonico98 yank/paste didn't work for me between the panes in Zellij (which runs inside Alacritty)
@@jozsefk9 have you enabled DDS in yazi?
Just yesterday, I discovered "lf" ("list files" manager) that does this. It was great, but 2 things I wished for: 1) Icons for files, and 2) Vertical lines separating the columns. Today, you show me yazi (which didn't appear in my searches before) that was like "lf" but 1) Icons for files, and 2) Vertical lines! Seriously, over the last year, you highlighted exactly the tools I have been trying to customize or learn. NeoVim, Arch, Tmux, Yazi, etc. Thanks, nerd!
Both is literally possible in lf, just read the fucking manual.
Used most TUI file managers, and finally settled on yazi. lf was my previous goto and ranger before that. The two most important features are built-in image protocols (kitty or sixel) to browse images on terminals that support them, and configuration is done in lua like neovim. The image preview obsoletes my need for a GUI file manager.
What are you using to search in your command history?
thats FZF!
long time Dracula and Nord fanboy here and I have fully converted to Catppuccin mocha and there's no turning back
Hell yeah!
@@typecraft_talks I'm working on a Catppuccin theme for Typora rn since somehow there isn't a port for the best markdown editor.
Well, according to the readme it is a "Blazing Fast Terminal File Manager". In this video I learned that it can move a file. Got it.
Take a look at mc.
Spent a lot of time tweaking lf… found yazi, does everything and more without complex config and is so much faster too. Staple.
yay-zee (jk)
Oil
The “LDUR” echo in the background was hilarious
Fugazi fugayazi 😅
so... ranger?
configs are much easier and make much more sense, theming it is easier, and i had to do basically no config to get image *and* video thumbnail previews! also the help screen for all the keybindings with a built-in search is a godsend!
much faster and more reponsive, night and day difference.
If you want to see hidden files by default, just set 'show hidden = true' in your config file.
nnn is good too
Not too different from good old Midnight Commander
Since you've mentioned dotfiles I thought it was gonna be some thingy for managing dotfiles and backing them up in a smart way, but it's just another terminal file explorer. You already have one in neovim *by the way*
Yazi is just so much easier to work on a daily basis. I wouldn't really compare them.
Ya-tzi surely?
actually ya-zuh, apparently it's 'duck' in chinese :D
@@m_hrstv this is the closest yeah :) it is duck in chinese
@@uncenter_ cool, ty for the confirmation :3