https://github.com/avinal/scratch-pad
Creating a text editor in C
https://github.com/avinal/scratch-pad
Last synced: about 2 months ago
JSON representation
Creating a text editor in C
- Host: GitHub
- URL: https://github.com/avinal/scratch-pad
- Owner: avinal
- License: other
- Created: 2024-07-02T16:01:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-13T14:16:26.000Z (almost 2 years ago)
- Last Synced: 2025-02-22T01:32:04.498Z (over 1 year ago)
- Language: C
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scratch Pad
Creating a simple text editor in C.
## How to compile and run
There are no dependencies other than a working C compiler. All the headers used are mostly present by default on any linux system.
- Either GCC or Clang
- Make
Run:
```bash
git clone https://github.com/avinal/scratch-pad.git
cd scratch-pad
make
```
## Usage
### Editing
- Create a new file and edit.
```bash
./scratch
```
- Edit an exisiting file
```bash
./scratch
```
### Keybindings
| Actions | Key Combination |
| --- | --- |
| Close the editor | `CTRL+X` |
| Save the modification | `CTRL+S` |
| Delete a character | `Backspace`, `Delete`, `CTRL+H` |
| The usual | `Arrows`, `Home`, `End`, 'Page Up/Down' |
## Features
Nothing more than being able to edit text files.
## Acknowledgement
- [Build your own text editor](https://viewsourcecode.org/snaptoken/kilo/index.html) by Paige Ruten
- [Kilo Editor](https://github.com/antirez/kilo) by Salvatore Sanfilippo aka antirez