# Peeknext vs TextMate

{ div .row .justify-content-center .mb-5 }

{ div .col-12 .col-lg-6 }

### Peeknext

A Mac text editor focused on editing, with low typing latency, large-file support, local AI, and direct Python scripting.

[Download for Mac](https://github.com/peeknext/peeknext/releases/latest){ target="_blank" .button-sm }

{ /div }

{ div .col-12 .col-lg-6 }

### TextMate

A lightweight, open-source Mac text editor known for its bundle system, language grammars, snippets, and programmable commands.

{ /div }

{ /div }


|                       | **Peeknext**                 | TextMate               |
|:----------------------|:-----------------------------|:-----------------------|
| Platforms             | macOS (Apple Silicon)        | macOS                  |
| Local AI              | Yes                          | No built-in support    |
| Typing latency (P95)  | **16.6 ms**                  | 42.6 ms                |
| Large-file editing    | **Usable through 20M lines** |                        |
| Extensibility         | Direct Python scripting      | Bundles and commands   |
| Open source           | No                           | Yes                    |
| Lifetime license      | Yes                          | Not applicable         |

## Performance

> TextMate was the only editor to measure lower P95 typing latency than Peeknext in any of our four primary typing tests.

On a 151,639-line C source file, TextMate measured 16.1 ms P95 typing latency compared with 16.3 ms for Peeknext.

A difference of 0.2 ms is negligible in practice.
Both editors remained close to the refresh interval of the 60 Hz display used in the benchmarks.

The results changed considerably on the larger, 753,821-line C source file.

|                           | **Peeknext** | TextMate  |
|:--------------------------|:-------------|:----------|
| Typing latency, median    | **14.5 ms**  | 40.7 ms   |
| Typing latency, P95       | **16.6 ms**  | 42.6 ms   |
| Typing latency, P99       | **17.3 ms**  | 43.3 ms   |
| Maximum typing latency    | **17.7 ms**  | 43.5 ms   |

> Peeknext measured approximately **61% lower typing latency** than TextMate on the larger file.

TextMate's performance on the smaller file demonstrates how responsive a traditional text editor can be.
Peeknext focuses on maintaining that responsiveness as documents grow and additional views are opened.

[View benchmarks](/benchmarks/){ .button-sm .mt-4 }

## Editing { .text-center }

{ div .row .justify-content-center .mb-4 .mt-5 }

{ div .col-12 .col-lg-6 }

{ .text-small .mono .text-center }
Peeknext

Peeknext supports multiple panes, independent windows, shared document views, multi-cursor editing, and a configurable interface.

Multiple views of the same document share the underlying buffer, including unsaved changes.

The interface can be reduced to the document itself without giving up access to editing tools.

[Focused editing](/focused/){ .button-sm .mt-4 }

{ /div }

{ div .col-12 .col-lg-6 }

{ .text-small .mono .text-center }
TextMate

TextMate provides a traditional Mac editing interface with tabs, a file browser, multiple selections, snippets, and powerful search functionality.

Its relatively small interface remains one of its strengths.

{ /div }

{ /div }

Both editors keep the interface focused on text rather than surrounding it with development tools.

Peeknext extends this approach with more flexible document layouts and integrated editing functionality.

## Language support { .text-center }

{ div .row .justify-content-center .mb-4 .mt-5 }

{ div .col-12 .col-lg-6 }

{ .text-small .mono .text-center }
Peeknext

Peeknext ships with 30+ handwritten lexers, maintained as part of the editor and included with the application.

The lexers are optimized for interactive editing, including very large documents.

[Zero-latency typing](/use-cases/zero-latency-typing/){ .button-sm .mt-4 }

{ /div }

{ div .col-12 .col-lg-6 }

{ .text-small .mono .text-center }
TextMate

TextMate uses declarative language grammars distributed through bundles.

Its grammar and scope systems have been widely adopted by other editors, including Sublime Text and VS Code.

Bundles can also provide language-specific commands, snippets, preferences, and other editing functionality.

{ /div }

{ /div }

|                               | **Peeknext**        | TextMate             |
|:------------------------------|:--------------------|:---------------------|
| Syntax system                 | Handwritten lexers. | TextMate grammars.   |
| Community language extensions | No                  | Yes                  |
| Language-server integration   | No                  | No built-in client   |

## Scripting { .text-center }

{ div .row .justify-content-center .mb-4 .mt-5 }

{ div .col-12 .col-lg-6 }

{ .text-small .mono .text-center }
Peeknext

Peeknext exposes its editor directly to Python.
A command can be added to the user's scripts file:

<pre class="editor-mockup language-python"><code>
@command("Word count")
def word_count():
    import re
    
    text = selected_text()
    count = len(re.findall(r"\b[\w'-]+\b", text))
    
    message(f"Word count: {count:,} words")
</code></pre>

Save the script and run it.

Python scripts can manipulate documents, call editor functionality, automate workflows, and use normal Python libraries.

{ /div }

{ div .col-12 .col-lg-6 }

{ .text-small .mono .text-center }
TextMate

TextMate uses bundles to organize commands, snippets, macros, language grammars, and preferences.

Commands can execute external scripts written in Python, Ruby, shell, or other scripting languages.

TextMate provides document context through environment variables and passes text between the editor and external commands.

{ /div }

{ /div }

|                               | **Peeknext**          | TextMate             |
|:------------------------------|:----------------------|:---------------------|
| Direct Python API             | Yes                   | No                   |
| Custom commands               | Yes                   | Yes                  |
| External script execution     | Yes                   | Yes                  |
| Extension system              | Direct scripting      | Bundles              |

Both editors are programmable without requiring compiled extensions.
Peeknext exposes editor functionality directly to Python, while TextMate builds on traditional Unix scripting conventions.

## Local AI

Peeknext includes local AI functionality through Ollama for continuous code completion, inline editing, and document-based conversations.
No account, API key, or cloud subscription is required when using local models.

TextMate does not include built-in AI functionality.

[Local AI development](/use-cases/local-ai-development/){ .button-sm .mt-4 }

## Pricing { .text-center }

{ div .row .justify-content-center .mb-4 .mt-5 }

{ div .col-12 .col-lg-6 }

{ .text-small .mono .text-center }
Peeknext

**Peeknext is free for non-commercial use.**

The Professional license is a one-time purchase that includes lifetime updates.

Annual licensing is available for businesses.

[View pricing](/pricing/){ .button-sm .mt-4 }

{ /div }

{ div .col-12 .col-lg-6 }

{ .text-small .mono .text-center }
TextMate

**TextMate is free and open source.**

The editor's source code is available under the GPL license.

{ /div }

{ /div }

|                             | **Peeknext** | TextMate       |
|:----------------------------|:-------------|:---------------|
| Non-commercial use          | Free         | Free           |
| Commercial use              | Paid license | Free           |
| Lifetime individual license | Yes          | Not applicable |
| Open source                 | No           | Yes            |

## FAQ

### What is the difference between Peeknext and TextMate?

Both are native Mac text editors with relatively minimal interfaces and programmable editing functionality.
Peeknext provides more extensive editing capabilities, flexible document layouts, large-file support, direct Python scripting, and integrated local AI.

TextMate is built around traditional text editing and its bundle system.

### Is Peeknext faster than TextMate?

**In three of our four primary typing tests, Peeknext measured lower P95 typing latency.**

TextMate was marginally faster on the smaller source file in a single-pane configuration, measuring 16.1 ms compared with 16.3 ms for Peeknext.
On the larger 753,821-line source file, Peeknext measured 16.6 ms compared with 42.6 ms for TextMate.

### Are Peeknext and TextMate native Mac applications?

**Yes.**
Both editors are native desktop applications built specifically for macOS.

### Does TextMate support local AI?

TextMate does not include built-in AI functionality.
Peeknext integrates local models through Ollama for continuous code completion and inline editing.

### Can I write my own commands?

**Yes, in both editors.**
Peeknext exposes the editor directly to Python.
TextMate supports commands written in external scripting languages through its bundle system.

### Are Peeknext and TextMate free?

**Peeknext is free for non-commercial use.**
Commercial use requires a license, with a one-time Professional license that includes lifetime updates.

TextMate is free and open source, including for commercial use.


{ .lead .pt-xl .mb-0 .text-center }
The traditional text editor still has a place.
Peeknext builds on that idea.

