Skip to content

Commit 6ef9e93

Browse files
author
longendu
committed
...
1 parent 31a0d57 commit 6ef9e93

File tree

4 files changed

+64
-19
lines changed

4 files changed

+64
-19
lines changed

misc/content/2015/10/mac-tips/mac-tips.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Slug: mac-tips
55
Title: Tips on macOS
66
Category: OS
77
Tags: macOS, tips, Apple
8-
Modified: 2024-12-04 23:55:42
8+
Modified: 2025-11-27 01:19:00
99

1010
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
1111

@@ -25,22 +25,6 @@ Modified: 2024-12-04 23:55:42
2525
[How to configure a MacBook to hibernate when the lid is closed?](https://discussions.apple.com/thread/255421002?sortBy=rank)
2626
.
2727

28-
## Key Repeating
29-
30-
1. Run the following command in terminal and then **restart your Mac** to enable key repeating by pressing and holding.
31-
32-
:::bash
33-
defaults write -g ApplePressAndHoldEnabled -bool false
34-
35-
2. Run the following command in terminal and then **restart your Mac** to disable key repeating by presing and holding.
36-
37-
:::bash
38-
defaults write -g ApplePressAndHoldEnabled -bool true
39-
40-
For more details please refer to
41-
[How to Enable Key Repeating in macOS](https://www.howtogeek.com/267463/how-to-enable-key-repeating-in-macos/)
42-
.
43-
4428
## Allow SSH into Mac
4529

4630
[Enable Remote Login to Start SSH Server in Mac OS X](http://osxdaily.com/2011/09/30/remote-login-ssh-server-mac-os-x/)
@@ -105,6 +89,7 @@ https://support.apple.com/en-us/HT202351
10589

10690
## References
10791

92+
- [Tips on Keyboard in macOS]( https://www.legendu.net/misc/blog/tips-on-keyboard-in-macos )
10893
- [How to configure a MacBook to hibernate when the lid is closed?](https://discussions.apple.com/thread/255421002?sortBy=rank)
10994
- [Map Keys in macOS](https://www.legendu.net/en/blog/map-keys-in-macos)
11095
- [Install Python in macOS](https://www.legendu.net/en/blog/install-python-in-mac)

misc/content/2016/06/shortcuts-for-mac/shortcuts-for-mac.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,33 @@ Author: Ben Chuanlong Du
44
Slug: shortcuts-for-mac
55
Title: Shortcuts in macOS
66
Category: OS
7-
Tags: macOS, Apple, shortcuts, GUI
8-
Modified: 2020-05-22 16:10:02
7+
Tags: macOS, Apple, shortcuts, GUI, keybinding, customize, disable
8+
Modified: 2025-11-27 01:19:00
99

1010
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
1111

12+
## Customize Keybindings
13+
14+
You can customize keybindings by editing the file
15+
`~/Library/KeyBindings/DefaultKeyBinding.dict`
16+
.
17+
For example,
18+
to disable the system keybinding
19+
`Alt + e`
20+
and
21+
`Alt + .`
22+
(so that they can be used by other applications, e.g., the fish shell)
23+
,
24+
you can add the following content into the file.
25+
```
26+
{
27+
"~e" = "noAction:";
28+
"~." = "noAction:";
29+
}
30+
```
31+
32+
## List of Shortcuts
33+
1234
[Table of keyboard shortcuts](https://en.wikipedia.org/wiki/Windows_shortcuts)
1335
lists comparisons of shortcuts on Windows, macOS and Linux.
1436

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Status: published
2+
Date: 2025-11-27 01:05:39
3+
Modified: 2025-11-27 01:05:39
4+
Author: Benjamin Du
5+
Slug: enable-and-disable-key-repeating-in-macos
6+
Title: Enable and Disable Key Repeating in macOS
7+
Category: Computer Science
8+
Tags: Computer Science, programming, macOS, Apple, keyboard, key, repeating
9+
10+
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
11+
12+
1. Run the following command in terminal and then **restart your Mac** to enable key repeating by pressing and holding.
13+
14+
:::bash
15+
defaults write -g ApplePressAndHoldEnabled -bool false
16+
17+
2. Run the following command in terminal and then **restart your Mac** to disable key repeating by presing and holding.
18+
19+
:::bash
20+
defaults write -g ApplePressAndHoldEnabled -bool true
21+
22+
For more details please refer to
23+
[How to Enable Key Repeating in macOS](https://www.howtogeek.com/267463/how-to-enable-key-repeating-in-macos/)
24+
.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Status: published
2+
Date: 2025-11-27 01:02:52
3+
Modified: 2025-11-27 01:02:52
4+
Author: Benjamin Du
5+
Slug: tips-on-keyboard-in-macos
6+
Title: Tips on Keyboard in macOS
7+
Category: Computer Science
8+
Tags: Computer Science, programming, macOS, Apple, Mac, keyboard, keys, shortcuts
9+
10+
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
11+
12+
- [Enable and Disable Key Repeating in macOS]( https://www.legendu.net/misc/blog/enable-and-disable-key-repeating-in-macos )
13+
- [Map Keys in macOS]( https://www.legendu.net/en/blog/map-keys-in-macos )
14+
- [Shortcuts in macOS]( https://www.legendu.net/misc/blog/shortcuts-for-mac )

0 commit comments

Comments
 (0)