Boot up Tasks: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
mNo edit summary
 
(24 intermediate revisions by the same user not shown)
Line 15: Line 15:


訂閱網頁更新的通知 (針對沒有提供[[RSS]]的網站)
訂閱網頁更新的通知 (針對沒有提供[[RSS]]的網站)
* [http://www.watchthatpage.com/ WatchThatPage - Monitor web pages extract new information] (last visited: April 12, 2006)
* * {{Gd}} [https://chromewebstore.google.com/detail/distill-web-monitor/inlikjemeeknofckkjolnjbpehgadgge Distill Web Monitor] for {{Chrome}} or {{Edge}}
* [http://libraryviews.blogsome.com/2006/03/12/280/ Library Views 圖書館觀點 :: 替網頁建立 RSS feed :: March :: 2006] 2006-03 (last visited: April 28, 2006)
* [http://libraryviews.blogsome.com/2006/03/12/280/ Library Views 圖書館觀點 :: 替網頁建立 RSS feed :: March :: 2006] 2006-03 (last visited: April 28, 2006)
* [http://pageupdatechecker.mozdev.org/ Page Update Checker] ([http://pbpuc.pbwiki.com/Update%20Checkers user-contributed Checkers]) for {{Fx}} (last visited: July 11, 2006)


More on [[Monitor webpage content update]]


== 自動執行程式 ==
== 自動執行程式 ==
Line 42: Line 42:
* [[Auto-completion in Notepad plus]]([[Win32OSS|freeware]]): 按下自訂的快速鍵,啟用常用字詞的下拉式清單。
* [[Auto-completion in Notepad plus]]([[Win32OSS|freeware]]): 按下自訂的快速鍵,啟用常用字詞的下拉式清單。
* 快速輸入文字的秘訣: 預期輸入「程式碼」,但是輸入法提供的自動選字不是「程式碼」,可以改成輸入「程式號碼」再刪除「號」字,減少選字的時間。
* 快速輸入文字的秘訣: 預期輸入「程式碼」,但是輸入法提供的自動選字不是「程式碼」,可以改成輸入「程式號碼」再刪除「號」字,減少選字的時間。
* {{Mac}} [https://support.apple.com/zh-tw/guide/mac-help/mh35735/mac 在 Mac 上取代文件中的文字和標點符號 - Apple 支援 (台灣)]
'''使用 macOS 「文字替代」'''
目的節省輸入「continue」的時間,操作步驟:
# 點選左上角的蘋果選單(),選擇「系統設定」。
# 在左邊的側邊欄中選擇「鍵盤」。
# 點選「文字替代」。
# 點擊「新增」按鈕(+),在「輸入碼」欄位輸入快捷文字(例如 ctn),在「取代內容」欄位輸入完整文字(例如 continue)。
# 點選「完成」儲存設定。


=== 自動填表 (網站註冊填表時,自動填寫基本個人資訊) ===
=== 自動填表 (網站註冊填表時,自動填寫基本個人資訊) ===
Line 53: Line 65:
=== 選取文字後,自動複製至剪貼簿(Clipboard Tool) ===
=== 選取文字後,自動複製至剪貼簿(Clipboard Tool) ===


* [https://espanso.org/ Espanso - A Privacy-first, Cross-platform Text Expander] for {{Win}}, {{Linux}} & {{Mac}}
* [https://www.3dclipboard.com/download 3D Clipboard] for {{Win}} 教學: [https://www.playpcesor.com/2013/05/3d-clipboard-windows.html 3D Clipboard 免費 Windows 剪貼簿軟體輕鬆複製貼上] {{access | date=2018-10-17}}
* [https://www.3dclipboard.com/download 3D Clipboard] for {{Win}} 教學: [https://www.playpcesor.com/2013/05/3d-clipboard-windows.html 3D Clipboard 免費 Windows 剪貼簿軟體輕鬆複製貼上] {{access | date=2018-10-17}}
* [http://www.joejoesoft.com/cms/showpage.php?cid=97 ArsClip] 教學: [http://www.techbang.com/posts/1231-arsclip-super-photo-scrapbook ArsClip:超強圖文剪貼簿 | T客邦 - 我只推薦好東西]
* [http://www.joejoesoft.com/cms/showpage.php?cid=97 ArsClip] 教學: [http://www.techbang.com/posts/1231-arsclip-super-photo-scrapbook ArsClip:超強圖文剪貼簿 | T客邦 - 我只推薦好東西]
* [http://autocopy.mozdev.org/ AutoCopy] for {{Fx}} - "Select text on any web page and it will be automatically copied to the clipboard. It works in much the same way as does Trillian or mIrc." quoted from official website.
* [http://autocopy.mozdev.org/ AutoCopy] for {{Fx}} - "Select text on any web page and it will be automatically copied to the clipboard. It works in much the same way as does Trillian or mIrc." quoted from official website.
* 其他剪貼簿增強工具: [https://www.google.com.tw/search?num=100&q=site:www.slime.com.tw+%22%E5%89%AA%E8%B2%BC%E7%B0%BF%E5%A2%9E%E5%BC%B7%22 史萊姆的第一個家] | [http://reg.softking.com.tw/freeware/review.asp?fid1=1&fid2=247 軟體王] 軟體目錄
* 其他剪貼簿增強工具: [https://www.google.com.tw/search?num=100&q=site:www.slime.com.tw+%22%E5%89%AA%E8%B2%BC%E7%B0%BF%E5%A2%9E%E5%BC%B7%22 史萊姆的第一個家] | [http://reg.softking.com.tw/freeware/review.asp?fid1=1&fid2=247 軟體王] 軟體目錄
* ''$'' [https://www.alfredapp.com/extras/snippets/ Snippets - Alfred] for {{Mac}}


=== 節省滑鼠滑曳的「里程數」 ===
=== 節省滑鼠滑曳的「里程數」 ===
Line 73: Line 87:
* [http://www.thewindowsclub.com/start-my-day-utility-automates-daily-windows-tasks Automate daily Windows tasks with Start My Day Utility]  教學: [http://playpcesor.blogspot.com/2010/08/start-my-day.html Start My Day 2.0 排程每日電腦工作,單鍵自動打點作業環境 | 電腦玩物]
* [http://www.thewindowsclub.com/start-my-day-utility-automates-daily-windows-tasks Automate daily Windows tasks with Start My Day Utility]  教學: [http://playpcesor.blogspot.com/2010/08/start-my-day.html Start My Day 2.0 排程每日電腦工作,單鍵自動打點作業環境 | 電腦玩物]
* [http://www.computerhope.com/starthlp.htm MS-DOS start command help]
* [http://www.computerhope.com/starthlp.htm MS-DOS start command help]
* 執行多行 Linux [[Alternative Linux commands |  BASH commands]] 或 Windows DOS commands 增加額外一行的換行符號,複製貼上後即可執行多行 command
* 執行多行 Linux [[Linux commands |  BASH commands]] 或 Windows DOS commands 增加額外一行的換行符號,複製貼上後即可執行多行 command
<pre>
<pre>
單行命令 1
單行命令 1
Line 110: Line 124:


== 程式開發者 ==
== 程式開發者 ==
=== 命令列操作 ===
=== 終端機命令列參數自動完成 ===
將命令列文字中需要經常修改的部分,放到後面
* [https://fig.io/ Fig] ([https://github.com/withfig/autocomplete github], [https://www.ycombinator.com/companies/fig ycombinator])
* 例如 {{kbd | key=<nowiki>grep $KEYWORD file_name</nowiki>}} 其中 {{kbd | key=<nowiki>$KEYWORD</nowiki>}} 需要經常修改,建議改成句子後面 {{kbd | key=<nowiki>cat file_name | grep $KEYWORD</nowiki>}}。下次輸入命令列文字時,就可以減少滑鼠游標移動的次數。
 
=== 終端機命令列操作 ===
 
將終端機命令列指令文字中需要經常修改的部分,放到後面
* 例如 {{kbd | key=<nowiki>grep $KEYWORD file_name</nowiki>}} 其中 {{kbd | key=<nowiki>$KEYWORD</nowiki>}} 變數需要經常修改,建議改成句子後面 {{kbd | key=<nowiki>cat file_name | grep $KEYWORD</nowiki>}}。下次輸入命令列文字時,就可以減少滑鼠游標移動的次數。


{{Linux}} 作業系統指令輸入符號 {{kbd | key=<nowiki>!$</nowiki>}} 取代上一指令的最後參數
{{Linux}} 作業系統指令輸入符號 {{kbd | key=<nowiki>!$</nowiki>}} 取代上一指令的最後參數
* 說明:[https://unix.stackexchange.com/questions/88642/what-does-mean bash - What does !$ mean? - Unix & Linux Stack Exchange]
* 說明:[https://unix.stackexchange.com/questions/88642/what-does-mean bash - What does !$ mean? - Unix & Linux Stack Exchange]
=== 終端機命令列縮寫指令 + GUI 視窗操作 ===
Example 1: Opening a Text File with [https://en.wikipedia.org/wiki/Gedit Gedit] on Linux via Terminal
1. First, ensure gedit is installed on your system
* If needed, install gedit using your distribution's package manager. On Debian
* Type the following commands:
<pre>
sudo apt update && sudo apt upgrade
sudo apt install gedit
</pre>
2. Launch your terminal
3. Type the following command:
<pre>
gedit /path/to/text-file
</pre>
Example 2: To open the text file with Sublime for {{Mac}} from console
設定終端機命令列縮寫指令: key-in {{kbd | key=<nowiki>subl <filename></nowiki>}} to open the file with Sublime
# Key-in {{kbd | key=<nowiki>vi ~/.zshrc</nowiki>}}
# Press {{kbd | key=<nowiki>i</nowiki>}} to switch the insert mode
# Add the following line  {{kbd | key=<nowiki>alias subl='open -a "Sublime Text"'</nowiki>}}
# Press {{kbd | key=<nowiki>:</nowiki>}}
# Press {{kbd | key=<nowiki>wq</nowiki>}} to save the {{kbd | key=<nowiki>~/.zshrc</nowiki>}}  file and quite the vi window
返回終端機命令列
# Key-in {{kbd | key=<nowiki>subl /path/to/file</nowiki>}} 就可以使用 Sublime 編輯檔案


Example 3: To open the text file with Notepad++ for {{Win}} from console
# Install [https://notepad-plus-plus.org/downloads/ Notepad++]
# Key-in {{kbd | key=<nowiki>start notepad++ <filename></nowiki>}} to open the file with Notepad++


=== 離線版的軟體開發說明文件 ===
=== 離線版的軟體開發說明文件 ===
Line 124: Line 176:
=== 從當下瀏覽的檔案視窗的資料夾路徑,快速開啟命令列視窗 ===
=== 從當下瀏覽的檔案視窗的資料夾路徑,快速開啟命令列視窗 ===
* [[Open command window here]]
* [[Open command window here]]
* On {{Win}} [https://conemu.github.io/ ConEmu] --> Setup [https://conemu.github.io/en/Tasks.html Tasks] --> Define the command e.g. Input {{kbd | key=<nowiki>-new_console:d:C:\path\to\beach cmd.exe</nowiki>}} to open the folder {{kbd | key=<nowiki>C:\path\to\beach</nowiki>}} quickly.
 
* [https://conemu.github.io/ ConEmu] On {{Win}}
*# Setup [https://conemu.github.io/en/Tasks.html Tasks]  
*# Define the command e.g. Input {{kbd | key=<nowiki>-new_console:d:C:\path\to\beach cmd.exe</nowiki>}} to open the folder {{kbd | key=<nowiki>C:\path\to\beach</nowiki>}} quickly.
 
* [https://www.cygwin.com/ Cygwin] On {{Win}} 檔案總管選定某個資料夾,點選 「傳送到」 -> 「Cygwin」,就可以開啟 Cygwin 視窗,並且自動切換到選定的資料夾<ref>[https://superuser.com/questions/115587/how-do-i-create-a-shortcut-that-opens-cygwin-bash-shell-on-a-directory-of-my-cho How do I create a shortcut that opens Cygwin bash shell on a directory of my choosing (UNC especially)? - Super User]</ref>
*# Open the explorer on {{Win}} and enter the {{kbd | key=<nowiki>shell:sento</nowiki>}} to open the folder of shortcuts
*# Add a new shortcut {{kbd | key=<nowiki>C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico  C:\cygwin64\bin\bash.exe  -l -c "cd \"$0\" ; exec bash"</nowiki>}} it the Cygwin was installed on C drive
 
* [https://www.cygwin.com/ Cygwin] 在 {{Win}} 中,於檔案總管中選取某個資料夾後,點選「傳送到」->「Cygwin」,即可開啟 Cygwin 視窗,並自動切換至選定的資料夾。<ref>[https://superuser.com/questions/115587/how-do-i-create-a-shortcut-that-opens-cygwin-bash-shell-on-a-directory-of-my-cho How do I create a shortcut that opens Cygwin bash shell on a directory of my choosing (UNC especially)? - Super User]</ref>
*# 在 {{Win}} 中開啟檔案總管,輸入 {{kbd | key=<nowiki>shell:sento</nowiki>}} 以打開捷徑資料夾
*# 新增一個捷徑 {{kbd | key=<nowiki>C:\cygwin64\bin\mintty.exe -o Locale=UTF-8 -i /Cygwin-Terminal.ico C:\cygwin64\bin\bash.exe -l -c "cd "$0" ; exec bash"</nowiki>}} (假設 Cygwin 安裝在 C 槽)
 
已知問題:
* 捷徑需要包含「-o Locale=UTF-8」選項,否則顯示的中文檔案內容 (e.g. cat filename.csv),會變成亂碼。
* 若資料夾名稱包含中文字,捷徑可能無法正常運作。
 
* [https://iterm2.com/ iTerm2] On {{Mac}} [https://stackoverflow.com/questions/50370854/is-it-possibile-to-open-iterm-in-current-finder-position macos - is it possibile to open iTerm in current Finder position - Stack Overflow]
* [https://iterm2.com/ iTerm2] On {{Mac}} [https://stackoverflow.com/questions/50370854/is-it-possibile-to-open-iterm-in-current-finder-position macos - is it possibile to open iTerm in current Finder position - Stack Overflow]


Line 134: Line 202:
* 「傳送到」[https://www.howtogeek.com/howto/windows-vista/customize-the-windows-vista-send-to-menu/ Customize the Send To Menu in Windows 10, 8, 7, or Vista]
* 「傳送到」[https://www.howtogeek.com/howto/windows-vista/customize-the-windows-vista-send-to-menu/ Customize the Send To Menu in Windows 10, 8, 7, or Vista]


檔案總管選定某個資料夾,點選 「傳送到」 -> 「Cygwin」,就可以開啟 Cygwin 視窗,並且自動切換到選定的資料夾
# Open the explorer on {{Win}} and enter the {{kbd | key=shell:sendto}} to open the folder of shortcuts
# Add a new shortcut {{kbd | key=<nowiki>C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico  C:\cygwin64\bin\bash.exe  -l -c "cd \"$0\" ; exec bash"</nowiki>}} it the Cygwin was installed on C drive


=== 快捷文字與自動替換文字 ===  
=== 快捷文字與自動替換文字 ===  
* [https://www.sublimetext.com/ Sublime Text] ''$'': [https://github.com/sergeche/emmet-sublime sergeche/emmet-sublime: Emmet for Sublime Text]
* [https://www.sublimetext.com/ Sublime Text] ''$'': [https://github.com/sergeche/emmet-sublime sergeche/emmet-sublime: Emmet for Sublime Text]
* Sublime Text ''$'': [http://docs.sublimetext.info/en/latest/extensibility/snippets.html Snippets]、[http://docs.sublimetext.info/en/latest/reference/completions.html Completions Files] + [https://www.granneman.com/webdev/editors/sublime-text/top-features-of-sublime-text/auto-completion-in-sublime-text Auto-Completion in Sublime Text | Scott Granneman]。教學: [https://www.minwt.com/webdesign-dev/html/17946.html Sublime Text教學 – 自訂常用的程式片段,只需輸入短碼立即產生完整原始碼 | 梅問題.教學網]
* Sublime Text ''$'': [http://docs.sublimetext.info/en/latest/extensibility/snippets.html Snippets]、[http://docs.sublimetext.info/en/latest/reference/completions.html Completions Files] + [https://www.granneman.com/webdev/editors/sublime-text/top-features-of-sublime-text/auto-completion-in-sublime-text Auto-Completion in Sublime Text | Scott Granneman]。教學: [https://www.minwt.com/webdesign-dev/html/17946.html Sublime Text教學 – 自訂常用的程式片段,只需輸入短碼立即產生完整原始碼 | 梅問題.教學網]
* [https://www.jetbrains.com/phpstorm/ PhpStorm] ''$'': [https://www.jetbrains.com/help/phpstorm/tutorial-creating-live-templates.html Tutorial: Creating Live templates - Help | PhpStorm]
* [https://www.jetbrains.com/phpstorm/ PhpStorm] ''$'': [https://www.jetbrains.com/help/phpstorm/tutorial-creating-live-templates.html Tutorial: Creating Live templates - Help | PhpStorm] 輸入縮寫 (abbreviation) 立即產生完整程式碼 (template text)
* [https://blog.planetoid.info/2021/04/use-gpt3-generate-css-syntax.html GPT-3 文本產生模型,快速產生 CSS 語法]


== 快速鍵(AccessKey, keyboard shortcuts, 快捷鍵) ==
== 快速鍵(AccessKey, keyboard shortcuts, 快捷鍵) ==
Line 236: Line 302:
* 設好常用的資料夾位置,使日後能快速指定開啟/儲存對話方塊中的目錄。ex: [http://dm2.sourceforge.net/ DM2]([http://goston.blogspot.com/2006/04/dm2.html Goston的介紹]), [http://www.hyperionics.com/files/index.asp FileBox eXtender]([http://www.goston.net/2007/03/09/762/ 介紹]), [http://www.nesoft.org/foldercache.shtml Folder Cache], [http://www.protonfx.com/dirkey/ Dirkey NTXP]
* 設好常用的資料夾位置,使日後能快速指定開啟/儲存對話方塊中的目錄。ex: [http://dm2.sourceforge.net/ DM2]([http://goston.blogspot.com/2006/04/dm2.html Goston的介紹]), [http://www.hyperionics.com/files/index.asp FileBox eXtender]([http://www.goston.net/2007/03/09/762/ 介紹]), [http://www.nesoft.org/foldercache.shtml Folder Cache], [http://www.protonfx.com/dirkey/ Dirkey NTXP]


=== 一次建立多個資料夾 ===
* [https://errerrors.blogspot.com/2023/01/how-to-create-a-folder-structure-for-project-management.html 專案管理:快速建立專案的多個資料夾] on {{Win}}, {{Mac}} or {{Linux}}


=== 右鍵選單 ===
=== 右鍵選單 ===
Line 286: Line 354:


== 相關文章 ==
== 相關文章 ==
references
<references/>


* c9s (2015). [https://medium.com/@c9s/%E4%B8%80%E4%BA%9B%E5%BF%AB%E9%80%9F%E9%80%B2%E5%85%A5%E5%B7%A5%E4%BD%9C%E7%8B%80%E6%B3%81%E7%9A%84%E6%96%B9%E6%B3%95-b66813ce3561#.7byq8154h 快速進入工作狀況的十個要點 — Medium] {{access | date = 2015-12-27}}
* c9s (2015). [https://medium.com/@c9s/%E4%B8%80%E4%BA%9B%E5%BF%AB%E9%80%9F%E9%80%B2%E5%85%A5%E5%B7%A5%E4%BD%9C%E7%8B%80%E6%B3%81%E7%9A%84%E6%96%B9%E6%B3%95-b66813ce3561#.7byq8154h 快速進入工作狀況的十個要點 — Medium] {{access | date = 2015-12-27}}
Line 294: Line 360:
* [http://unix.stackexchange.com/questions/9123/is-there-a-one-liner-that-allows-me-to-create-a-directory-and-move-into-it-at-th bash - Is there a one-liner that allows me to create a directory and move into it at the same time? - Unix & Linux Stack Exchange]
* [http://unix.stackexchange.com/questions/9123/is-there-a-one-liner-that-allows-me-to-create-a-directory-and-move-into-it-at-th bash - Is there a one-liner that allows me to create a directory and move into it at the same time? - Unix & Linux Stack Exchange]


[[Category:Software]] [[Category:PKM]] [[Category:Mac]]
== References ==
 
<references/>
 
 
[[Category: Software]]  
[[Category: PKM]]  
[[Category: Mac]]
[[Category: Developer environment]]

Latest revision as of 10:53, 30 April 2026

增進電腦或網站的使用效率,或將例行性工作任務簡化,增加工作效率

如果是要改善電腦效能,請看 System Check

自動檢查、追蹤[edit]

自動檢查信件(POP3)

訂閱自訂關鍵字的新聞/網頁/群組討論等訊息

訂閱網頁更新的通知 (針對沒有提供RSS的網站)

More on Monitor webpage content update

自動執行程式[edit]

開機時執行程式

排程指定時間執行程式

電腦操作行為重構(refactoring)、巨集與批次處理[edit]

批次處理/巨集(macro)[edit]

快捷文字與自動替換文字[edit]


使用 macOS 「文字替代」

目的節省輸入「continue」的時間,操作步驟:

  1. 點選左上角的蘋果選單(),選擇「系統設定」。
  2. 在左邊的側邊欄中選擇「鍵盤」。
  3. 點選「文字替代」。
  4. 點擊「新增」按鈕(+),在「輸入碼」欄位輸入快捷文字(例如 ctn),在「取代內容」欄位輸入完整文字(例如 continue)。
  5. 點選「完成」儲存設定。

自動填表 (網站註冊填表時,自動填寫基本個人資訊)[edit]


選取文字後,自動複製至剪貼簿(Clipboard Tool)[edit]

節省滑鼠滑曳的「里程數」[edit]

  • Windows XP控制台: 滑鼠內容 -> 指標設定: 啟用「在對話方塊中自動將滑鼠指標移到預設按鈕」
Logitech 滑鼠新版驅動程式(MouseWare)則稱之為「智慧型移動」


讓程式啟動更快速 / 一次執行多個程式[edit]

讓程式啟動更快速

一次執行多個程式

單行命令 1
單行命令 2
換行符號


建立常用執行程式的別名 alias

網頁瀏覽[edit]

自動化軟體工具[edit]

縮短經常輸入的文字或資料的取用時間[edit]

將經常輸入的文字,變成範本 Email

  • Good.gif 使用收信軟體(outlook express)的簽名檔,將經常輸入的文字,變成範本。在需要不同文字時,切換不同簽名檔 / 範本。 (Thanks! chiachi)
  • Gmail 的 Canned Responses[Last visited: 2011-11-14] 缺點會覆蓋原始信件內文

將經常取用的檔案或資料,加上強調的標記或者額外集中放在同一個資料夾

  • 經常取用的資料跟其他一般資料混在一起時,加上強調的標記或網底顏色,方便快速取用。如果是 Gmail 可以加上星號或標籤。
  • 如果檔案散落在不同信件的附檔,但需要快速取用。可以額外集中放在同一個資料夾,方便快速取用。

將經常使用的電話或分機號碼,另外做成單張紙張的常用通訊錄

  • 省去額外查找通訊錄的時間花費。

MS Word 文件校閱[edit]

  • 在 Word 中使用追蹤修訂 - Word
  • 如果需要將文件列印出來,因為使用追蹤修訂的文章不好閱讀,可以到文具店購買「箭頭便利貼」標示修改處
  • 選擇性製作文件修改的目錄清單,列出上次討論時的修改意見,與對應修改的頁碼

程式開發者[edit]

終端機命令列參數自動完成[edit]

終端機命令列操作[edit]

將終端機命令列指令文字中需要經常修改的部分,放到後面

  • 例如 grep $KEYWORD file_name 其中 $KEYWORD 變數需要經常修改,建議改成句子後面 cat file_name | grep $KEYWORD。下次輸入命令列文字時,就可以減少滑鼠游標移動的次數。

Linux   作業系統指令輸入符號 !$ 取代上一指令的最後參數

終端機命令列縮寫指令 + GUI 視窗操作[edit]

Example 1: Opening a Text File with Gedit on Linux via Terminal

1. First, ensure gedit is installed on your system

  • If needed, install gedit using your distribution's package manager. On Debian
  • Type the following commands:
sudo apt update && sudo apt upgrade
sudo apt install gedit

2. Launch your terminal

3. Type the following command:

gedit /path/to/text-file

Example 2: To open the text file with Sublime for macOS icon_os_mac.png from console

設定終端機命令列縮寫指令: key-in subl <filename> to open the file with Sublime

  1. Key-in vi ~/.zshrc
  2. Press i to switch the insert mode
  3. Add the following line alias subl='open -a "Sublime Text"'
  4. Press :
  5. Press wq to save the ~/.zshrc file and quite the vi window

返回終端機命令列

  1. Key-in subl /path/to/file 就可以使用 Sublime 編輯檔案


Example 3: To open the text file with Notepad++ for Win   from console

  1. Install Notepad++
  2. Key-in start notepad++ <filename> to open the file with Notepad++

離線版的軟體開發說明文件[edit]

從當下瀏覽的檔案視窗的資料夾路徑,快速開啟命令列視窗[edit]

  • ConEmu On Win  
    1. Setup Tasks
    2. Define the command e.g. Input -new_console:d:C:\path\to\beach cmd.exe to open the folder C:\path\to\beach quickly.
  • Cygwin On Win   檔案總管選定某個資料夾,點選 「傳送到」 -> 「Cygwin」,就可以開啟 Cygwin 視窗,並且自動切換到選定的資料夾[1]
    1. Open the explorer on Win   and enter the shell:sento to open the folder of shortcuts
    2. Add a new shortcut C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico C:\cygwin64\bin\bash.exe -l -c "cd \"$0\" ; exec bash" it the Cygwin was installed on C drive
  • CygwinWin   中,於檔案總管中選取某個資料夾後,點選「傳送到」->「Cygwin」,即可開啟 Cygwin 視窗,並自動切換至選定的資料夾。[2]
    1. Win   中開啟檔案總管,輸入 shell:sento 以打開捷徑資料夾
    2. 新增一個捷徑 C:\cygwin64\bin\mintty.exe -o Locale=UTF-8 -i /Cygwin-Terminal.ico C:\cygwin64\bin\bash.exe -l -c "cd "$0" ; exec bash" (假設 Cygwin 安裝在 C 槽)

已知問題:

  • 捷徑需要包含「-o Locale=UTF-8」選項,否則顯示的中文檔案內容 (e.g. cat filename.csv),會變成亂碼。
  • 若資料夾名稱包含中文字,捷徑可能無法正常運作。

Launch the editor from terminal[edit]

檔案操作/資料夾[edit]


快捷文字與自動替換文字[edit]

快速鍵(AccessKey, keyboard shortcuts, 快捷鍵)[edit]

Windows keyboard equivalents on Mac


一般[edit]

MS Windows 檔案總管 / 桌面

  • 回到目錄上一層: Backspace
  • 更改檔名: F2
  • 檔案或資料夾的詳細資訊: 選取檔案或資料夾,再按 Alt + Enter 快速鍵,可以快速查看檔案或資料夾的檔案大小等資訊
  • Tab 下一區塊; Shift + Tab 上一區塊
  • 選擇單筆: Ctrl
  • 選擇連續的多筆: shift

文字處理

  • Ctrl + 右箭頭: 跳至下一個字
  • Ctrl + 左箭頭: 跳至前一個字
  • 刪除滑鼠游標所在的那一行內容
    • Ctrl + k for GNU Nano Text Editor in Linux   [3]

相關資料: Keyboard shortcuts for text components

MS Office[edit]

  • Ctrl + U -> 文字加上底線(underly)
  • Ctrl + I -> 文字斜體(italic)

MS Word[edit]

MS Excel[edit]

  • Ctrl + 滑鼠左鍵 點選儲存格右下角,往下一個儲存格移動,數值自動加1
    • 如果儲存格格式是「G/通用格式」的數字,則須Ctrl按鍵
    • 如果儲存格格式是「文字」,則不須Ctrl按鍵
  • 從純文字檔例如「aaa, bbb, ccc」將逗號取代成Tab按鍵空白,再貼到Excel則自動分欄。也可從Excel複製資料,貼到Google Docs and Spreadsheets

MS PowerPoint[edit]

滑鼠左鍵選取圖案或文字方塊後

  • 滑鼠左鍵 + Ctrl + 拖曳圖案 = 複製圖案
  • 滑鼠左鍵 + Ctrl + Shift + 拖曳圖案 = 複製圖案 並 自動對齊原本的圖案

線條

  • 滑鼠左鍵 + Ctrl + 拖曳線條端點 = 以線條中心,等距離拉長。例如拖曳右方端點伸長5cm, 右方端點自動伸長5cm
  • 滑鼠左鍵 + Shift + 拖曳線條端點 = 維持線條所在高度,水平地拉長線條的長度,而不會有彎曲。

browser[edit]

其他[edit]

by software[edit]

  • MS Excel::
    1. 編輯資料: F2
    2. 強制換行: Alt + Enter

by function[edit]

  • Duplicate current line
    • Notepad++: Ctrl + d
    • Sublime: Ctrl + Shift + d

Modify the shortcut: Using Ctrl + d to Duplicate current line on Sublime.

  • Sublime Menu -> Preferences -> Key Bindings - User
  • Icon_exclaim.gif It will override the existing shortcuts: select word
[
	{ "keys": ["ctrl+d"], "command": "duplicate_line" },
]

檔案管理[edit]

檔名命名規則

  • 利用符號、數字、英文字母、中文字的先後順序排列的規則,將符號或數字作為常用或特殊檔案或資料夾名稱,方便存取。
  • 將時常變動的部分放在檔名後面,例如 file name 160324 需要時常更改最後的數字 160324,則將數字放在檔名後面,方便日後修改。

Email 附檔管理[edit]

當多封 Email 附檔導致版本過多,要找最新版本檔案很花時間時,可以考慮使用雲端硬碟,放置最新版本的檔案。

常用的資料夾[edit]

一次建立多個資料夾[edit]

右鍵選單[edit]

  • 「傳送到」 (捷徑位於 %HOMEPATH%\SendTo),傳送檔案至你指定的資料夾。
  • IE 右鍵選單自訂(regedit)
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt

網頁表單上傳檔案,可以快速選取檔案[edit]

  • 如果該網站網頁表單不允許拖曳檔案的上傳檔案的方式,將要上傳網站表單的檔案,固定放在同一個資料夾。節省切換目錄的時間。

檔案開啟[edit]

其他

在「捷徑」的分頁標籤,將「目標」改成(C:\Data 改成想要的目錄位置) (詳細說明請看MS Windows Explorer)
%SystemRoot%\explorer.exe/n,/e,C:\Data


多個文件同時開啟[edit]

  • Notepad++ Home v.6.2[4]:
    • 先逐一打開日後要同時開啟的多個文件。
    • 選單: 自訂 -> 使用者自訂 -> 切換到「其他」標籤,組群檔副檔名,手動輸入 session (或者其他你自訂的副檔名)
    • 選單: 檔案 -> 儲存本次檔案組群。檔名可設置為 group.session
    • 關閉所有檔案,Notepad++ 開啟 group.session 檔案,即可開啟同時多個文件。

同步瀏覽[edit]

  • Total Commander: enable synchronous directory change in both windows
  • FIleZilla 上方工具列選單位置: 檢視 --> 同步瀏覽

複製路徑[edit]

虛擬硬碟/虛擬磁碟工具[edit]

軟體懶人包[edit]

工作任務管理[edit]

相關文章[edit]

References[edit]