A textual-based lazy editing tool
Project description
LazyEdit - The Effortless TUI Code Editor
When you're too lazy to open a full IDE, but too productive for Notepad.
Code editing shouldn't be hard work. Be lazy. Be efficient.
LazyEdit is a lightweight, terminal-based code editor with an integrated PowerShell terminal designed for developers who want a streamlined editing experience without leaving the command line.
โจ Features
- All-in-One Interface: File browser, text editor, and PowerShell terminal in a single window
- Keyboard-Driven: Navigate and edit efficiently with intuitive keyboard shortcuts
- Syntax Highlighting: Makes your code more readable and easier to understand
- Integrated Terminal: Run commands without switching applications
- Lightweight: Minimal resource usage compared to full IDEs
- Windows-Optimized: Built specifically for Windows with PowerShell integration
๐ Table of Contents
๐ Installation
pip install lazyedit
That's it! No complex setup or configuration required.
If it fails to run your Python Scripts folder might not be in the system PATH.
Run:
$env:Path += ";C:\Users\YourUserName\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts"
Now try running lazyedit again.
๐โโ๏ธ Quick Start
After installation, simply run:
lazyedit
You'll be greeted with a three-panel interface:
- Left panel: File browser
- Main panel: Text editor
- Bottom panel: PowerShell terminal
๐ Usage Guide
File Navigation
- Use Directory Mode (
Ctrl+2) to browse files - Navigate with arrow keys to select a file
- Press Space to open the selected file in the editor
- Press Enter to create a new file
- Press Backspace to delete a file
Editing Files
- Switch to File Editing Mode (
Ctrl+3) to edit the opened file - Use standard keyboard navigation (arrows, Home, End) to move around
- Save your changes with
Ctrl+S
Using the Terminal
- Switch to Terminal Mode (
Ctrl+5) to use the PowerShell terminal - Execute commands as you would in a normal PowerShell window
- The terminal shows your current directory relative to where LazyEdit was launched
โจ๏ธ Keyboard Shortcuts
General Shortcuts
| Shortcut | Action |
|---|---|
| Ctrl + Q | Quit LazyEdit |
| Ctrl + 2 | Switch to Directory Mode |
| Ctrl + 3 | Switch to File Editing Mode |
| Ctrl + 5 | Switch to Terminal Mode |
๐ Directory Mode
| Shortcut | Action |
|---|---|
| Enter | Create a new file in the current directory |
| Backspace | Delete the selected file |
| Space | Open the selected file in the text editor |
| โ / โ | Navigate the file list |
๐ File Editing Mode
| Shortcut | Action |
|---|---|
| Ctrl + S | Save the currently open file |
| โ / โ | Move cursor line up/down |
| Home / End | Move to start/end of the current line |
| Ctrl + A | Select all text |
| Ctrl + X | Cut selected text |
| Ctrl + C | Copy selected text |
| Ctrl + V | Paste copied text |
| Ctrl + Z | Undo last action |
| Ctrl + Y | Redo last undone action |
| Ctrl + โ | Move cursor one word left |
| Ctrl + โ | Move cursor one word right |
| Shift + โ | Select text left |
| Shift + โ | Select text right |
| Ctrl + Backspace | Delete word left |
| Ctrl + Delete | Delete word right |
| Ctrl + Shift + K | Delete current line |
๐ป Terminal Mode
| Shortcut | Action |
|---|---|
| Ctrl + C | Send interrupt signal (in Terminal) |
| Ctrl + L | Clear terminal screen |
๐ป Development
Want to contribute or run from source? Follow these steps:
# Clone the repository
git clone https://github.com/Robbevanherpe1/lazyedit.git
cd lazyedit
# Create and activate development environment
hatch env create
hatch shell
# Install in development mode
pip install -e .
# Run LazyEdit
lazyedit
Project Structure
lazyedit/
โโโ src/
โ โโโ lazyedit/
โ โโโ __init__.py
โ โโโ __about__.py
โ โโโ directory.py # File browser functionality
โ โโโ fileEditor.py # Text editing functionality
โ โโโ gui.py # Main application interface
โ โโโ terminal.py # PowerShell terminal integration
โโโ pyproject.toml
โโโ README.md
โโโ LICENSE.txt
๐ License
LazyEdit is distributed under the terms of the MIT license.
Made with โค๏ธ by Robbe
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lazyedit-0.0.7.tar.gz.
File metadata
- Download URL: lazyedit-0.0.7.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c66590d1066c1e00ce4855273efe9a5e363e61fe379b322f091979f75b5fb67
|
|
| MD5 |
d6219f9fa6002ccfccbf742c006c1f4a
|
|
| BLAKE2b-256 |
fa39b36e9cc476efb6ca523a803a78e5ec3a4e830be3441cc39dc32882758d8e
|
File details
Details for the file lazyedit-0.0.7-py3-none-any.whl.
File metadata
- Download URL: lazyedit-0.0.7-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f32e56afcbe60ea9addda4ad1f640d34436c8d952bdc354c9033a2cc73d8406d
|
|
| MD5 |
3d4c6c844226678946964ca538966a10
|
|
| BLAKE2b-256 |
9b5818eb7f13fce4c1110a16c1447d4eb7f1960dd64a4aba1dae521d4268789e
|