News for hackers. Stuff that matters.
Re:Windows Terminal Quake Mode by aste-risk on Sunday May 02, 2021 @01:41AM (#27012617)
Please come up with reverse searches and forward searches in terminal and I swear I will change my primary OS to Windows.
Re:Windows Terminal Quake Mode by sp332 on Sunday May 02, 2021 @01:53AM (#27012646)
PowerShell has shipped with PSReadLine since version 6.
Re:Windows Terminal Quake Mode by nickjj on Sunday May 02, 2021 @06:13AM (#27013852)
I highly recommend using tmux. It works well with the MS terminal (and other terminals).

You'll get forward and reverse searching, split panes, windows (similar to tabs), excellent window and pane management binds (moving them, switching orders, zooming in / out, etc.), persisted sessions that you can save and restore across reboots and good mouse support if you want it.

The best part is it works the same with every terminal so you can super charge any terminal and use the same tmux configuration in multiple environments. This way you can make a terminal choice based on optimizing for speed, low key press latency and other traits that make a terminal feel nice to use.

I gave a command line talk once that focuses on using tmux, Vim and various Unix tools at https://github.com/nickjj/nyhackr-cli-dev-env. The slides and video links are listed there. The videos all have timestamps so you can jump around to the tmux bits pretty easily.

Re:Windows Terminal Quake Mode by pdpi on Sunday May 02, 2021 @03:35AM (#27013082)
Reverse/forward searches are features of the shell, not the terminal. As others have noted, PowerShell supports those.
Re:Windows Terminal Quake Mode by hansel_der on Sunday May 02, 2021 @04:59AM (#27013518)
> searches are features of the shell, not the terminal

no, tmux/screen implement search in the terminal output buffer and work well.

Re:Windows Terminal Quake Mode by oblio on Sunday May 02, 2021 @08:58AM (#27014903)
Do they, though? They have their own buffer.
Re:Windows Terminal Quake Mode by colordrops on Sunday May 02, 2021 @04:33AM (#27013379)
tmux supports this.
Re:Windows Terminal Quake Mode by oblio on Sunday May 02, 2021 @08:49AM (#27014840)
Tmux is not a terminal, though.
Re:Windows Terminal Quake Mode by laqq3 on Sunday May 02, 2021 @02:38AM (#27012851)
I’ve been using Ctrl+Shift+f in Windows Terminal for this (it searches terminal output/its scroll back buffer).
Re:Windows Terminal Quake Mode by jakopo87 on Sunday May 02, 2021 @03:30AM (#27013060)
It's not the same: reverse/forward searches look into command history to let you relaunch commands prevously used.
Re:Windows Terminal Quake Mode by ossopite on Sunday May 02, 2021 @09:07AM (#27014961)
Clink [https://mridgers.github.io/clink/] adds this functionality and much more to good old fashioned command prompt (which I prefer to powershell because it's much faster and simpler)
Re:Windows Terminal Quake Mode by rashil2000 on Sunday May 02, 2021 @11:09AM (#27015927)
That repo is extremely outdated. Here's the official(?) supercharged fork, which is actively developed - https://github.com/chrisant996/clink
Re:Windows Terminal Quake Mode by ossopite on Sunday May 02, 2021 @04:05PM (#27018535)
Huh, I did wonder if there was an updated fork but I obviously didn't look hard enough. Thanks!
Re:Windows Terminal Quake Mode by yrro on Sunday May 02, 2021 @10:58AM (#27015838)
https://mridgers.github.io/clink/ gives you readline editing in cmd.exe
Re:Windows Terminal Quake Mode by systemvoltage on Sunday May 02, 2021 @04:13AM (#27013261)
Terminal features would be a footnote in the 1400 page book containing list of things I'd like to see in Windows :-)
Re:Windows Terminal Quake Mode by ant6n on Sunday May 02, 2021 @04:31AM (#27013362)
And a 1000 of those are bugs that have been around since Windows 98.
Re:Windows Terminal Quake Mode by noisem4ker on Sunday May 02, 2021 @05:17AM (#27013613)
Any example?
Re:Windows Terminal Quake Mode by ant6n on Monday May 03, 2021 @07:58PM (#27032458)
One simple one: If I start multiple Kopies/file downloads, Windows will run them all in parallel, even if they run through the same connection. So if after 50% there´s a connection drop, all of them will abort. This used to be especially bad on nicely defragmented disks, because the extra seeking makes parallel copies slower then sequential ones.

Even after all this time, they can`t figure out to automatically chain I/O operations (or at least give me some UI to do it explicitly).

Re:Windows Terminal Quake Mode by stinos on Sunday May 02, 2021 @08:52AM (#27014853)
Fuzzy history search like fzf does is in my experience quicker. And also works in Powershell.
Re:Windows Terminal Quake Mode by ripley12 on Sunday May 02, 2021 @11:38AM (#27016163)
Are you using PSFzf or something else? https://github.com/kelleyma49/PSFzf
Re:Windows Terminal Quake Mode by stinos on Sunday May 02, 2021 @04:10PM (#27018581)
I used to use PSFzf indeed: it's pretty good and got me started with fzf on PS, but the history reading nor file scanning are particularly fast so currently I'm using some C# code to do those and pipe it into fzf directly. Don't recall exactly but the most basic C# code I could come up with which does 'read history file in reverse and skip duplicates' was like 3 times faster than what PSFzf uses.
Re:Windows Terminal Quake Mode by _hsgp on Sunday May 02, 2021 @03:30AM (#27013057)
By reverse search do you mean this [link redacted] because you can do that with Ctrl-R now :)