Coder Social home page Coder Social logo

redit's Introduction

redit

A simple text editor written in rust.

Screenshot of redit opened in Windows and Linux showing two themes

Redit opened in Windows and Linux (WSL) showing the Dracula theme (separate) and the default Solarized dark theme.

Features

  • Terminal listens to resize events
  • Page Up/Down, Home/End, Arrow, and Ctrl-Arrow key navigation
  • Select text with Shift
  • Multiple file buffers
  • Copy and Paste (not yet using system clipboard)
  • Highlight selected text
  • Syntax highlighting
  • Mouse support (dependent on terminal emulator)
  • Undo and redo history
  • Command palette
  • Sublime Themes (.tmTheme) in themes subfolder of config directory
  • Sublime syntaxes (.sublime-syntax) in syntaxes subfolder of config directory

In-Progress

Roughly listed in order of priority:

  • Directory opening (medium)
  • Search (hard)
  • Better Ctrl-Arrow key navigation (medium)
  • Ask to reload file when changed on disk (hard)
  • Copy and paste using system clipboard

Key-Bindings

  • Ctrl-q - quits the current editor (or program when in last editor)
  • Ctrl-r - reloads the current file from disk
  • Ctrl-s - saves the currently open file (or asks where to save new file)
  • Ctrl-o - opens a file
  • Ctrl-e - opens the command palette
  • Ctrl-c, Ctrl-x, Ctrl-v - copy, cut, and paste respectively (works across editor buffers)
  • Ctrl-p or Ctrl-n - switch to the previous or next editor respectively
  • Ctrl-b - creates a new editor
  • Home or End - moves to the beginning or end of the current line
  • PageUp or PageDown - moves (up to) one screen height up or down
  • Backspace or Delete - deletes the character directly behind or in front of the cursor
  • Enter - creates a line break by copying the line break at the end of the current line
  • Escape - exits the command palette if active
  • Anything other than characters is currently ignored (note: doesn't even refresh editor)

Command Palette

The following commands are implemented:

  • save [file_path] - Saves the current file as file_path
  • open [file_path] - Opens file_path in the current editor (gracefully asks to discard changes)
  • reload - Reloads the current file from disk (gracefully asks to discard changes)
  • quit - Closes the current editor (gracefully asks to discard changes) or closes program on last editor quit

Customization

The config folder is ~/.config/redit. Supported settings are in [config_folder]/settings.toml with the following keys:

  • theme = "Solarized (light)" (pulls from a default list of themes and any in the themes subfolder)

redit's People

Contributors

dodgez avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.