Synchronized text editor over TCP, for live editing with others. Written in Python with PyGame.
- Install requirements:
pip install -r requirements.txt
- Run main.py:
python3 main.py
This text editor consist from 2 parts: host and client. They are ran on different devices. Host must be ran first. Which one is host is set in "conf.txt" located in project directory. Host must be on LAN, port-forwarded or tunneled with ngrok. Port and host address must be set in "conf.txt". SyncTEd requires small latency, bellow 150ms is recommended.
In "conf.txt" are several more settings:
- Host - if True: this is host, if False: this is client
- Ask save - set False to stop it from asking to save
- Encryption - if True, asymmetric RSA encryption will be used for communication
- Tab spaces - change how many spaces wide will be tab
- Window width and height - in pixels
- Client address and port - hosts address and port on which client will connect (only for client)
- Host local address and port - address and port on which will client connect (only for host)
Keys:
- Up, Down, Left, Right arrows
- Tab
- Shift
- Caps Lock
- Save: Ctrl+S
- Load: Ctrl+L
- Clone this repository:
git clone https://github.com/mzivic7/SyncTEd.git
cd SyncTEd
- Install requirements:
pip install -r requirements.txt
- run build script:
python build.py
- Install Python 3.10 or later
- Clone this repository, unzip it
- Open terminal, cd to unzipped folder
- Install requirements:
pip install -r requirements.txt
- Run build script:
python build.py
- Send data larger than 2048 bits
- Smart tab (add correct number of spaces, backspace deletes whole tab)
- Line wrapping
- Scrolling and scrollbar
- Selecting (mouse, click, keyboard)
- Work with large ping
- Multi-threaded server