You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide mac equivalents for all keyboard shortcuts (#91)
* Add Mac keyboard shortcut equivalents to numbered chapters
- Standardized all shortcuts to use Cmd/Ctrl+Key slash syntax
- Added Mac equivalents for browser DevTools (F12 or Cmd/Ctrl+Shift+I, or Cmd+Option+I on Mac)
- Added Mac equivalents for JupyterLab command palette (Cmd/Ctrl+Shift+C)
- Updated Source Control shortcuts (Cmd/Ctrl+Shift+G)
- Standardized Cursor shortcuts (Cmd/Ctrl+L, Cmd/Ctrl+N, Cmd/Ctrl+K, Cmd/Ctrl+,)
- Verified Ctrl+C for SIGINT is correct on all platforms
Files updated:
- 02-anatomy-of-extensions.md
- 03-debugging.md
- 05-developing-with-ai.md
* Update 04-materials/05-developing-with-ai.md
Co-authored-by: Matt Fisher <[email protected]>
* Update 04-materials/05-developing-with-ai.md
Co-authored-by: Matt Fisher <[email protected]>
---------
Co-authored-by: Matt Fisher <[email protected]>
Copy file name to clipboardExpand all lines: 04-materials/03-debugging.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,9 +117,8 @@ This is where the real magic happens! Head to your browser and open the develope
117
117
118
118
:::{tip} 🔧 How to open DevTools
119
119
120
-
- **Windows/Linux**: Press `F12` or `Ctrl+Shift+I`
121
-
- **Mac**: Press `Cmd+Option+I`
122
-
:::
120
+
Press `F12` or `Cmd/Ctrl+Shift+I` (or`Cmd+Option+I`onMac)
121
+
:::
123
122
124
123
### 💬 Console Tab
125
124
@@ -186,7 +185,7 @@ From there, you can:
186
185
- Temporarily modify HTML or CSS to test fixes
187
186
188
187
:::{hint}
189
-
There are times where you might right-click on an element expecting to see the browser with the "Inspect" option, but are instead met with a JupyterLab menu. There are a few cases where JupyterLab prevents this default browser behavior and displays it's own context menu, but you can still access that browser menu by: holding `Shift`while right-clicking, or using the dev tools "Select an element"picker (using the keyboard shortcut `Cmd + Shift + C`for macOS or `Ctrl + Shift + C`for Windows/Linux).
188
+
There are times where you might right-click on an element expecting to see the browser with the "Inspect" option, but are instead met with a JupyterLab menu. There are a few cases where JupyterLab prevents this default browser behavior and displays it's own context menu, but you can still access that browser menu by: holding `Shift`while right-clicking, or using the dev tools "Select an element"picker (using the keyboard shortcut `Cmd/Ctrl+Shift+C`).
Copy file name to clipboardExpand all lines: 04-materials/05-developing-with-ai.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -340,14 +340,14 @@ AI can suggest code that breaks your extension. With frequent commits and stagin
340
340
**The Four Safety Levels:**
341
341
342
342
```
343
-
Level 1: Unsaved → Files on disk (Cmd/Ctrl + Z to undo)
343
+
Level 1: Unsaved → Files on disk (Cmd/Ctrl+Z to undo)
344
344
Level 2: Staged → git add (can unstage)
345
345
Level 3: Committed → git commit (can reset)
346
346
Level 4: Pushed → git push (permanent)
347
347
```
348
348
349
349
**Keep an eye on Source Control**
350
-
- Open the Source Control view (`Ctrl + Shift + G`)
350
+
- Open the Source Control view (`Cmd/Ctrl+Shift+G`)
351
351
- Keep this panel visible alongside your AI chat
352
352
- You'll review all AI-generated changes here before committing
353
353
@@ -561,7 +561,7 @@ This tells the AI assistant to use `micromamba` with the `jupytercon2025` enviro
561
561
562
562
### Verify that Cursor recognizes the rules
563
563
564
-
1. Open the Cursor Chat panel (`Cmd/Ctrl + L`) and choose Ask Mode
564
+
1. Open the Cursor Chat panel (`Cmd/Ctrl+L`) and choose Ask Mode
565
565
566
566
:::{note}
567
567
**⚠️ Avoid "Auto" mode** — it picks the cheapest model, not the best one.
@@ -664,7 +664,7 @@ Now that you're about to generate substantial code with AI, let's establish a di
664
664
665
665
```bash
666
666
# After AI generates code:
667
-
# 1. Review changes in Source Control panel (Cmd/Ctrl + Shift + G)
667
+
# 1. Review changes in Source Control panel (`Cmd/Ctrl+Shift+G`)
668
668
669
669
# 2. Test if it works - build and verify
670
670
jlpm build
@@ -692,7 +692,7 @@ When AI generates code that works, immediately stage those files (`git add`). Th
692
692
:::
693
693
694
694
**Keep Source Control panel visible:**
695
-
-`Ctrl + Shift + G` to open
695
+
-`Cmd/Ctrl+Shift+G` to open
696
696
- Shows all modified files with diff preview
697
697
- Click any file to see exactly what changed
698
698
- Stage/unstage with + and - buttons
@@ -718,7 +718,7 @@ With the right context and a detailed prompt, AI can build complete features in
718
718
719
719
:::{dropdown} Cursor prompting quick tips
720
720
-**Use @ precisely**: `@code` (symbol), `@file` (e.g., `@src/index.ts`), `@folder` (e.g., `@src/utils/`). This steers Cursor to the exact context you want.
721
-
-**Reference specific lines**: Select the lines and press `Cmd/Ctrl + L` to add them to the current chat as an `@` selection. Want a fresh chat? Press `Cmd/Ctrl + N` — the `@` reference carries over. Selection is prioritized; line‑range mentions via `@` aren’t supported.
721
+
-**Reference specific lines**: Select the lines and press `Cmd/Ctrl+L` to add them to the current chat as an `@` selection. Want a fresh chat? Press `Cmd/Ctrl+N` — the `@` reference carries over. Selection is prioritized; line‑range mentions via `@` aren't supported.
722
722
-**Bias auto‑context**: Cursor auto‑pulls from your session (active file, recent edits). Keep the relevant file active and close noisy, unrelated large files. Use `@` when you need deterministic precision.
723
723
-**Docs as context**: After adding docs to Cursor, mention them with `@` (e.g., `@JupyterLab API`).
724
724
:::
@@ -792,7 +792,7 @@ jupyter lab
792
792
**Test the new features**:
793
793
- Open the image viewer widget
794
794
- Try each filter button
795
-
- Check the browser console for errors (`F12` or `Cmd+Option+I`)
795
+
- Check the browser console for errors (`F12` or `Ctrl+Shift+I`, or `Cmd+Option+I` on Mac)
796
796
- Check the terminal running `jupyter lab` for Python errors
797
797
- Find at least 3 decisions you might have made differently
798
798
@@ -841,7 +841,7 @@ AI can understand what your extension looks like! This is powerful for debugging
841
841
-**Windows:** Use Snipping Tool or `Win + Shift + S`
842
842
-**Linux:** Use your screenshot tool (varies by desktop environment)
843
843
844
-
3.**Open Cursor chat** (`Cmd/Ctrl + L`) and drag or paste the screenshot into the chat
844
+
3.**Open Cursor chat** (`Cmd/Ctrl+L`) and drag or paste the screenshot into the chat
845
845
846
846
4.**Try one of these prompts with your screenshot:**
847
847
@@ -1042,7 +1042,7 @@ As you work through phases, keep an eye on **context window percentage** (shown
1042
1042
3. Use `@JupyterLab API` (or `@Lumino API`) in chat to use precise documentation when implementing a function.
1043
1043
:::
1044
1044
1045
-
1.**Start a NEW chat** for Phase 1 (`Cmd/Ctrl + L` to focus on chat panel, then `Cmd/Ctrl + N` to start a new chat)
1045
+
1.**Start a NEW chat** for Phase 1 (`Cmd/Ctrl+L` to focus on chat panel, then `Cmd/Ctrl+N` to start a new chat)
1046
1046
1047
1047
2.**Reference the plan:**
1048
1048
@@ -1056,7 +1056,7 @@ As you work through phases, keep an eye on **context window percentage** (shown
1056
1056
Note the `@plans/...` syntax tells AI to read that specific file.
1057
1057
1058
1058
3.**Review changes in Source Control** (keep this panel open!)
1059
-
- Open `Ctrl + Shift + G` to see all modified files
1059
+
- Open `Cmd/Ctrl+Shift+G` to see all modified files
1060
1060
- Click each file to review the diff
1061
1061
- Look for unexpected changes or files you didn't anticipate
1062
1062
@@ -1066,7 +1066,7 @@ As you work through phases, keep an eye on **context window percentage** (shown
1066
1066
jupyter lab
1067
1067
```
1068
1068
- Try the new filter buttons
1069
-
- Check browser console (`F12`) for errors
1069
+
- Check browser console (`F12` or `Cmd/Ctrl+Shift+I`, or `Cmd+Option+I` on Mac) for errors
1070
1070
- Verify backend logs in terminal
1071
1071
1072
1072
5.**Stage and commit after Phase 1 works:**
@@ -1109,6 +1109,8 @@ As you work through phases, keep an eye on **context window percentage** (shown
1109
1109
jlpm build
1110
1110
jupyter lab
1111
1111
1112
+
# Check browser console for errors (F12 or Cmd/Ctrl+Shift+I, or Cmd+Option+I on Mac)
0 commit comments