mirror of
https://github.com/Dichgrem/Blog.git
synced 2026-02-05 01:21:57 -05:00
deploy: 3beea78b2d
This commit is contained in:
403
windows-4-use/index.html
Normal file
403
windows-4-use/index.html
Normal file
@@ -0,0 +1,403 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Dich's Blog</title>
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noodp"/>
|
||||
|
||||
<link rel="stylesheet" href="https://blog.dich.bid/style.css">
|
||||
<link rel="stylesheet" href="https://blog.dich.bid/color/blue.css">
|
||||
|
||||
<meta name="description" content="">
|
||||
|
||||
<meta property="og:description" content="">
|
||||
<meta property="og:title" content="Dich's Blog">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:url" content="https://blog.dich.bid/windows-4-use/">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:description" content="">
|
||||
<meta name="twitter:title" content="Dich's Blog">
|
||||
<meta property="twitter:domain" content="blog.dich.bid">
|
||||
<meta property="twitter:url" content="https://blog.dich.bid/windows-4-use/">
|
||||
|
||||
<link rel="alternate" type="application/atom+xml" title="Dich's Blog Atom Feed" href="https://blog.dich.bid/atom.xml" />
|
||||
<link rel="shortcut icon" type="image/webp" href="/dich.webp">
|
||||
|
||||
<!-- ✅ Added center alignment styles -->
|
||||
<style>
|
||||
.footer {
|
||||
text-align: center;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
|
||||
.footer__inner {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="">
|
||||
<div class="container">
|
||||
|
||||
<header class="header">
|
||||
<div class="header__inner">
|
||||
<div class="header__logo">
|
||||
|
||||
<a href="https://blog.dich.bid" style="text-decoration: none;">
|
||||
<div class="logo">
|
||||
|
||||
Dich's Blog
|
||||
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<nav class="menu">
|
||||
<ul class="menu__inner">
|
||||
<li class="active"><a href="https://blog.dich.bid">Blog</a></li>
|
||||
|
||||
<li><a href="https://blog.dich.bid/archive">Archive</a></li>
|
||||
|
||||
<li><a href="https://blog.dich.bid/weekly">Weekly</a></li>
|
||||
|
||||
<li><a href="https://blog.dich.bid/tags">Tags</a></li>
|
||||
|
||||
<li><a href="https://blog.dich.bid/search">Search</a></li>
|
||||
|
||||
<li><a href="https://blog.dich.bid/links">Links</a></li>
|
||||
|
||||
<li><a href="https://blog.dich.bid/atom.xml">Rss</a></li>
|
||||
|
||||
<li><a href="https://blog.dich.bid/about">About me</a></li>
|
||||
|
||||
<li><a href="https://github.com/Dichgrem" target="_blank" rel="noopener noreferrer">My github</a></li>
|
||||
|
||||
<li><a href="https://github.com/getzola/zola" target="_blank" rel="noopener noreferrer">Zola frame</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
<div class="content">
|
||||
|
||||
<div class="post" data-pagefind-body>
|
||||
|
||||
<h1 class="post-title"><a href="https://blog.dich.bid/windows-4-use/">Windows系列(4):高效操作与强化</a></h1>
|
||||
<div class="post-meta-inline">
|
||||
|
||||
<span class="post-date">
|
||||
2024-05-28
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<span class="post-tags-inline">
|
||||
:: tags:
|
||||
<a class="post-tag" href="https://blog.dich.bid/tags/windows/">#Windows</a></span>
|
||||
|
||||
|
||||
<div class="post-content">
|
||||
<p>前言 本文记载windows下的常用快捷键与PowerShell强化配置.</p>
|
||||
<span id="continue-reading"></span><h2 id="kuai-jie-jian">快捷键</h2>
|
||||
<p>高效使用 Windows 的第一步,就是<strong>减少鼠标依赖</strong>。<br />
|
||||
Windows 自身已经内置了大量非常实用的快捷键,只是很多人并没有系统地使用过。</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p><strong>Alt + Tab</strong><br />
|
||||
在<strong>已打开的窗口之间切换</strong>(经典快捷键)</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + Tab</strong><br />
|
||||
打开<strong>任务视图</strong>,可查看所有窗口与虚拟桌面</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Alt + F4</strong><br />
|
||||
关闭当前窗口</p>
|
||||
</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p>在桌面下使用时可弹出关机 / 重启菜单</p>
|
||||
</blockquote>
|
||||
<ul>
|
||||
<li>
|
||||
<p><strong>Win + D</strong><br />
|
||||
显示桌面 / 恢复窗口</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + ↑ / ↓ / ← / →</strong><br />
|
||||
窗口最大化 / 最小化 / 左右分屏</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + Shift + ← / →</strong><br />
|
||||
将当前窗口移动到另一个显示器</p>
|
||||
</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<h3 id="xu-ni-zhuo-mian">虚拟桌面</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<p><strong>Win + Ctrl + D</strong><br />
|
||||
新建虚拟桌面</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + Ctrl + ← / →</strong><br />
|
||||
在虚拟桌面之间切换</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + Ctrl + F4</strong><br />
|
||||
关闭当前虚拟桌面</p>
|
||||
</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<h3 id="ying-yong-qi-dong-yu-xi-tong">应用启动与系统</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<p><strong>Win</strong><br />
|
||||
打开开始菜单,直接输入搜索应用</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + R</strong><br />
|
||||
打开“运行”窗口</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + E</strong><br />
|
||||
打开资源管理器</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + I</strong><br />
|
||||
打开系统设置</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + L</strong><br />
|
||||
锁屏</p>
|
||||
</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<h3 id="jie-tu-yu-lu-ping">截图与录屏</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<p><strong>Win + Shift + S</strong><br />
|
||||
截图(区域 / 窗口 / 全屏)</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + PrtSc</strong><br />
|
||||
全屏截图并自动保存</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Win + G</strong><br />
|
||||
打开 Xbox Game Bar,可用于屏幕录制</p>
|
||||
</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<h3 id="chang-yong-bian-ji-cao-zuo">常用编辑操作</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<p><strong>Ctrl + C / V / X</strong><br />
|
||||
复制 / 粘贴 / 剪切</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Ctrl + Z / Y</strong><br />
|
||||
撤销 / 重做</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Ctrl + A</strong><br />
|
||||
全选</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Ctrl + S</strong><br />
|
||||
保存</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Ctrl + F</strong><br />
|
||||
查找</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Ctrl + Shift + Esc</strong><br />
|
||||
直接打开任务管理器</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="qi-dong-qi">启动器</h2>
|
||||
<p>有了窗口切换和关闭,还需要打开,这里推荐这两个:</p>
|
||||
<ul>
|
||||
<li><a rel="noopener nofollow noreferrer" target="_blank" href="https://github.com/Flow-Launcher/Flow.Launcher">Flow.Launcher</a></li>
|
||||
<li><a rel="noopener nofollow noreferrer" target="_blank" href="https://github.com/ghost-him/ZeroLaunch-rs">ZeroLaunch-rs</a></li>
|
||||
</ul>
|
||||
<p>现在我们就可以使用<code>Win+Tab</code>切换窗口,使用<code>Alt+F4</code>关闭窗口,使用<code>Alt+Space</code>启动软件.</p>
|
||||
<h2 id="powershellqiang-hua">Powershell强化</h2>
|
||||
<p>要达到类似Linux下<code>oh-myzsh+atuin+fzf+zoxide+starship</code>的效果,可以使用以下方法增强:</p>
|
||||
<ul>
|
||||
<li>安装模块</li>
|
||||
</ul>
|
||||
<pre data-lang="bash" style="background-color:#151515;color:#e8e8d3;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#ffb964;">winget</span><span> install junegunn.fzf
|
||||
</span><span style="color:#ffb964;">fzf --version
|
||||
</span><span style="color:#ffb964;">winget</span><span> install JanDeDobbeleer.OhMyPosh
|
||||
</span><span style="color:#ffb964;">oh-my-posh</span><span> version
|
||||
</span><span style="color:#ffb964;">winget</span><span> install ajeetdsouza.zoxide
|
||||
</span><span style="color:#ffb964;">zoxide --version
|
||||
</span></code></pre>
|
||||
<ul>
|
||||
<li>导入模块</li>
|
||||
</ul>
|
||||
<pre data-lang="bash" style="background-color:#151515;color:#e8e8d3;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#ffb964;">Install-Module</span><span> PSReadLine</span><span style="color:#ffb964;"> -Scope</span><span> CurrentUser</span><span style="color:#ffb964;"> -Force
|
||||
</span><span style="color:#ffb964;">Install-Module</span><span> posh-git</span><span style="color:#ffb964;"> -Scope</span><span> CurrentUser</span><span style="color:#ffb964;"> -Force
|
||||
</span><span style="color:#ffb964;">Install-Module</span><span> PSFzf</span><span style="color:#ffb964;"> -Scope</span><span> CurrentUser</span><span style="color:#ffb964;"> -Force
|
||||
</span></code></pre>
|
||||
<ul>
|
||||
<li>写入配置</li>
|
||||
</ul>
|
||||
<p>首先执行这个命令:</p>
|
||||
<pre data-lang="bash" style="background-color:#151515;color:#e8e8d3;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#ffb964;">notepad </span><span>$</span><span style="color:#ffb964;">PROFILE
|
||||
</span></code></pre>
|
||||
<p>在打开的窗口中写入:</p>
|
||||
<pre data-lang="bash" style="background-color:#151515;color:#e8e8d3;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#888888;"># ---------- PSReadLine ----------
|
||||
</span><span style="color:#ffb964;">Import-Module</span><span> PSReadLine
|
||||
</span><span style="color:#ffb964;">Set-PSReadLineOption -PredictionSource</span><span> History
|
||||
</span><span style="color:#ffb964;">Set-PSReadLineOption -PredictionViewStyle</span><span> InlineView
|
||||
</span><span>
|
||||
</span><span style="color:#888888;"># ---------- Git ----------
|
||||
</span><span style="color:#ffb964;">Import-Module</span><span> posh-git
|
||||
</span><span>
|
||||
</span><span style="color:#888888;"># ---------- fzf ----------
|
||||
</span><span style="color:#ffb964;">Import-Module</span><span> PSFzf
|
||||
</span><span style="color:#ffb964;">Set-PsFzfOption -PSReadlineChordProvider </span><span style="color:#556633;">'</span><span style="color:#99ad6a;">Ctrl+t</span><span style="color:#556633;">'</span><span style="color:#ffb964;"> -PSReadlineChordReverseHistory </span><span style="color:#556633;">'</span><span style="color:#99ad6a;">Ctrl+r</span><span style="color:#556633;">'
|
||||
</span><span>
|
||||
</span><span style="color:#888888;"># ---------- zoxide ----------
|
||||
</span><span style="color:#ffb964;">Invoke-Expression</span><span> (& { (</span><span style="color:#ffb964;">zoxide</span><span> init powershell | </span><span style="color:#ffb964;">Out-String</span><span>) })
|
||||
</span><span>
|
||||
</span><span style="color:#888888;"># ---------- oh-my-posh ----------
|
||||
</span><span>
|
||||
</span><span style="color:#ffb964;">oh-my-posh</span><span> init pwsh | </span><span style="color:#ffb964;">Invoke-Expression
|
||||
</span><span>
|
||||
</span><span style="color:#888888;"># ---------- Bash-style line editing ----------
|
||||
</span><span>
|
||||
</span><span style="color:#888888;"># Ctrl+A → 行首
|
||||
</span><span style="color:#ffb964;">Set-PSReadLineKeyHandler -Key</span><span> Ctrl+a</span><span style="color:#ffb964;"> -Function</span><span> BeginningOfLine
|
||||
</span><span style="color:#888888;"># Ctrl+E → 行尾
|
||||
</span><span style="color:#ffb964;">Set-PSReadLineKeyHandler -Key</span><span> Ctrl+e</span><span style="color:#ffb964;"> -Function</span><span> EndOfLine
|
||||
</span><span style="color:#888888;"># Ctrl+U → 删除从光标到行首
|
||||
</span><span style="color:#ffb964;">Set-PSReadLineKeyHandler -Key</span><span> Ctrl+u</span><span style="color:#ffb964;"> -Function</span><span> BackwardDeleteLine
|
||||
</span><span style="color:#888888;"># Ctrl+K → 删除从光标到行尾
|
||||
</span><span style="color:#ffb964;">Set-PSReadLineKeyHandler -Key</span><span> Ctrl+k</span><span style="color:#ffb964;"> -Function</span><span> ForwardDeleteLine
|
||||
</span></code></pre>
|
||||
<p>随后新开启一个PowerShell,可以看到有Git提示,ctrl+R唤起历史,右方向键透明补全的效果.</p>
|
||||
<hr />
|
||||
<p><strong>Done.</strong></p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="pagination">
|
||||
<div class="pagination__title">
|
||||
<span class="pagination__title-h">Thanks for reading! Read other posts?</span>
|
||||
<hr />
|
||||
</div>
|
||||
<div class="pagination__buttons">
|
||||
<span class="button previous">
|
||||
<a href="https://blog.dich.bid/windows-3-auto/">
|
||||
<span class="button__icon">←</span>
|
||||
<span class="button__text">Windows系列(3):封装与全自动安装</span>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
|
||||
<span class="button next">
|
||||
<a href="https://blog.dich.bid/windows-5-py/">
|
||||
<span class="button__text">Windows系列(5):Python开发配置</span>
|
||||
<span class="button__icon">→</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="toc-container">
|
||||
<div class="toc">
|
||||
<div class="toc-title">目录</div>
|
||||
<ul>
|
||||
|
||||
<li class="toc-level-2">
|
||||
<a href="#kuai-jie-jian">快捷键</a>
|
||||
|
||||
<ul>
|
||||
|
||||
<li class="toc-level-3">
|
||||
<a href="#xu-ni-zhuo-mian">虚拟桌面</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="toc-level-3">
|
||||
<a href="#ying-yong-qi-dong-yu-xi-tong">应用启动与系统</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="toc-level-3">
|
||||
<a href="#jie-tu-yu-lu-ping">截图与录屏</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="toc-level-3">
|
||||
<a href="#chang-yong-bian-ji-cao-zuo">常用编辑操作</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="toc-level-2">
|
||||
<a href="#qi-dong-qi">启动器</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="toc-level-2">
|
||||
<a href="#powershellqiang-hua">Powershell强化</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="footer__inner">
|
||||
<div class="copyright">
|
||||
<span>©
|
||||
2026
|
||||
Dichgrem</span>
|
||||
<span class="copyright-theme">
|
||||
<span class="copyright-theme-sep"> :: CC BY-SA 4.0 :: A friend comes from distant lands</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
<script src="https://blog.dich.bid/copy.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user