Repository navigation
v1.0.4
QV - Quantum Visual editor, is a fast and intuitive terminal-based text editor based on the kilo
editor, with a lot of improvements! Forexample: better syntax highlighting! It also runs
on the C standard library so that's good!
Requirements
- Either make or gcc
- Git or Github CLI (optional)
- One of the following shells:
- Sh
- Bash
- Zsh
- Fish
- PowerShell
- Cmd.exe
Install
To install, you can use this handy table to find out what to do:
| Application | Command |
|---|---|
| Git | git clone https://github.com/ElisStaaf/qv ~/qv |
| Github CLI | gh repo clone ElisStaaf/qv ~/qv |
| cURL | curl -s https://github.com/ElisStaaf/qv/{src/qv.c,init/init.sh,init/init.ps1,init/init.bat,init/init.fish,Makefile} ~/qv |
After this, you'd want to use "make" to initialize an executable:
cd ~/qv
makeIf you don't have make installed on your system; you can use GCC:
cd ~/qv
gcc -o qv src/qv.cYou can grab yourself a copy of gcc here,
and a copy of make here.
Then you want to initialize the editor via your shell, here is an
informative table on what shells are supported (Note that you may
need to change permissions for some of these):
| Shell | File | Init |
|---|---|---|
| Sh/Bash/Zsh | init/init.sh | chmod +x ~/qv/init/init.sh; sh ~/qv/init/init.sh |
| Powershell | init/init.ps1 | PowerShell $env:USERPROFILE/qv/init.ps1 |
| Fish | init/init.fish | chmod +x ~/qv/init/init.fish; ~/qv/init/init.fish |
| Cmd.exe | init/init.bat | mklink %windir%/Cmd.exe /K %USERPROFILE%/qv/init/init.bat %USERPROFILE%/Cmd |
Project layout
├── helloworld.png Picture for README
├── init/ Initializer files
│ ├── init.bat Init for Cmd.exe
│ ├── init.fish Init for fish
│ ├── init.ps1 Init for PowerShell
│ └── init.sh Init for Sh/Bash/Zsh
├── LICENSE.APACHE Apache license for the "qv" source code
├── LICENSE.BSD BSD license for the "kilo" source code
├── Makefile Makefile for config
├── README.md README for info
├── src/ Source code
│ └── qv.c Source file
├── startup.png Picture for README
└── TODO.md Todo list
Get Started
To get started, just open a file via QV!
qv <filename>Currently, QV includes syntax highlighting for the following languages:
- C/C++
- Shell
- Golang
- Python
- JS/TS
- C#
- HTML
- Rust
- CSS
- Ruby
- D
- SQL
- Lua
- Powershell
- Batch
But you can ofcourse modify the source-code to add more! I shall for this tutorial
use the "C" programming language.
touch "main.c" # Create file
qv "main.c" # Open fileI am greeted to this interface:

Great! It started up! I'm writing a simple Hello World app, so i can just write this:

As you can see, the syntax highlighting kicked in right away! Now, i save my app with Ctrl+S, then quit with Ctrl+Q. Then i can run the
file with my preferred compiler and i will be done with my task. Now what if i'm managing a huge codebase? How am i supposed to find the invalid
reference of variable &HLDB[]? Well, you can find everything with Ctrl+F. I press Ctrl+F input my text and search with the arrow keys! Then i realize that &HLDB[]
never existed and i was just crazy. And that's the tutorial!
Oh, and before you go, this text editor is not meant to be anyones main editor, it's way
to bad for that. No, this editor is meant to be like Nano, a simple command line editor! And, with that, enjoy!
This work is licensed under the BSD-Clause-2-license (for the "kilo" source code), and the
Apache-2.0-license (For the modified parts of the source code), please abide to each license
under the fitting circumstances.