Skip to content

mhaxanali/nixscribe

Repository files navigation

nixscribe — Terminal Text Editor

By mhasanali2010

About nixscribe

nixscribe is a terminal-based text editor written in Python.
It supports CLI arguments:

  • --create — create files
  • --read — view files with syntax highlighting
  • --edit — edit files with syntax highlighting

Syntax highlighting is supported for Python, HTML, CSS, and JavaScript.
Editing is powered by prompt_toolkit, while viewing uses rich for syntax highligh

Resources

PyPI Link

https://pypi.org/project/nixscribe

GitHub Repository

https://github.com/mhasanali2010/nixscribe

External Dependencies

Stated in requirements.txt:

  • prompt_toolkit
  • rich
  • pygments

Installation

Install using pip:

pip install nixscribe

Usage

  • To create a file:
    nixscribe --create <path\to\file>
  • To read from a file:
    nixscribe --read <path\to\file>
  • To edit a file:
    nixscribe --edit <path\to\file>

Keybinds in Edit Mode

  • Ctrl+Q to quit editing without saving.
  • Ctrl+S to save without quitting.
  • F3 to save & quit.

About

A CLI Text Editor using Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages