-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:helix-editor/helix into mi-ma-sanity
- Loading branch information
Showing
118 changed files
with
1,894 additions
and
1,311 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Bug Report | ||
description: Create a report to help us improve | ||
labels: C-bug | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thank you for filing a bug report! 🐛 | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Summary | ||
description: > | ||
Please provide a short summary of the bug, along with any information | ||
you feel relevant to replicate the bug. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reproduction-steps | ||
attributes: | ||
label: Reproduction Steps | ||
value: | | ||
<!-- Ideally provide a key sequence and/or asciinema.org recording. --> | ||
I tried this: | ||
1. `hx` | ||
I expected this to happen: | ||
Instead, this happened: | ||
- type: textarea | ||
id: helix-log | ||
attributes: | ||
label: Helix log | ||
description: See `hx -h` for log file path | ||
value: | | ||
<details><summary>~/.cache/helix/helix.log</summary> | ||
``` | ||
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines | ||
``` | ||
</details> | ||
- type: input | ||
id: platform | ||
attributes: | ||
label: Platform | ||
placeholder: Linux / macOS / Windows | ||
validations: | ||
required: true | ||
- type: input | ||
id: terminal-emulator | ||
attributes: | ||
label: Terminal Emulator | ||
placeholder: wezterm 20220101-133340-7edc5b5a | ||
validations: | ||
required: true | ||
- type: input | ||
id: helix-version | ||
attributes: | ||
label: Helix Version | ||
description: > | ||
Helix version (`hx -V` if using a release, `git describe` if building | ||
from master) | ||
placeholder: "helix 0.6.0 (c0dbd6dc)" | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,6 @@ jobs: | |
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
|
@@ -29,18 +27,21 @@ jobs: | |
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-registry- | ||
|
||
- name: Cache cargo index | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-index- | ||
|
||
- name: Cache cargo target dir | ||
uses: actions/[email protected] | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-build-target- | ||
|
||
- name: Run cargo check | ||
uses: actions-rs/cargo@v1 | ||
|
@@ -53,8 +54,6 @@ jobs: | |
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
|
@@ -68,23 +67,37 @@ jobs: | |
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-registry- | ||
|
||
- name: Cache cargo index | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-index- | ||
|
||
- name: Cache cargo target dir | ||
uses: actions/[email protected] | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-build-target- | ||
|
||
- name: Copy minimal languages config | ||
run: cp .github/workflows/languages.toml ./languages.toml | ||
|
||
- name: Cache test tree-sitter grammar | ||
uses: actions/[email protected] | ||
with: | ||
path: runtime/grammars | ||
key: ${{ runner.os }}-v2-tree-sitter-grammars-${{ hashFiles('languages.toml') }} | ||
restore-keys: ${{ runner.os }}-v2-tree-sitter-grammars- | ||
|
||
- name: Run cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --workspace | ||
|
||
strategy: | ||
matrix: | ||
|
@@ -97,8 +110,6 @@ jobs: | |
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
|
@@ -113,18 +124,21 @@ jobs: | |
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-registry- | ||
|
||
- name: Cache cargo index | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-index- | ||
|
||
- name: Cache cargo target dir | ||
uses: actions/[email protected] | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-build-target- | ||
|
||
- name: Run cargo fmt | ||
uses: actions-rs/cargo@v1 | ||
|
@@ -144,8 +158,6 @@ jobs: | |
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
|
@@ -159,18 +171,21 @@ jobs: | |
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-registry- | ||
|
||
- name: Cache cargo index | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-index- | ||
|
||
- name: Cache cargo target dir | ||
uses: actions/[email protected] | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-v2-cargo-build-target- | ||
|
||
- name: Generate docs | ||
uses: actions-rs/cargo@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This languages.toml is used for testing in CI. | ||
|
||
[[language]] | ||
name = "rust" | ||
scope = "source.rust" | ||
injection-regex = "rust" | ||
file-types = ["rs"] | ||
comment-token = "//" | ||
roots = ["Cargo.toml", "Cargo.lock"] | ||
indent = { tab-width = 4, unit = " " } | ||
|
||
[[grammar]] | ||
name = "rust" | ||
source = { git = "https://github.com/tree-sitter/tree-sitter-rust", rev = "a360da0a29a19c281d08295a35ecd0544d2da211" } | ||
|
||
[[language]] | ||
name = "nix" | ||
scope = "source.nix" | ||
injection-regex = "nix" | ||
file-types = ["nix"] | ||
shebangs = [] | ||
roots = [] | ||
comment-token = "#" | ||
|
||
# A grammar entry is not necessary for this language - it is only used for | ||
# testing TOML merging behavior. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.