Skip to content
/ ptext Public
forked from proh14/ptext

A nano like text editor built with pure C

License

Notifications You must be signed in to change notification settings

C-F-J/ptext

This branch is 113 commits behind proh14/ptext:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

530e763 · Dec 29, 2023

History

74 Commits
Dec 24, 2023
Dec 23, 2023
Dec 29, 2023
Dec 25, 2023
Oct 14, 2023
Dec 24, 2023
Dec 24, 2023
Dec 24, 2023
Dec 25, 2023
Dec 27, 2023
Oct 14, 2023

Repository files navigation


ptext logo
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🙈:

preview.mp4

How to install⬇️:

  1. Clone this repo.
git clone https://github.com/proh14/ptext.git
cd ptext
  1. Run make inside this repo's main directory.
make
  1. go to build directory
cd build
  1. run ptext!
./ptext <filename>

OR to install you may run the command

sudo make install

then restart your shell and run

ptext <file name>

to start the editor.

A little bit of documentation📖:

  • To exit you can press CTRL + q
  • To save you can press CTRL + s
  • To search you can press CTRL + f
  • To search & replace you can press CTRL + r
  • To goto the start of the line you can press CTRL + a
  • To goto the end of the line you can press CTRL + e
  • To goto the start of the file you can press CTRL + u
  • To goto the end of the file you can press CTRL + d

Goals🥅:

  1. Fix syntax highlighting.
  2. Add a plugin system.
  3. Add windows.
  4. Add utf support.
  5. Read the terminfo database.

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 Then you can send your pr!

Thank you Stargazers⭐:

Stargazers repo roster for @proh14/ptext

Thank you Forkers🍴:

Forkers repo roster for @proh14/ptext

A huge thanks to🙏:

  1. viewsourcecode
  2. kilo

About

A nano like text editor built with pure C

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.1%
  • Makefile 2.9%