All Projects → engali94 → ax-editor

engali94 / ax-editor

Licence: other
Ax is a code editor with syntax highlighting that runs in your terminal written completely in Swift.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to ax-editor

Squircle-IDE
👨‍💻 Squircle CE is a fast and free multi-language code editor for Android
Stars: ✭ 642 (+1428.57%)
Mutual labels:  syntax-highlighting, code-editor, text-editor
Brackeys Ide
👨‍💻 Brackeys IDE is a fast and free multi-language code editor for Android.
Stars: ✭ 154 (+266.67%)
Mutual labels:  syntax-highlighting, code-editor, text-editor
Subethaedit
General purpose plain text editor for macOS. Widely known for its live collaboration feature.
Stars: ✭ 1,183 (+2716.67%)
Mutual labels:  syntax-highlighting, code, text-editor
KodeEditor
A simple code editor with syntax highlighting and pinch to zoom
Stars: ✭ 60 (+42.86%)
Mutual labels:  syntax-highlighting, code, code-editor
Bim
small terminal text editor with syntax highlighting
Stars: ✭ 174 (+314.29%)
Mutual labels:  syntax-highlighting, code-editor, text-editor
Atsynedit
Multi-line editor control, with syntax highlighting, for Lazarus
Stars: ✭ 92 (+119.05%)
Mutual labels:  syntax-highlighting, text-editor
Ngx Highlightjs
Angular syntax highlighting module
Stars: ✭ 187 (+345.24%)
Mutual labels:  syntax-highlighting, code
SynWrite
SynWrite text editor. Not the entire source, because EControl is closed-source. If you get the license for EControl, I will help to compile the SynWrite.
Stars: ✭ 68 (+61.9%)
Mutual labels:  syntax-highlighting, text-editor
code-run
一个代码在线编辑预览工具,类似codepen、jsbin、jsfiddle等。
Stars: ✭ 325 (+673.81%)
Mutual labels:  code, code-editor
sora-editor
A cool code editor library on Android with syntax-highlighting and auto-completion. (aka CodeEditor)
Stars: ✭ 580 (+1280.95%)
Mutual labels:  syntax-highlighting, code-editor
JCEditor
📝 Text editor created in Java
Stars: ✭ 33 (-21.43%)
Mutual labels:  syntax-highlighting, text-editor
Codeeditor
A cool code editor library on Android with syntax-highlighting and auto-completion.
Stars: ✭ 84 (+100%)
Mutual labels:  syntax-highlighting, code-editor
flaskcode
A web based code editor on python flask framework.
Stars: ✭ 43 (+2.38%)
Mutual labels:  code, code-editor
Fragaria
Cocoa syntax highlighting text view
Stars: ✭ 53 (+26.19%)
Mutual labels:  syntax-highlighting, text-editor
vulcan
A minimalistic text editor designed for both ordinary use and software development
Stars: ✭ 46 (+9.52%)
Mutual labels:  code-editor, text-editor
O
🌀 Text editor suitable for writing git commit messages and editing Markdown files. Can build executables and jump to errors at the press of `ctrl-space`, for several programming languages. Can format code with `ctrl-w`. Provides general syntax highlighting, rainbow parenthesis and cut/paste portals. o is intentionally limited to VT100.
Stars: ✭ 54 (+28.57%)
Mutual labels:  syntax-highlighting, text-editor
Rsyntaxtextarea
A syntax highlighting, code folding text editor for Java Swing applications.
Stars: ✭ 767 (+1726.19%)
Mutual labels:  syntax-highlighting, code-editor
Imguicolortextedit
Colorizing text editor for ImGui
Stars: ✭ 772 (+1738.1%)
Mutual labels:  syntax-highlighting, text-editor
code editor
A code editor (dart, js, html, ...) for Flutter with syntax highlighting and custom theme.
Stars: ✭ 48 (+14.29%)
Mutual labels:  syntax-highlighting, code-editor
editor
A text editor written in Nim
Stars: ✭ 24 (-42.86%)
Mutual labels:  syntax-highlighting, text-editor

AX Editor

A light weigt text editor with syntax highlighting. It is written completly in Swift using ANSI Escape Sequnces. It is still not complete and buggy (work in progress) contributions are warmly welcomed 🙌

enter image description here

Installation

  • Clone and cd into the repository

  • Run swift package generate-xcodeproj

  • Run the following command to try it out:

swift run ax --help

Usage

Opening files in Ax

At the moment, you can open ax editor by using the command

swift run ax

This will open up an empty document.

If you wish to open a file straight from the command line, you can run

swift run ax /path/to/file

To open and edit a file.

Moving the cursor around

You can use the arrow keys to move the cursor around

You can also use:

  • PageUp - Go to the top of the document

  • PageDown - Go to the bottom of the document

  • Home - Go to the start of the current line

  • End - Go to the end of the current line

Editing the file

You can use the keys Backspace and Return / Enter as well as all the characters on your keyboard to edit files!

OAx is controlled via your keyboard shortcuts. Here are the default shortcuts that you can use:

| Keybinding | What it does |

Keybinding What it does
Ctrl + D Exits the the editor.
Ctrl + S Saves the open file to the disk (To be Implemented).
Ctrl + F Searches the document for a search query. Allows pressing of and to move the cursor to the previous occurance fof the query and and to move to the next occurance of the query. Press Return to cancel the search at the current cursor position or Esc to cancel the search and return to the initial location of the cursor. Note: this allows you to use regular expressions. (To be Implemented).
Ctrl + U Undoes your last action. The changes are committed to the undo stack every time you press the space bar, create / destroy a new line and when there is no activity after a certain period of time which can be used to capture points where you pause for thought or grab a coffee etc...
Ctrl + R Redoes your last action. The changes are committed to the undo stack every time you press the space bar, create / destroy a new line and when there is no activity after a certain period of time which can be used to capture points where you pause for thought or grab a coffee etc...
Ctrl + F Allows replacing of occurances in the document. Uses the same keybindings as the search feature: and to move the cursor to the previous occurance fof the query and and to move to the next occurance of the query. You can also press Return, y or Space to carry out the replace action. To exit replace mode once you're finished, you can press Esc to cancel and return back to your initial cursor position. Note: this allows you to use regular expressions.(To be Implemented).
Ctrl + A Carries out a batch replace option. It will prompt you for a target to replace and what you want to replace it with and will then replace every occurance in the document. Note: this allows you to use regular expressions. (To be Implemented).

TODO

  • Basic editing functions

  • Line numbers

  • Undo and Redo

  • Syntax highlighting

  • Loading files

  • Saving files

  • Searching and replacing

  • Command line bar

  • Status bar

  • Config files

  • Tabs for multitasking

  • Auto indentation

  • Prettifier / Automatic code formatter

  • Built In linters

  • Auto brackets

  • Auto complete

  • File tree

  • Start page

Contributing

Contributions are warmly welcomed 🙌

Credits

Thanks to all the authors and contributers of the following tools: ColorizeSwift CrossTerm Ox Editor

Licence

It is released under the MIT license, see Licence

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].