{"schemaVersion":1,"contentVersion":"3.4.0","id":"boundary.2","languages":{"javascript":{"id":"boundary.2","title":"Keep the quotation","moduleName":"Words and quotations","tips":"","concept":"<h3>Before you begin</h3><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p><p class=\"lead\">Change what's inside the quotation marks and keep the marks themselves.</p><p>You'll need the lesson on changing and deleting a word first. <kbd>i\"</kbd> means everything inside the double quotes, including spaces and punctuation.</p><pre class=\"lesson-example\">const state = \"not ready\";</pre><p>From inside “not ready”, <kbd>ci\"</kbd>, then <kbd>ready now</kbd>, then <kbd>Esc</kbd> replaces the whole message. <kbd>di\"</kbd> empties it. Both keep the quotes. <kbd>a\"</kbd> takes the quotation marks too, which is a different edit.</p><p>From before the first string on a line, <kbd>ci\"</kbd> finds that string ahead of your cursor. When a line has two strings, move inside the one you mean first.</p><p>These exercises use plain double-quoted text on one line. Escaped quotes, strings over several lines and nested brackets aren't covered here.</p>","teaches":["textobject:i\""],"introduces":[],"constraints":[],"drills":[{"task":"The page has no heading yet. Make it <code>Your orders</code>.","hint":"From the start of the line, change inside the quotes ahead.","mode":"jsx","start":"import { OrderList } from \"./OrderList.jsx\";\nimport { PageHeader } from \"./PageHeader.jsx\";\n\nexport function OrdersPage({ orders }) {\n  return (\n    <main>\n      <PageHeader title=\"\" />\n      <OrderList orders={orders} />\n    </main>\n  );\n}","startCursor":{"line":6,"ch":0},"paths":[{"keys":["c","i","\"","Your orders","<Esc>"],"tier":"idiomatic","technique":"textobject:i\"","core":["textobject:i\""],"note":"i\" is everything between the quotes. From before the string, ci\" finds the string ahead on the line."}],"target":"import { OrderList } from \"./OrderList.jsx\";\nimport { PageHeader } from \"./PageHeader.jsx\";\n\nexport function OrdersPage({ orders }) {\n  return (\n    <main>\n      <PageHeader title=\"Your orders\" />\n      <OrderList orders={orders} />\n    </main>\n  );\n}","language":"javascript","evidence":"guided","canonicalKey":"boundary.2#0","canonicalFingerprint":"jgaps9"},{"task":"Drafts are published straight away now. Change the second button's label to <code>Publish</code>.","hint":"Go back two WORDs and you're inside the label's quotes. The line has two strings.","mode":"jsx","start":"import { Button } from \"./Button.jsx\";\n\nexport function DraftActions({ onSave, onDiscard }) {\n  return (\n    <div className=\"draft-actions\">\n      <Button variant=\"ghost\" label=\"Discard\" onClick={onDiscard} />\n      <Button variant=\"primary\" label=\"Save draft\" onClick={onSave} />\n    </div>\n  );\n}","startCursor":{"line":6,"ch":60},"paths":[{"keys":["2","B","c","i","\"","Publish","<Esc>"],"tier":"idiomatic","technique":"textobject:i\"","core":["textobject:i\""],"note":"i\" is everything between the quotes. From before the string, ci\" finds the string ahead on the line."}],"target":"import { Button } from \"./Button.jsx\";\n\nexport function DraftActions({ onSave, onDiscard }) {\n  return (\n    <div className=\"draft-actions\">\n      <Button variant=\"ghost\" label=\"Discard\" onClick={onDiscard} />\n      <Button variant=\"primary\" label=\"Publish\" onClick={onSave} />\n    </div>\n  );\n}","language":"javascript","evidence":"guided","canonicalKey":"boundary.2#1","canonicalFingerprint":"1cna4vs"},{"task":"Clear the Stripe key before you commit this file. Keep the quotes.","hint":"Delete inside the quotes.","mode":"jsx","start":"// Local settings. Copy this file to config.local.js and fill it in.\nexport const local = {\n  DATABASE_URL: \"postgres://localhost:5432/northwind\",\n  STRIPE_SECRET: \"sk_test_northwind_4f9a21c7e0\",\n  MAPS_KEY: \"\",\n  DEBUG: \"orders,payments\",\n};","startCursor":{"line":2,"ch":0},"paths":[{"keys":["j","d","i","\""],"tier":"idiomatic","technique":"textobject:i\"","core":["textobject:i\""],"note":"di\" empties the string and keeps its quotes."}],"target":"// Local settings. Copy this file to config.local.js and fill it in.\nexport const local = {\n  DATABASE_URL: \"postgres://localhost:5432/northwind\",\n  STRIPE_SECRET: \"\",\n  MAPS_KEY: \"\",\n  DEBUG: \"orders,payments\",\n};","language":"javascript","evidence":"guided","canonicalKey":"boundary.2#2","canonicalFingerprint":"g0odwn"}]},"python":{"id":"boundary.2","title":"Keep the quotation","moduleName":"Words and quotations","tips":"","concept":"<h3>Before you begin</h3><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p><p class=\"lead\">Change what's inside the quotation marks and keep the marks themselves.</p><p>You'll need the lesson on changing and deleting a word first. <kbd>i\"</kbd> means everything inside the double quotes, including spaces and punctuation.</p><pre class=\"lesson-example\">state = \"not ready\"</pre><p>From inside “not ready”, <kbd>ci\"</kbd>, then <kbd>ready now</kbd>, then <kbd>Esc</kbd> replaces the whole message. <kbd>di\"</kbd> empties it. Both keep the quotes. <kbd>a\"</kbd> takes the quotation marks too, which is a different edit.</p><p>From before the first string on a line, <kbd>ci\"</kbd> finds that string ahead of your cursor. When a line has two strings, move inside the one you mean first.</p><p>These exercises use plain double-quoted text on one line. Escaped quotes, strings over several lines and nested brackets aren't covered here.</p>","teaches":["textobject:i\""],"introduces":[],"constraints":[],"drills":[{"task":"The command has no description yet. Make it <code>Export orders as CSV</code>.","hint":"From the start of the line, change inside the quotes ahead.","mode":"python","start":"import argparse\nimport csv\nimport sys\n\nfrom orders.db import orders_since\n\n\ndef main():\n    parser = argparse.ArgumentParser(\n        prog=\"export-orders\",\n        description=\"\",\n    )\n    parser.add_argument(\"--since\", required=True, help=\"First day, as YYYY-MM-DD.\")\n    args = parser.parse_args()\n    csv.writer(sys.stdout).writerows(order.row() for order in orders_since(args.since))","startCursor":{"line":10,"ch":0},"paths":[{"keys":["c","i","\"","Export orders as CSV","<Esc>"],"tier":"idiomatic","technique":"textobject:i\"","core":["textobject:i\""],"note":"i\" is everything between the quotes. From before the string, ci\" finds the string ahead on the line."}],"target":"import argparse\nimport csv\nimport sys\n\nfrom orders.db import orders_since\n\n\ndef main():\n    parser = argparse.ArgumentParser(\n        prog=\"export-orders\",\n        description=\"Export orders as CSV\",\n    )\n    parser.add_argument(\"--since\", required=True, help=\"First day, as YYYY-MM-DD.\")\n    args = parser.parse_args()\n    csv.writer(sys.stdout).writerows(order.row() for order in orders_since(args.since))","language":"python","evidence":"guided","canonicalKey":"boundary.2#0","canonicalFingerprint":"jgaps9"},{"task":"Receipts are emailed now. Change the email field's help text to <code>We email your receipt here</code>.","hint":"Go back two WORDs and you're inside the help text's quotes. The line has two strings.","mode":"python","start":"from django import forms\n\n\nclass CheckoutForm(forms.Form):\n    name = forms.CharField(label=\"Full name\", max_length=120)\n    email = forms.EmailField(label=\"Email\", help_text=\"For updates\", max_length=254)\n    notes = forms.CharField(label=\"Notes\", required=False, widget=forms.Textarea)","startCursor":{"line":5,"ch":80},"paths":[{"keys":["2","B","c","i","\"","We email your receipt here","<Esc>"],"tier":"idiomatic","technique":"textobject:i\"","core":["textobject:i\""],"note":"i\" is everything between the quotes. From before the string, ci\" finds the string ahead on the line."}],"target":"from django import forms\n\n\nclass CheckoutForm(forms.Form):\n    name = forms.CharField(label=\"Full name\", max_length=120)\n    email = forms.EmailField(label=\"Email\", help_text=\"We email your receipt here\", max_length=254)\n    notes = forms.CharField(label=\"Notes\", required=False, widget=forms.Textarea)","language":"python","evidence":"guided","canonicalKey":"boundary.2#1","canonicalFingerprint":"1cna4vs"},{"task":"Clear the Stripe key before you commit this file. Keep the quotes.","hint":"Delete inside the quotes.","mode":"python","start":"# Local settings. Copy this file to settings_local.py and fill it in.\nDATABASE_URL = \"postgres://localhost:5432/northwind\"\nSTRIPE_SECRET = \"sk_test_northwind_4f9a21c7e0\"\nMAPS_KEY = \"\"\nDEBUG = True\nALLOWED_HOSTS = [\"localhost\", \"127.0.0.1\"]","startCursor":{"line":1,"ch":0},"paths":[{"keys":["j","d","i","\""],"tier":"idiomatic","technique":"textobject:i\"","core":["textobject:i\""],"note":"di\" empties the string and keeps its quotes."}],"target":"# Local settings. Copy this file to settings_local.py and fill it in.\nDATABASE_URL = \"postgres://localhost:5432/northwind\"\nSTRIPE_SECRET = \"\"\nMAPS_KEY = \"\"\nDEBUG = True\nALLOWED_HOSTS = [\"localhost\", \"127.0.0.1\"]","language":"python","evidence":"guided","canonicalKey":"boundary.2#2","canonicalFingerprint":"g0odwn"}]},"text":{"id":"boundary.2","title":"Keep the quotation","moduleName":"Words and quotations","tips":"","concept":"<h3>Before you begin</h3><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p><p class=\"lead\">Change what's inside the quotation marks and keep the marks themselves.</p><p>You'll need the lesson on changing and deleting a word first. <kbd>i\"</kbd> means everything inside the double quotes, including spaces and punctuation.</p><pre class=\"lesson-example\">State: \"not ready\".</pre><p>From inside “not ready”, <kbd>ci\"</kbd>, then <kbd>ready now</kbd>, then <kbd>Esc</kbd> replaces the whole message. <kbd>di\"</kbd> empties it. Both keep the quotes. <kbd>a\"</kbd> takes the quotation marks too, which is a different edit.</p><p>From before the first string on a line, <kbd>ci\"</kbd> finds that string ahead of your cursor. When a line has two strings, move inside the one you mean first.</p><p>These exercises use plain double-quoted text on one line. Escaped quotes, strings over several lines and nested brackets aren't covered here.</p>","teaches":["textobject:i\""],"introduces":[],"constraints":[],"drills":[{"task":"Search results show no title for this post. Set its search title to <code>Faster checkout</code>.","hint":"From the start of the line, change inside the quotes ahead.","mode":"text/plain","start":"---\ntitle: We rebuilt the checkout\ndate: 2026-11-02\nauthor: Dana Okafor\nseo: { title: \"\", image: /img/checkout.png }\ntags: [release, checkout]\n---\n\nThe new checkout takes two steps instead of five.","startCursor":{"line":4,"ch":0},"paths":[{"keys":["c","i","\"","Faster checkout","<Esc>"],"tier":"idiomatic","technique":"textobject:i\"","core":["textobject:i\""],"note":"i\" is everything between the quotes. From before the string, ci\" finds the string ahead on the line."}],"target":"---\ntitle: We rebuilt the checkout\ndate: 2026-11-02\nauthor: Dana Okafor\nseo: { title: \"Faster checkout\", image: /img/checkout.png }\ntags: [release, checkout]\n---\n\nThe new checkout takes two steps instead of five.","language":"text","evidence":"guided","canonicalKey":"boundary.2#0","canonicalFingerprint":"jgaps9"},{"task":"Drafts are published straight away now. Change the save button's label to <code>Publish</code>.","hint":"Go back two WORDs and you're inside the label's quotes. The line has two strings.","mode":"text/plain","start":"# Button labels for the editor toolbar.\ntoolbar:\n  discard: { style: \"ghost\", label: \"Discard\", shortcut: Esc }\n  save: { style: \"primary\", label: \"Save draft\", shortcut: Ctrl+S }\n  preview: { style: \"ghost\", label: \"Preview\", shortcut: Ctrl+P }\n  history: { style: \"link\", label: \"Show changes\", shortcut: Ctrl+H }","startCursor":{"line":3,"ch":59},"paths":[{"keys":["2","B","c","i","\"","Publish","<Esc>"],"tier":"idiomatic","technique":"textobject:i\"","core":["textobject:i\""],"note":"i\" is everything between the quotes. From before the string, ci\" finds the string ahead on the line."}],"target":"# Button labels for the editor toolbar.\ntoolbar:\n  discard: { style: \"ghost\", label: \"Discard\", shortcut: Esc }\n  save: { style: \"primary\", label: \"Publish\", shortcut: Ctrl+S }\n  preview: { style: \"ghost\", label: \"Preview\", shortcut: Ctrl+P }\n  history: { style: \"link\", label: \"Show changes\", shortcut: Ctrl+H }","language":"text","evidence":"guided","canonicalKey":"boundary.2#1","canonicalFingerprint":"1cna4vs"},{"task":"Clear the Stripe key before you commit this file. Keep the quotes.","hint":"Delete inside the quotes.","mode":"text/plain","start":"# Local settings. Copy this file to .env and fill it in.\nDATABASE_URL=\"postgres://localhost:5432/northwind\"\nSTRIPE_SECRET=\"sk_test_northwind_4f9a21c7e0\"\nMAPS_KEY=\"\"\nDEBUG=\"orders,payments\"\nPORT=3000","startCursor":{"line":1,"ch":0},"paths":[{"keys":["j","d","i","\""],"tier":"idiomatic","technique":"textobject:i\"","core":["textobject:i\""],"note":"di\" empties the string and keeps its quotes."}],"target":"# Local settings. Copy this file to .env and fill it in.\nDATABASE_URL=\"postgres://localhost:5432/northwind\"\nSTRIPE_SECRET=\"\"\nMAPS_KEY=\"\"\nDEBUG=\"orders,payments\"\nPORT=3000","language":"text","evidence":"guided","canonicalKey":"boundary.2#2","canonicalFingerprint":"g0odwn"}]}},"concepts":{"javascript":{"lead":"","reminder":"<details class=\"lesson-before\"><summary><span class=\"lesson-before-label\">Before you begin</span><span class=\"keyseq keyseq-sm\" aria-hidden=\"true\"><kbd class=\"cap\" data-kind=\"single\">h</kbd><kbd class=\"cap\" data-kind=\"single\">j</kbd><kbd class=\"cap\" data-kind=\"single\">k</kbd><kbd class=\"cap\" data-kind=\"single\">l</kbd><kbd class=\"cap\" data-kind=\"named\">Esc</kbd><kbd class=\"cap\" data-kind=\"single\">u</kbd><kbd class=\"cap\" data-kind=\"single\">0</kbd><kbd class=\"cap\" data-kind=\"typed\">2G</kbd><kbd class=\"cap\" data-kind=\"typed\">3l</kbd></span></summary><div class=\"lesson-before-body\"><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p></div></details>","more":"<details class=\"lesson-more\"><summary>More about this lesson</summary><div class=\"lesson-more-body prose\"><p class=\"lead\">Change what's inside the quotation marks and keep the marks themselves.</p><p>You'll need the lesson on changing and deleting a word first. <kbd>i\"</kbd> means everything inside the double quotes, including spaces and punctuation.</p><pre class=\"lesson-example\">const state = \"not ready\";</pre><p>From inside “not ready”, <kbd>ci\"</kbd>, then <kbd>ready now</kbd>, then <kbd>Esc</kbd> replaces the whole message. <kbd>di\"</kbd> empties it. Both keep the quotes. <kbd>a\"</kbd> takes the quotation marks too, which is a different edit.</p><p>From before the first string on a line, <kbd>ci\"</kbd> finds that string ahead of your cursor. When a line has two strings, move inside the one you mean first.</p><p>These exercises use plain double-quoted text on one line. Escaped quotes, strings over several lines and nested brackets aren't covered here.</p></div></details>"},"python":{"lead":"","reminder":"<details class=\"lesson-before\"><summary><span class=\"lesson-before-label\">Before you begin</span><span class=\"keyseq keyseq-sm\" aria-hidden=\"true\"><kbd class=\"cap\" data-kind=\"single\">h</kbd><kbd class=\"cap\" data-kind=\"single\">j</kbd><kbd class=\"cap\" data-kind=\"single\">k</kbd><kbd class=\"cap\" data-kind=\"single\">l</kbd><kbd class=\"cap\" data-kind=\"named\">Esc</kbd><kbd class=\"cap\" data-kind=\"single\">u</kbd><kbd class=\"cap\" data-kind=\"single\">0</kbd><kbd class=\"cap\" data-kind=\"typed\">2G</kbd><kbd class=\"cap\" data-kind=\"typed\">3l</kbd></span></summary><div class=\"lesson-before-body\"><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p></div></details>","more":"<details class=\"lesson-more\"><summary>More about this lesson</summary><div class=\"lesson-more-body prose\"><p class=\"lead\">Change what's inside the quotation marks and keep the marks themselves.</p><p>You'll need the lesson on changing and deleting a word first. <kbd>i\"</kbd> means everything inside the double quotes, including spaces and punctuation.</p><pre class=\"lesson-example\">state = \"not ready\"</pre><p>From inside “not ready”, <kbd>ci\"</kbd>, then <kbd>ready now</kbd>, then <kbd>Esc</kbd> replaces the whole message. <kbd>di\"</kbd> empties it. Both keep the quotes. <kbd>a\"</kbd> takes the quotation marks too, which is a different edit.</p><p>From before the first string on a line, <kbd>ci\"</kbd> finds that string ahead of your cursor. When a line has two strings, move inside the one you mean first.</p><p>These exercises use plain double-quoted text on one line. Escaped quotes, strings over several lines and nested brackets aren't covered here.</p></div></details>"},"text":{"lead":"","reminder":"<details class=\"lesson-before\"><summary><span class=\"lesson-before-label\">Before you begin</span><span class=\"keyseq keyseq-sm\" aria-hidden=\"true\"><kbd class=\"cap\" data-kind=\"single\">h</kbd><kbd class=\"cap\" data-kind=\"single\">j</kbd><kbd class=\"cap\" data-kind=\"single\">k</kbd><kbd class=\"cap\" data-kind=\"single\">l</kbd><kbd class=\"cap\" data-kind=\"named\">Esc</kbd><kbd class=\"cap\" data-kind=\"single\">u</kbd><kbd class=\"cap\" data-kind=\"single\">0</kbd><kbd class=\"cap\" data-kind=\"typed\">2G</kbd><kbd class=\"cap\" data-kind=\"typed\">3l</kbd></span></summary><div class=\"lesson-before-body\"><p>Use <kbd>h</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>l</kbd> to move in Normal mode. <kbd>Esc</kbd> stops inserting and <kbd>u</kbd> undoes an edit. <kbd>0</kbd> goes to the start of the line and <kbd>2G</kbd> goes to line 2. A count repeats a movement, so <kbd>3l</kbd> moves three characters right.</p></div></details>","more":"<details class=\"lesson-more\"><summary>More about this lesson</summary><div class=\"lesson-more-body prose\"><p class=\"lead\">Change what's inside the quotation marks and keep the marks themselves.</p><p>You'll need the lesson on changing and deleting a word first. <kbd>i\"</kbd> means everything inside the double quotes, including spaces and punctuation.</p><pre class=\"lesson-example\">State: \"not ready\".</pre><p>From inside “not ready”, <kbd>ci\"</kbd>, then <kbd>ready now</kbd>, then <kbd>Esc</kbd> replaces the whole message. <kbd>di\"</kbd> empties it. Both keep the quotes. <kbd>a\"</kbd> takes the quotation marks too, which is a different edit.</p><p>From before the first string on a line, <kbd>ci\"</kbd> finds that string ahead of your cursor. When a line has two strings, move inside the one you mean first.</p><p>These exercises use plain double-quoted text on one line. Escaped quotes, strings over several lines and nested brackets aren't covered here.</p></div></details>"}}}