183 lines
4.7 KiB
Markdown
183 lines
4.7 KiB
Markdown
|
# Helix Editor – Ein umfassender Einstieg für Anfänger (Deutsch)
|
|||
|
|
|||
|
## Inhalt
|
|||
|
|
|||
|
- [Helix Editor – Ein umfassender Einstieg für Anfänger (Deutsch)](#helix-editor--ein-umfassender-einstieg-für-anfänger-deutsch)
|
|||
|
- [Inhalt](#inhalt)
|
|||
|
- [✨ Was ist Helix?](#-was-ist-helix)
|
|||
|
- [🔧 Installation](#-installation)
|
|||
|
- [Linux (Fedora, Arch, Debian)](#linux-fedora-arch-debian)
|
|||
|
- [GitHub Release (empfohlen für aktuellste Version)](#github-release-empfohlen-für-aktuellste-version)
|
|||
|
- [📁 Erstes Projekt starten](#-erstes-projekt-starten)
|
|||
|
- [Beispiel: Rust-Projekt](#beispiel-rust-projekt)
|
|||
|
- [Beispiel: JavaScript-Projekt](#beispiel-javascript-projekt)
|
|||
|
- [⌨ Bedienkonzept von Helix](#-bedienkonzept-von-helix)
|
|||
|
- [Modale Steuerung (ähnlich wie Vim)](#modale-steuerung-ähnlich-wie-vim)
|
|||
|
- [Wechsel der Modi](#wechsel-der-modi)
|
|||
|
- [⚖️ Wichtige Tastenkombinationen](#️-wichtige-tastenkombinationen)
|
|||
|
- [🪨 Sprachserver (LSP)](#-sprachserver-lsp)
|
|||
|
- [Rust](#rust)
|
|||
|
- [JavaScript/TypeScript](#javascripttypescript)
|
|||
|
- [C / C++](#c--c)
|
|||
|
- [⚖️ LSP-Befehle in Helix](#️-lsp-befehle-in-helix)
|
|||
|
- [📂 Konfiguration](#-konfiguration)
|
|||
|
- [Beispiel-Inhalt](#beispiel-inhalt)
|
|||
|
- [🌍 Weitere Ressourcen](#-weitere-ressourcen)
|
|||
|
|
|||
|
## ✨ Was ist Helix?
|
|||
|
|
|||
|
Helix ist ein moderner, terminalbasierter Code-Editor mit Fokus auf Produktivität, Effizienz und minimalistische Bedienung. Er verwendet **modale Eingabe** (wie Vim), bietet jedoch eine eigene, einsteigerfreundlichere Philosophie mit moderner Technologie wie **LSP**, **Tree-sitter**, und Syntax-Highlighting direkt aus dem Terminal.
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
## 🔧 Installation
|
|||
|
|
|||
|
### Linux (Fedora, Arch, Debian)
|
|||
|
|
|||
|
```bash
|
|||
|
# Fedora
|
|||
|
sudo dnf install helix
|
|||
|
|
|||
|
# Arch (via pacman)
|
|||
|
sudo pacman -S helix
|
|||
|
|
|||
|
# Debian/Ubuntu (nur in neueren Versionen oder via GitHub)
|
|||
|
```
|
|||
|
|
|||
|
### GitHub Release (empfohlen für aktuellste Version)
|
|||
|
|
|||
|
1. Gehe zu: [https://github.com/helix-editor/helix/releases](https://github.com/helix-editor/helix/releases)
|
|||
|
2. Lade das passende Paket für dein System herunter
|
|||
|
3. Entpacken:
|
|||
|
|
|||
|
```bash
|
|||
|
tar -xvf helix-*-x86_64-linux.tar.xz
|
|||
|
sudo cp helix-*/helix/hx /usr/local/bin/
|
|||
|
```
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
## 📁 Erstes Projekt starten
|
|||
|
|
|||
|
### Beispiel: Rust-Projekt
|
|||
|
|
|||
|
```bash
|
|||
|
cargo new hallo_helix
|
|||
|
cd hallo_helix
|
|||
|
hx src/main.rs
|
|||
|
```
|
|||
|
|
|||
|
### Beispiel: JavaScript-Projekt
|
|||
|
|
|||
|
```bash
|
|||
|
mkdir node_hello && cd node_hello
|
|||
|
echo 'console.log("Hallo, Welt!");' > index.js
|
|||
|
hx index.js
|
|||
|
```
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
## ⌨ Bedienkonzept von Helix
|
|||
|
|
|||
|
### Modale Steuerung (ähnlich wie Vim)
|
|||
|
|
|||
|
- **Normalmodus**: Standardmodus zum Navigieren und Bearbeiten
|
|||
|
- **Einfügemodus (Insert)**: `i` drücken zum Schreiben
|
|||
|
- **Auswahlmodus (Select)**: `v` für Zeichenweise, `V` für Zeilenweise Auswahl
|
|||
|
|
|||
|
### Wechsel der Modi
|
|||
|
|
|||
|
| Modus | Taste | Funktion |
|
|||
|
| ----------- | ----- | ----------------------- |
|
|||
|
| Normal | `Esc` | Zur Steuerung & Befehle |
|
|||
|
| Insert | `i` | Einfügen / Tippen |
|
|||
|
| Select | `v` | Auswahl ab Cursor |
|
|||
|
| Line-Select | `V` | Ganze Zeile auswählen |
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
## ⚖️ Wichtige Tastenkombinationen
|
|||
|
|
|||
|
| Tastenkombi | Bedeutung |
|
|||
|
| ----------- | --------------------------------- |
|
|||
|
| `:w` | Datei speichern |
|
|||
|
| `:q` | Editor beenden |
|
|||
|
| `:wq` | Speichern und beenden |
|
|||
|
| `g g` | Zum Anfang der Datei |
|
|||
|
| `G` | Zum Ende der Datei |
|
|||
|
| `d d` | Aktuelle Zeile löschen |
|
|||
|
| `u` | Letzte Änderung rückgängig machen |
|
|||
|
| `space + /` | Fuzzy-Dateisuche starten |
|
|||
|
| `space + g` | Git-Diff anzeigen |
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
## 🪨 Sprachserver (LSP)
|
|||
|
|
|||
|
Helix erkennt automatisch den Dateityp und startet den passenden Sprachserver:
|
|||
|
|
|||
|
### Rust
|
|||
|
|
|||
|
```bash
|
|||
|
rustup component add rust-analyzer
|
|||
|
```
|
|||
|
|
|||
|
### JavaScript/TypeScript
|
|||
|
|
|||
|
```bash
|
|||
|
npm install -g typescript typescript-language-server
|
|||
|
```
|
|||
|
|
|||
|
### C / C++
|
|||
|
|
|||
|
```bash
|
|||
|
sudo dnf install clang clang-tools-extra
|
|||
|
```
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
## ⚖️ LSP-Befehle in Helix
|
|||
|
|
|||
|
| Taste | Bedeutung |
|
|||
|
| ----- | ------------------------------- |
|
|||
|
| `g d` | Gehe zur Definition |
|
|||
|
| `g r` | Gehe zu Referenzen |
|
|||
|
| `K` | Hover-Info anzeigen (Typ, Doku) |
|
|||
|
| `=` | Formatieren |
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
## 📂 Konfiguration
|
|||
|
|
|||
|
Helix-Konfiguration liegt unter:
|
|||
|
|
|||
|
```bash
|
|||
|
~/.config/helix/config.toml
|
|||
|
```
|
|||
|
|
|||
|
Zum Öffnen:
|
|||
|
|
|||
|
```bash
|
|||
|
:config-open
|
|||
|
```
|
|||
|
|
|||
|
### Beispiel-Inhalt
|
|||
|
|
|||
|
```toml
|
|||
|
theme = "base16_default_dark"
|
|||
|
|
|||
|
[keys.normal]
|
|||
|
"C-s" = ":w"
|
|||
|
"C-q" = ":wq"
|
|||
|
```
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
## 🌍 Weitere Ressourcen
|
|||
|
|
|||
|
- Offizielle Seite: [https://helix-editor.com](https://helix-editor.com)
|
|||
|
- GitHub: [https://github.com/helix-editor/helix](https://github.com/helix-editor/helix)
|
|||
|
- Tastenkombis: [https://docs.helix-editor.com/](https://docs.helix-editor.com/)
|
|||
|
|
|||
|
---
|