---
title: "Text Manipulation Kung Fu for the Aspiring Black Belt"
description: "Zed's cursor navigation and selection commands are built from a few composable pieces: arrow keys plus modifiers, with cmd for edge boundaries, alt for word boundaries, ctrl-alt for subwords and shift to turn a move into a selection."
url: "https://swe.quest/articles/text-manipulation-kung-fu-for-the-aspiring-black-belt-c61f8ae7c9cee1b9"
canonical: "https://zed.dev/blog/text-manipulation"
source: "Zed"
published: "2024-05-03"
difficulty: "medium"
kind: "How-to"
reading_minutes: 10
tags: ["developer-tools","developer-productivity"]
---

# Text Manipulation Kung Fu for the Aspiring Black Belt

A post on [Zed](https://swe.quest/sources/zed.md), published 2024-05-03, 10 min read, How-to. Original: [https://zed.dev/blog/text-manipulation](https://zed.dev/blog/text-manipulation)

## Summary

Zed's cursor navigation and selection commands are built from a few composable pieces: arrow keys plus modifiers, with cmd for edge boundaries, alt for word boundaries, ctrl-alt for subwords and shift to turn a move into a selection. Four progressively harder exercises put them to use: converting a JSON key to snake case, hoisting a Python local into an upper-snake-case global constant, cleaning a CSV, and extracting actor names from Markdown into a sorted "Last, First" list. The exercises lean on multi-cursor commands like select all matches, select next and split selection into lines, alongside case-conversion and line sort/unique commands. Opening selections in a multibuffer is a quick way to review scattered selections before applying an edit.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Keywords

Zed, multi-cursor editing, command palette, multibuffer

## Related posts

- [Zed Weekly: #24](https://swe.quest/articles/zed-weekly-24-ca50786cbb34184d.md): Zed · 2023-10-20 · Medium · 5 min read · Developer tools, Rust
  Weekly roundup from the Zed editor team covering a range of fixes and features.
- [Native Git support in Zed](https://swe.quest/articles/native-git-support-in-zed-e61d073bae5104a2.md): Zed · 2025-03-12 · Easy · 4 min read · Developer tools, Version control
  Zed v0.177 adds native Git support built around speed, Git-native semantics and keyboard-first workflows: a Git Panel for staging and restoring, cmd-enter commits with optional LLM-written messages and automatic Co-Authored-By lines, a hunk-level Diff View like \`git add -p\`, and fetch/pull/push from the command palette.
- [Zed Weekly: #21](https://swe.quest/articles/zed-weekly-21-6f0d0de0d9285330.md): Zed · 2023-09-29 · Easy · 7 min read · Developer tools, Frontend, Rust
  Weekly team update from the Zed editor team. It covers initial Prettier integration and better LSP server log display, a storybook CLI for rendering new GPUI UI components in isolation, and Vim mode's command palette shipping to preview.
- [Split Diffs are Here](https://swe.quest/articles/split-diffs-are-here-4b9f30e250f3fbbd.md): Zed · 2026-02-18 · Easy · 4 min read · Developer tools, Performance engineering, Version control
  Zed v0.224 makes split diffs the default, built on its multibuffer model where all changed files form one editable surface.
- [Building a Text Editor in the Times of AI](https://swe.quest/articles/building-a-text-editor-in-the-times-of-ai-5830d5c3aedf2a31.md): Zed · 2024-03-26 · Easy · 31 min read · AI for coding, Developer tools, LLMs, Algorithms
  Zed's co-founders Nathan, Max and Antonio describe how they use AI for programming.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
