An open API service indexing awesome lists of open source software.

https://github.com/xor-bits/text-editor

VIM-like CLI text editor with remote edit capabilities
https://github.com/xor-bits/text-editor

cli docker file-explorer file-manager file-viewer rust ssh text-editing text-editor tui vim

Last synced: 6 days ago
JSON representation

VIM-like CLI text editor with remote edit capabilities

Awesome Lists containing this project

README

          

# text-editor

VIM/NeoVIM/Emacs Evil Mode/Helix/Kakoune -like cross-platform terminal based text editor

The plan is to create a text editor that can edit (almost) anything and (almost) anywhere.
Like a local config file, or a level.dat NBT file in a remote server over both SSH and Docker.

Remote editing should work like TRAMP in Emacs.

Buffers have a mode for the content type, like text, hex, NBT, or other binary formats.

## Example usage

```
# just a normal local file
text-editor src/main.rs

# use sudo to edit /etc/fstab
text-editor sudo:/etc/fstab

# connect to user1@host1 using ssh, then connect to user2@host2 from host1 and open 'file'
text-editor ssh:user1@host1|ssh:user2@host2:file
```

## Screenshots

### normal file editing and which-key
![image](https://github.com/user-attachments/assets/0e5fb113-7f80-474a-9b8e-1f55db3cfe26)

### NBT file editing over SSH
![image](https://github.com/user-attachments/assets/90931fa2-d80e-4c0c-ad1d-d849acdbbfc4)

### file explorer and editor over ssh
![image](https://github.com/user-attachments/assets/15d27e2b-8e1b-4caf-877f-b7e16dafac07)

### command suggestions
![image](https://github.com/user-attachments/assets/cfeab306-0eee-4856-8741-55b1f02c6fbd)

## TODOs

- [x] file editing
- [x] remote (ssh/sudo/docker/..) file editing
- [x] SSH/sudo askpass somehow
- [x] multiple buffers
- [x] file picker
- [x] buffer picker
- [x] welcome message
- [ ] selections
- [x] hex editor
- [x] NBT editor
- [ ] text-editor configuration
- [x] syntax highlighting
- [ ] LSP
- [ ] search