mirror of
https://github.com/jbranchaud/til
synced 2026-01-14 12:38:01 +00:00
Compare commits
3 Commits
db05ecff7c
...
e072ea18a6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e072ea18a6 | ||
|
|
cfbe640eb0 | ||
|
|
295fe153ad |
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
|
||||
|
||||
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
||||
|
||||
_1458 TILs and counting..._
|
||||
_1459 TILs and counting..._
|
||||
|
||||
---
|
||||
|
||||
@@ -590,6 +590,7 @@ _1458 TILs and counting..._
|
||||
- [Find The Process Using A Specific Port](mac/find-the-process-using-a-specific-port.md)
|
||||
- [Gesture For Viewing All Windows Of Current App](mac/gesture-for-viewing-all-windows-of-current-app.md)
|
||||
- [Insert A Non-Breaking Space Character](mac/insert-a-non-breaking-space-character.md)
|
||||
- [Keyboard Shortcuts For Interesting With Text Areas](mac/keyboard-shortcuts-for-interacting-with-text-areas.md)
|
||||
- [List All The Say Voices](mac/list-all-the-say-voices.md)
|
||||
- [Open Finder.app To Specific Directory](mac/open-finder-app-to-specific-directory.md)
|
||||
- [Quickly Type En Dashes And Em Dashes](mac/quickly-type-en-dashes-and-em-dashes.md)
|
||||
|
||||
@@ -5,6 +5,8 @@ an array-like object with all of the arguments to the function. Even if not
|
||||
all of the arguments are referenced in the function signature, they can
|
||||
still be accessed via the `arguments` object.
|
||||
|
||||
> For ES6+ compatibility, the `spread` operator used via [rest parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) is preferred over the `arugments` object when accessing an abritrary number of function arguments.
|
||||
|
||||
```javascript
|
||||
function argTest(one) {
|
||||
console.log(one);
|
||||
|
||||
24
mac/keyboard-shortcuts-for-interacting-with-text-areas.md
Normal file
24
mac/keyboard-shortcuts-for-interacting-with-text-areas.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Keyboard Shortcuts For Interacting With Text Areas
|
||||
|
||||
When interacting with a document text area on MacOS (such as in the Notes app),
|
||||
there are a bunch of keyboard shortcuts made available to you via the operating
|
||||
system.
|
||||
|
||||
A couple common ones that I'm used to from Unix environments are:
|
||||
|
||||
- `ctrl-a` to move the cursor to the beginning of the line
|
||||
- `ctrl-e` to move the cursor to the end of the line
|
||||
- `ctrl-p` to move the cursor up a line (this is a common _previous_ keybinding)
|
||||
- `ctrl-n` to move the cursor down a line (this is a common _next_ keybinding)
|
||||
|
||||
A handy one that I wasn't aware of is `ctrl-l` which will scroll the text area
|
||||
so that the cursor gets centered in the view area.
|
||||
|
||||
A much more niche one I wasn't aware of is `ctrl-t` which swaps the character
|
||||
before the cursor with the character after the cursor. I can only imagine this
|
||||
being useful for quickly fixing transposed characters in a misspelled word,
|
||||
e.g. `baer`.
|
||||
|
||||
There are many more *Document Shortcuts* as well as well as keyboard shorcuts
|
||||
for other apps and situations. The full listing is at [Mac Keyboard
|
||||
Shortcuts](https://support.apple.com/en-us/102650).
|
||||
Reference in New Issue
Block a user