Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions extensions/git-editor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
vicinae-env.d.ts
66 changes: 66 additions & 0 deletions extensions/git-editor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Git Editor

Use Vicinae as your git editor for commits and interactive rebases.

## Features

### Git Commit

Write commit messages with a user-friendly interface. Choose between two commit styles:

- **Conventional Commits** - Structured commit messages with type, scope, and breaking change indicators
- Types: `feat`, `fix`, `docs`, `ci`, `wip`
- Optional scope
- Breaking change flag
- **Simple** - Free-form commit message

You can swap between commit styles at any time while writing your message.

### Interactive Rebase

A visual interface for `git rebase -i` with full control over your commits:

- **Reorder commits** - Move commits up/down with `Ctrl+W` / `Ctrl+S`
- **Change commit actions** - Quick shortcuts for common operations:
- `p` - Pick
- `e` - Edit
- `r` - Reword
- `f` - Fixup
- `d` - Drop

Commits are displayed with their hash, message, date, and current action (color-coded).

## Setup

The extension includes a built-in setup wizard. When you first run it:

1. Open the Git Commit or Git Sequence command in Vicinae
2. Press `Ctrl+Enter` to automatically configure git

This sets the following git configuration:

```bash
git config --global core.editor "git-vicinae-editor"
git config --global sequence.editor "git-vicinae-sequence-editor"
```

## Usage

After setup, simply use git as normal:

```bash
# For commits
git commit

# For interactive rebase
git rebase -i HEAD~5
```

Vicinae will automatically open with the appropriate interface.

## Preferences

| Name | Type | Default | Description |
|------|------|---------|-------------|
| Commit Type | Dropdown | Conventional Commits | Choose between Conventional Commits or Simple format |

Binary file added extensions/git-editor/assets/commit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/git-editor/assets/git-editor-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/git-editor/assets/head.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading