You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NVR-Editor is a terminal-based Python code editor designed for efficient and streamlined development directly from the command line.
This tools AST merging functionality is a python implementation of the AST merging methodology from the aiCoder project
Features
AI-Driven Refactoring: Leverages advanced Abstract Syntax Tree (AST) merging for seamless code integration and editing.
Terminal-Based Interface: Operate entirely within the terminal, eliminating the need for external GUI-based editors.
Plugin Support: Extend functionality through a flexible plugin system.
Customizable Configuration: Adjust settings via a config.json file to tailor the editor to your preferences.
Downloading the AI Model
To use the granite3.1-dense model with Ollama, follow these steps:
Step 1: Install Ollama
Ensure that you have Ollama installed. If it's not already installed, download it from the Ollama website and follow the installation instructions for your platform.
Step 2: Download granite3.1-dense
Ollama provides a simple command-line interface to download and use models. To download the granite3.1-dense model:
Open your terminal.
Run the following command:
ollama pull granite3.1-dense
This command will fetch the granite3.1-dense model and prepare it for use.
Step 3: Verify Installation
To ensure the model is downloaded and available for use, run:
ollama list
This will display a list of models installed on your system. Ensure that granite3.1-dense is listed.
Step 4 (OPTIONAL): Testing the model
To test granite3.1-dense directly from Ollama, you can run:
ollama chat granite3.1-dense
This opens an interactive chat with the model to verify its capabilities.
Ensure you have Python installed, then install the required packages:
pip install -r requirements.txt
Usage
Run the main script to start the editor:
python main.py
Upon launch, NVR-Editor will load with the default configuration specified in config.json.
Configuration
Modify the config.json file to customize editor settings.
Plugins
Extend NVR-Editor's functionality by adding plugins to the Plugins directory. Each plugin should be a Python script with a specific structure. Below is an example of a simple plugin: