Skip to main content

Command Palette

Search for a command to run...

An Apple Hotkey a day

Published
2 min read

Update daily? Well, it's just a slogan.

Bash Hotkeys

  • control + A : move cursor to line start.

  • control + E : move cursor to line end.

  • control + U : clears the line content.

  • control + L : clears the screen content.

  • control + W : cut the word before cursor.

  • option + D : cut the word after cursor.

  • option + F : move the cursor forward one word.

  • option + B : move the cursor backward one word.

Note : In iTerm2, you have to set option work as '+Esc' in 'Preference → profile' for moveing cursor, otherwise it will send the special characters.


Page Up / 上一頁

Fn +

Page Down / 下一頁

Fn +

Home

Fn +

End

Fn +


Move cursor to end of line / 移動游標至行尾

command + or control + A(bash hotkey)

In most of the cases, the first one should do the job. But in some application which the first key-binding maps to something else, e.g. iTerm2, you have to use the bash hotkeys.

Move cursor to begin of line / 移動游標至行頭

command + or control + E(bash hotkey)

Select content from cursor to begin of line / 選取游標至行頭的內容

command + shift +

Select content from cursor to end of line / 選取游標至行尾的內容

command + shift +


Open file/application / 開啟檔案/程式

command + O or

command +


Hide/Show the dock from screen. / 顯示/隱藏下方 Dock

command + option + D or

control + F3


Cycle through windows in current application. / 在同一應用程式的不同視窗中循環切換

For example, if you open servel windows of Chrome Browser, this hotkey will focus on each window iterately.

舉例來說,假設你在 Chrome 瀏覽器中開了數個視窗,此熱鍵會在輪流將各個視窗設為目標視窗。

command + `

ps: ` Backtick, or grave accent, which is above Tab key.

`抑音符位置在Tab鍵的上方.


Turn cureent application to "Full screen mode" / 將目前的應用程式切換為"全螢幕模式" (Above Lion)

command + control + F


Search this word in Dictionary.app / 在字典中查詢目前單字 (Above Lion)

Select the word first, then press: command + control + D

ps: Might not work in some applications.

先圈選想查詢的單字,接著按下: command + control + D

ps: 在某些應用程式下無法使用


Input Accented Characters / 輸入帶有重音符號的字母 (Above Lion)

Hold the key for 1 sec.

ps: Might not work in some applications.

按住該字母一秒以上。

ps: 在某些應用程式下無法使用

More from this blog

聊聊 Elixir 中的 type

最近有幾位朋友分別來問 Elixir 的 type 的問題,想說中文世界好像沒有比較完整的東西,就把知道的東西整理出來。 (目前) Elixir 的 type 能做什麼? tl;dr: 最主要是文件,然後在某種程度下防止錯誤。 我覺得這應該是在研究 Elixir 的 type 時最需要知道的事情了。不像 Haskell 及 F# 這種以型別著稱的 ML 系語言,Elixir / Erlang 本質上是個動態語言,所有與型別有關的標註都會被編譯器忽略。而 Erlang 內建的型別檢查工具 dia...

Oct 18, 20222 min read

Steam 上的程式教學類遊戲

農曆年期間比較有空,玩了一些之前買的遊戲。這次特別試了幾個標榜讓不會寫程式的人學寫程式的遊戲。分享一下試玩的心得。 1. 7 Billion Humans 考慮到劇情的話我最喜歡的是 7 Billion Humans。它用拖拉語法的方式下指令,一開始還蠻好上手的,但是因為只有 goto 那樣的結構,而操作的時候又是一次對所有的 worker 下指令,所以常常要想一下執行後每個人運作的順序。但是介面有正體中文,以「想要體驗一下寫程式大概是怎麼一回事」來說還蠻適合的。 2. while Tru...

Feb 24, 20201 min read

Let's (re)start from here.

最近的時間大半都花在這上面了。 算算應該是第五次弄部落格系統。算一下扣除上古時期用現成的之外,每個系統平均各寫六篇文章,也都撐不過兩年。前幾個分別用了 Refinery CMS -> jekyll -> middleman -> jekyll。想來架系統的總時數應該超過寫文章的時間 XD 而這次用上了 Gatsby + tailwindcss,除了恢復一下 GraphQL 的手感之外,這次還挑戰了不套別人做的版型,自己把類似上一個部落格的 style 刻出來。想說來分享一下這些技術的感想: G...

Jan 11, 20201 min read

Mostly Functional

31 posts

/.(ex|jsx?|rb|hs|rs|py)/, A father, a bookworm, a pluviophile. Co-organizer of http://Elixir.tw. Learning Satir, coaching & mediation.