Home > Text Processing & Search > joe

joe: A Powerful Terminal Text Editor

joe (Joe's Own Editor) is a full-screen text editor that is both easy to use and powerful. It supports key bindings similar to WordStar and Turbo C, making it convenient for familiar users, and offers various advanced features such as simultaneous editing of multiple files or using split screens.

Overview

joe is a text editor that operates in the terminal environment, combining an intuitive interface with powerful editing capabilities, making it useful for developers and system administrators. In particular, user-definable key bindings and macro functions can enhance work efficiency.

Key Features

  • WordStar/Turbo C style key bindings
  • Simultaneous editing of multiple files and split-screen support
  • Search and replace using regular expressions
  • Macro recording and playback
  • Syntax Highlighting

Main Options

These are the main options available when running the joe command.

Editing Modes and Settings

Generated command:

Try combining the commands.

Description:

`joe` Executes the command.

Combine the above options to virtually execute commands with AI.

Usage Examples

Common scenarios for using the joe editor.

Open a Basic File

joe myfile.txt

Opens the specified file with the joe editor.

Open Multiple Files Simultaneously

joe file1.txt file2.txt

You can open and edit multiple files at once. Switch between them using Ctrl+K N (next file) and Ctrl+K P (previous file).

Open File with Automatic Word Wrap

joe -wordwrap long_document.txt

Opens a file with the automatic word wrap option to improve readability of long text files.

Create and Edit a New File

joe new_script.sh

If you specify a filename that does not exist, a new file will be created and you will enter edit mode.

Installation

joe is not included by default in most Linux distributions, so you need to install it using the following commands.

Debian/Ubuntu

sudo apt update && sudo apt install joe

Install joe using the APT package manager.

CentOS/RHEL/Fedora

sudo dnf install joe

Install joe using the DNF (or Yum) package manager.

Arch Linux

sudo pacman -S joe

Install joe using the Pacman package manager.

Tips & Notes

Tips and important notes for using the joe editor more efficiently.

Key Key Bindings

joe uses key bindings similar to WordStar. Here are some essential key combinations.

  • Ctrl+K H: View Help (List of all key bindings)
  • Ctrl+K X: Save and Exit
  • Ctrl+C: Exit without Saving
  • Ctrl+K F: Find
  • Ctrl+K R: Replace
  • Ctrl+K D: Save File
  • Ctrl+K N: Go to Next File/Buffer
  • Ctrl+K P: Go to Previous File/Buffer
  • Ctrl+K B: Mark Block Start
  • Ctrl+K K: Mark Block End
  • Ctrl+K C: Copy Block
  • Ctrl+K V: Move Block
  • Ctrl+K Y: Delete Block

Configuration File (~/.joerc)

You can customize joe's behavior through the `.joerc` file in your user's home directory. For example, you can set default options, key bindings, and syntax highlighting rules. If this file does not exist, joe will use system default settings.

Multiple Buffers and Split Screens

joe allows you to open and edit multiple files simultaneously. You can split the screen using Ctrl+K O (horizontal split) or Ctrl+K E (vertical split) to view multiple buffers at once. This is very useful when working on complex projects.



Same category commands