https://github.com/proh14/ptext
A nano like text editor built with pure C
https://github.com/proh14/ptext
bsd-2-license c collaborate hacktoberfest-accepted kilo terminal text-editor tui
Last synced: 5 months ago
JSON representation
A nano like text editor built with pure C
- Host: GitHub
- URL: https://github.com/proh14/ptext
- Owner: proh14
- License: bsd-2-clause
- Created: 2023-09-19T05:00:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T19:22:50.000Z (over 1 year ago)
- Last Synced: 2024-12-11T20:30:41.462Z (over 1 year ago)
- Topics: bsd-2-license, c, collaborate, hacktoberfest-accepted, kilo, terminal, text-editor, tui
- Language: C
- Homepage:
- Size: 349 KB
- Stars: 198
- Watchers: 3
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
ptext
A nano like text editor built with pure C
ptext is a text editor based on kilo.
My goal in making this was to learn more about managing tui interfaces not using ncurses.
### Preview🙈:
https://github.com/proh14/ptext/assets/95998030/08ee068b-fe9b-4d3f-b3e4-49d3a66855d5
### How to install⬇️:
1. Clone this repo.
```shell
git clone https://github.com/proh14/ptext.git
cd ptext
```
2. Run `make` inside this repo's main directory.
```shell
make
```
3. go to build directory
```shell
cd build
```
4. run ptext!
```shell
./ptext
```
OR to install you may run the command
```shell
make install
```
then restart your shell and run
```shell
ptext
```
to start the editor.
### Documentation📖:
If you installed ptext (with the make install command) on a *nix system you can simply run
``` shell
man ptext
```
to see the maual page of ptext.
Otherwise take a look at [./docs](./docs] directory to see the manual in different formats!
The markdown version of the [manual](./docs/manual.md)
### Goals🥅:
1. Add visual mode (Selecting, copy selection, paste selection, delete selection).
2. Fix replace.
3. Add keyboard configuration(like `bind-key CTRL_X exit`).
4. Add syntax highlighting configuration.
5. Add file browser mode.
6. Add shell mode.
7. Add a self contained help-system.
8. Add vertical and horizontal split.
9. Add VI mode.
10. Add utf support.
### Work in progress⚒️:
This is still a work in progress project!
### Contributions💖:
I appreciate contributions but first of all, you must read the
Read the [CONTRIBUTING.md](CONTRIBUTING.md) Then you can send your pr!
### Thank you Stargazers⭐:
[](https://github.com/proh14/ptext/stargazers)
### Thank you Forkers🍴:
[](https://github.com/proh14/ptext/network/members)
### A huge thanks to🙏:
1. [viewsourcecode](https://viewsourcecode.org)
2. [kilo](https://github.com/antirez/kilo)