BatchEditor is an open-source text editor written in batch script, inspired by Vim. It allows users to edit text files directly from the command line with a variety of features such as navigation, editing, adding, and deleting lines.
To install BatchEditor, simply clone the repository to your local machine:
git clone https://github.com/ghalbeyou/batcheditor.git
cd batcheditor
To start using BatchEditor, open a command prompt and navigate to the directory where you cloned the repository. Then, run the following command:
BatchEditor.bat o <path_to_directory> <file_name>
BatchEditor.bat o E:\Code package.json
<path_to_directory>
must be a valid path to the directory of the file.<file_name>
should be a valid file name.- Ensure there is a space between
<path_to_directory>
and<file_name>
.
BatchEditor can be configured using the config.ini
file located in the /data
directory. This file has three sections:
- Editor Keys: Defines key bindings for various editor actions.
- Startup Commands: Specifies commands to be executed when the editor starts up.
- Plugins: Enables or disables plugins.
[Editor Keys]
save=Ctrl+S
quit=Ctrl+Q
[Startup Commands]
command1=echo Welcome to BatchEditor!
[Plugins]
bat_autocomplete=enabled
BatchEditor supports plugins to extend its functionality. The default plugin available is bat_autocomplete
, which provides autocomplete features for batch commands.
The plugin configuration file is located in the /plugins
directory and is named bat_autocomplete.ini
. It has two sections:
- Manifest: Provides information about the plugin such as its title, description, author, and URL.
- Settings: Specifies the type of plugin and the autocomplete options.
[Manifest]
title=Batch Autocomplete Plugin
description=Provides autocomplete features for batch commands.
author=GhalbeYou
url=https://github.com/ghalbeyou/batcheditor
[Settings]
type=autocomplete
commands=echo,if,choice
We welcome contributions to make BatchEditor better and bigger! To contribute:
- Fork the repository.
- Edit the code.
- Open a new Pull Request (PR).
For more details, please refer to the CONTRIBUTING.md file.
BatchEditor is licensed under the MIT License. See the LICENSE file for more details.
This is an open-source application made by @GhalbeYou. It is not intended for sale or commercial use.