mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-11-24 04:03:11 +08:00
697 lines
18 KiB
HTML
697 lines
18 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
<head>
|
|
<!-- 2022-09-21 三 13:54 -->
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Editor Cheatsheet</title>
|
|
<meta name="author" content="dongdigua" />
|
|
<meta name="generator" content="Org Mode" />
|
|
<style>
|
|
#content { max-width: 60em; margin: auto; }
|
|
.title { text-align: center;
|
|
margin-bottom: .2em; }
|
|
.subtitle { text-align: center;
|
|
font-size: medium;
|
|
font-weight: bold;
|
|
margin-top:0; }
|
|
.todo { font-family: monospace; color: red; }
|
|
.done { font-family: monospace; color: green; }
|
|
.priority { font-family: monospace; color: orange; }
|
|
.tag { background-color: #eee; font-family: monospace;
|
|
padding: 2px; font-size: 80%; font-weight: normal; }
|
|
.timestamp { color: #bebebe; }
|
|
.timestamp-kwd { color: #5f9ea0; }
|
|
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
|
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
|
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
|
.underline { text-decoration: underline; }
|
|
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
|
p.verse { margin-left: 3%; }
|
|
pre {
|
|
border: 1px solid #e6e6e6;
|
|
border-radius: 3px;
|
|
background-color: #f2f2f2;
|
|
padding: 8pt;
|
|
font-family: monospace;
|
|
overflow: auto;
|
|
margin: 1.2em;
|
|
}
|
|
pre.src {
|
|
position: relative;
|
|
overflow: auto;
|
|
}
|
|
pre.src:before {
|
|
display: none;
|
|
position: absolute;
|
|
top: -8px;
|
|
right: 12px;
|
|
padding: 3px;
|
|
color: #555;
|
|
background-color: #f2f2f299;
|
|
}
|
|
pre.src:hover:before { display: inline; margin-top: 14px;}
|
|
/* Languages per Org manual */
|
|
pre.src-asymptote:before { content: 'Asymptote'; }
|
|
pre.src-awk:before { content: 'Awk'; }
|
|
pre.src-authinfo::before { content: 'Authinfo'; }
|
|
pre.src-C:before { content: 'C'; }
|
|
/* pre.src-C++ doesn't work in CSS */
|
|
pre.src-clojure:before { content: 'Clojure'; }
|
|
pre.src-css:before { content: 'CSS'; }
|
|
pre.src-D:before { content: 'D'; }
|
|
pre.src-ditaa:before { content: 'ditaa'; }
|
|
pre.src-dot:before { content: 'Graphviz'; }
|
|
pre.src-calc:before { content: 'Emacs Calc'; }
|
|
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
|
pre.src-fortran:before { content: 'Fortran'; }
|
|
pre.src-gnuplot:before { content: 'gnuplot'; }
|
|
pre.src-haskell:before { content: 'Haskell'; }
|
|
pre.src-hledger:before { content: 'hledger'; }
|
|
pre.src-java:before { content: 'Java'; }
|
|
pre.src-js:before { content: 'Javascript'; }
|
|
pre.src-latex:before { content: 'LaTeX'; }
|
|
pre.src-ledger:before { content: 'Ledger'; }
|
|
pre.src-lisp:before { content: 'Lisp'; }
|
|
pre.src-lilypond:before { content: 'Lilypond'; }
|
|
pre.src-lua:before { content: 'Lua'; }
|
|
pre.src-matlab:before { content: 'MATLAB'; }
|
|
pre.src-mscgen:before { content: 'Mscgen'; }
|
|
pre.src-ocaml:before { content: 'Objective Caml'; }
|
|
pre.src-octave:before { content: 'Octave'; }
|
|
pre.src-org:before { content: 'Org mode'; }
|
|
pre.src-oz:before { content: 'OZ'; }
|
|
pre.src-plantuml:before { content: 'Plantuml'; }
|
|
pre.src-processing:before { content: 'Processing.js'; }
|
|
pre.src-python:before { content: 'Python'; }
|
|
pre.src-R:before { content: 'R'; }
|
|
pre.src-ruby:before { content: 'Ruby'; }
|
|
pre.src-sass:before { content: 'Sass'; }
|
|
pre.src-scheme:before { content: 'Scheme'; }
|
|
pre.src-screen:before { content: 'Gnu Screen'; }
|
|
pre.src-sed:before { content: 'Sed'; }
|
|
pre.src-sh:before { content: 'shell'; }
|
|
pre.src-sql:before { content: 'SQL'; }
|
|
pre.src-sqlite:before { content: 'SQLite'; }
|
|
/* additional languages in org.el's org-babel-load-languages alist */
|
|
pre.src-forth:before { content: 'Forth'; }
|
|
pre.src-io:before { content: 'IO'; }
|
|
pre.src-J:before { content: 'J'; }
|
|
pre.src-makefile:before { content: 'Makefile'; }
|
|
pre.src-maxima:before { content: 'Maxima'; }
|
|
pre.src-perl:before { content: 'Perl'; }
|
|
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
|
pre.src-scala:before { content: 'Scala'; }
|
|
pre.src-shell:before { content: 'Shell Script'; }
|
|
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
|
/* additional language identifiers per "defun org-babel-execute"
|
|
in ob-*.el */
|
|
pre.src-cpp:before { content: 'C++'; }
|
|
pre.src-abc:before { content: 'ABC'; }
|
|
pre.src-coq:before { content: 'Coq'; }
|
|
pre.src-groovy:before { content: 'Groovy'; }
|
|
/* additional language identifiers from org-babel-shell-names in
|
|
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
|
the execution function name together. */
|
|
pre.src-bash:before { content: 'bash'; }
|
|
pre.src-csh:before { content: 'csh'; }
|
|
pre.src-ash:before { content: 'ash'; }
|
|
pre.src-dash:before { content: 'dash'; }
|
|
pre.src-ksh:before { content: 'ksh'; }
|
|
pre.src-mksh:before { content: 'mksh'; }
|
|
pre.src-posh:before { content: 'posh'; }
|
|
/* Additional Emacs modes also supported by the LaTeX listings package */
|
|
pre.src-ada:before { content: 'Ada'; }
|
|
pre.src-asm:before { content: 'Assembler'; }
|
|
pre.src-caml:before { content: 'Caml'; }
|
|
pre.src-delphi:before { content: 'Delphi'; }
|
|
pre.src-html:before { content: 'HTML'; }
|
|
pre.src-idl:before { content: 'IDL'; }
|
|
pre.src-mercury:before { content: 'Mercury'; }
|
|
pre.src-metapost:before { content: 'MetaPost'; }
|
|
pre.src-modula-2:before { content: 'Modula-2'; }
|
|
pre.src-pascal:before { content: 'Pascal'; }
|
|
pre.src-ps:before { content: 'PostScript'; }
|
|
pre.src-prolog:before { content: 'Prolog'; }
|
|
pre.src-simula:before { content: 'Simula'; }
|
|
pre.src-tcl:before { content: 'tcl'; }
|
|
pre.src-tex:before { content: 'TeX'; }
|
|
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
|
pre.src-verilog:before { content: 'Verilog'; }
|
|
pre.src-vhdl:before { content: 'VHDL'; }
|
|
pre.src-xml:before { content: 'XML'; }
|
|
pre.src-nxml:before { content: 'XML'; }
|
|
/* add a generic configuration mode; LaTeX export needs an additional
|
|
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
|
pre.src-conf:before { content: 'Configuration File'; }
|
|
|
|
table { border-collapse:collapse; }
|
|
caption.t-above { caption-side: top; }
|
|
caption.t-bottom { caption-side: bottom; }
|
|
td, th { vertical-align:top; }
|
|
th.org-right { text-align: center; }
|
|
th.org-left { text-align: center; }
|
|
th.org-center { text-align: center; }
|
|
td.org-right { text-align: right; }
|
|
td.org-left { text-align: left; }
|
|
td.org-center { text-align: center; }
|
|
dt { font-weight: bold; }
|
|
.footpara { display: inline; }
|
|
.footdef { margin-bottom: 1em; }
|
|
.figure { padding: 1em; }
|
|
.figure p { text-align: center; }
|
|
.equation-container {
|
|
display: table;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
.equation {
|
|
vertical-align: middle;
|
|
}
|
|
.equation-label {
|
|
display: table-cell;
|
|
text-align: right;
|
|
vertical-align: middle;
|
|
}
|
|
.inlinetask {
|
|
padding: 10px;
|
|
border: 2px solid gray;
|
|
margin: 10px;
|
|
background: #ffffcc;
|
|
}
|
|
#org-div-home-and-up
|
|
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
|
textarea { overflow-x: auto; }
|
|
.linenr { font-size: smaller }
|
|
.code-highlighted { background-color: #ffff00; }
|
|
.org-info-js_info-navigation { border-style: none; }
|
|
#org-info-js_console-label
|
|
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
|
.org-info-js_search-highlight
|
|
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
|
.org-svg { width: 90%; }
|
|
</style>
|
|
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
|
</head>
|
|
<body>
|
|
<div id="org-div-home-and-up">
|
|
<a accesskey="h" href="./../"> UP </a>
|
|
|
|
|
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
|
</div><div id="content" class="content">
|
|
<h1 class="title">Editor Cheatsheet</h1>
|
|
<div id="table-of-contents" role="doc-toc">
|
|
<h2>Table of Contents</h2>
|
|
<div id="text-table-of-contents" role="doc-toc">
|
|
<ul>
|
|
<li><a href="#org0995471">1. VIM</a>
|
|
<ul>
|
|
<li><a href="#org320966a">1.1. deletion</a></li>
|
|
<li><a href="#orgd0ca748">1.2. edit</a></li>
|
|
<li><a href="#orgdacede1">1.3. movement</a></li>
|
|
<li><a href="#org8730850">1.4. visual</a></li>
|
|
<li><a href="#orgde3ba38">1.5. file/split</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org9fa8cba">2. EMACS</a>
|
|
<ul>
|
|
<li><a href="#orgf8f6959">2.1. org-mode</a></li>
|
|
<li><a href="#orgb2dafde">2.2. normal</a></li>
|
|
<li><a href="#orgdf6017f">2.3. dired</a></li>
|
|
<li><a href="#orga199e41">2.4. eww/elpher (essensial)</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#orga913e68">3. Git</a></li>
|
|
<li><a href="#org5827cf6">4. Fish</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="outline-container-org0995471" class="outline-2">
|
|
<h2 id="org0995471"><span class="section-number-2">1.</span> VIM</h2>
|
|
<div class="outline-text-2" id="text-1">
|
|
</div>
|
|
<div id="outline-container-org320966a" class="outline-3">
|
|
<h3 id="org320966a"><span class="section-number-3">1.1.</span> deletion</h3>
|
|
<div class="outline-text-3" id="text-1-1">
|
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
|
|
|
|
<colgroup>
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="org-left">key</th>
|
|
<th scope="col" class="org-left">usage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">D</td>
|
|
<td class="org-left">delete to end of line</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgd0ca748" class="outline-3">
|
|
<h3 id="orgd0ca748"><span class="section-number-3">1.2.</span> edit</h3>
|
|
<div class="outline-text-3" id="text-1-2">
|
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
|
|
|
|
<colgroup>
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="org-left">key</th>
|
|
<th scope="col" class="org-left">usage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">u/C-r</td>
|
|
<td class="org-left">撤销/重做</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">c i {</td>
|
|
<td class="org-left">change inside {}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">"{register}y/p</td>
|
|
<td class="org-left">向/从寄存器拷贝</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgdacede1" class="outline-3">
|
|
<h3 id="orgdacede1"><span class="section-number-3">1.3.</span> movement</h3>
|
|
<div class="outline-text-3" id="text-1-3">
|
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
|
|
|
|
<colgroup>
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="org-left">key</th>
|
|
<th scope="col" class="org-left">usage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">w/e</td>
|
|
<td class="org-left">下一个单词/单词尾</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">b</td>
|
|
<td class="org-left">单词头</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">H/M/L</td>
|
|
<td class="org-left">当前页面可见顶部/中间/底部</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">C-u(f)/d</td>
|
|
<td class="org-left">上/下翻页</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">%</td>
|
|
<td class="org-left">到对应括号</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">{}</td>
|
|
<td class="org-left">段落跳转</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">g ;</td>
|
|
<td class="org-left">goto last change</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">g */#</td>
|
|
<td class="org-left">正/反查找光标下的词</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">g d/D</td>
|
|
<td class="org-left">跳转到本地/全局定义</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org8730850" class="outline-3">
|
|
<h3 id="org8730850"><span class="section-number-3">1.4.</span> visual</h3>
|
|
<div class="outline-text-3" id="text-1-4">
|
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
|
|
|
|
<colgroup>
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="org-left">key</th>
|
|
<th scope="col" class="org-left">usage</th>
|
|
<th scope="col" class="org-left">next</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">C-v</td>
|
|
<td class="org-left">矩形区域选择</td>
|
|
<td class="org-left">S-i 插入, esc 批量执行</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="outline-container-orgde3ba38" class="outline-3">
|
|
<h3 id="orgde3ba38"><span class="section-number-3">1.5.</span> file/split</h3>
|
|
<div class="outline-text-3" id="text-1-5">
|
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
|
|
|
|
<colgroup>
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="org-left">key</th>
|
|
<th scope="col" class="org-left">usage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">:n/:N</td>
|
|
<td class="org-left">文件之间切换</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">:b</td>
|
|
<td class="org-left">切换到文件</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">C-w h/j/k/l</td>
|
|
<td class="org-left">切换分屏窗口</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">ZZ</td>
|
|
<td class="org-left">:wq</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div id="outline-container-org9fa8cba" class="outline-2">
|
|
<h2 id="org9fa8cba"><span class="section-number-2">2.</span> EMACS</h2>
|
|
<div class="outline-text-2" id="text-2">
|
|
</div>
|
|
<div id="outline-container-orgf8f6959" class="outline-3">
|
|
<h3 id="orgf8f6959"><span class="section-number-3">2.1.</span> org-mode</h3>
|
|
<div class="outline-text-3" id="text-2-1">
|
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
|
|
|
|
<colgroup>
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="org-left">key</th>
|
|
<th scope="col" class="org-left">usage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">C-c |</td>
|
|
<td class="org-left">创建表格</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">C-c C-e</td>
|
|
<td class="org-left">导出 HTML</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">C-c C-x C-v</td>
|
|
<td class="org-left">toggle render images</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">C-c C-l</td>
|
|
<td class="org-left">编辑链接</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgb2dafde" class="outline-3">
|
|
<h3 id="orgb2dafde"><span class="section-number-3">2.2.</span> normal</h3>
|
|
<div class="outline-text-3" id="text-2-2">
|
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
|
|
|
|
<colgroup>
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="org-left">key</th>
|
|
<th scope="col" class="org-left">usage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">M-%</td>
|
|
<td class="org-left">替换</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">M-;</td>
|
|
<td class="org-left">区域切换注释</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">C-x C-;</td>
|
|
<td class="org-left">行切换注释</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">C-y</td>
|
|
<td class="org-left">paste to minibuffer</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">M-&/!</td>
|
|
<td class="org-left">async/shell command</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgdf6017f" class="outline-3">
|
|
<h3 id="orgdf6017f"><span class="section-number-3">2.3.</span> dired</h3>
|
|
<div class="outline-text-3" id="text-2-3">
|
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
|
|
|
|
<colgroup>
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="org-left">key</th>
|
|
<th scope="col" class="org-left">usage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">R</td>
|
|
<td class="org-left">rename</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orga199e41" class="outline-3">
|
|
<h3 id="orga199e41"><span class="section-number-3">2.4.</span> eww/elpher (essensial)</h3>
|
|
<div class="outline-text-3" id="text-2-4">
|
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
|
|
|
|
<colgroup>
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="org-left">key</th>
|
|
<th scope="col" class="org-left">usage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">TAB</td>
|
|
<td class="org-left">shr-next-link/elpher-next-link</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">d</td>
|
|
<td class="org-left">eww-download/elpher-download</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">g</td>
|
|
<td class="org-left">eww-reload/elpher-go</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">G</td>
|
|
<td class="org-left">eww</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">l</td>
|
|
<td class="org-left">eww-back-url</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">ˆ</td>
|
|
<td class="org-left">elpher-back-url</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">&</td>
|
|
<td class="org-left">eww-browse-with-external-browser</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">w</td>
|
|
<td class="org-left">eww-copy-page-url</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">v</td>
|
|
<td class="org-left">eww-view-page-source</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">.</td>
|
|
<td class="org-left">elpher-view-raw</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orga913e68" class="outline-2">
|
|
<h2 id="orga913e68"><span class="section-number-2">3.</span> Git</h2>
|
|
<div class="outline-text-2" id="text-3">
|
|
<p>
|
|
Git 能离线使用只是个传说, 你仍然需要联网搜索该用哪个命令传什么参数<br />
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-shell">git log --stat | perl -ne <span style="font-style: italic;">'END { print $c } $c += $1 if /(\d+) insertions/;'</span>
|
|
git log --pretty=tformat: --numstat | awk <span style="font-style: italic;">'{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }'</span>
|
|
git log --color --graph --decorate -M --pretty=oneline --abbrev-commit -M
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org5827cf6" class="outline-2">
|
|
<h2 id="org5827cf6"><span class="section-number-2">4.</span> Fish</h2>
|
|
<div class="outline-text-2" id="text-4">
|
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
|
|
|
|
<colgroup>
|
|
<col class="org-left" />
|
|
|
|
<col class="org-left" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="org-left">key</th>
|
|
<th scope="col" class="org-left">usage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="org-left">M-Left/Right</td>
|
|
<td class="org-left">jump world, or prevd/nextd</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">M-s</td>
|
|
<td class="org-left">sudo the last command</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="org-left">M-w</td>
|
|
<td class="org-left">what is this</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="postamble" class="status">
|
|
<p class="date">Date: 2022-06-13 一 00:00</p>
|
|
<p class="author">Author: dongdigua</p>
|
|
<p class="date">Created: 2022-09-21 三 13:54</p>
|
|
</div>
|
|
</body>
|
|
</html>
|