1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Helix-Editorのアップデートまとめ

Last updated at Posted at 2022-05-30

Helixのアップデートが来たので軽く紹介する

💡 注意点 version22.05
上記のバージョンなので注意する

参考::point_right: websitechange log

releasesはこちらから

webサイトのかいつまみ

インデントがきちんと機能するように作り変えた

左側のガター(隙間みたいなところ)を設定できるようになった

各言語ごとに上書き可能な設定を作れるようになった

ルーラーが設定できるようになった

空白や改行などを表示できるようになった :thumbsup:

config.toml
[editor]
rulers = [10,20,30] # 複数設定できる

[editor.whitespace.render]
space = "none"
nbsp = "all"
tab = "all"
newline = "all"

[editor.whitespace.characters]
space = "·"
nbsp = "⍽"
tab = "»"
newline = "↲"

レジスターを使ったペーストをファイルピッカーで使えるようになった :thumbsup:

選択箇所を指定した幅にハードラップできる :thumbsup:

分割したウィンドウを入れ替えられる

エディタ起動中に言語サーバーを切り替えできる

チェンジログの簡単な説明

ピッカーでC-jC-kで上下に移動できていたのが削除された

同様に,C-fC-bの上下スクロールがC-d(own)C-u(p)に変更された

A-hjklのTree-stterを使ったの操作が一貫性を考えてA-pion:p(rev)i(n)o(ut)n(ext)に変更された

[p]pによるパラグラフのモーションとテキストオブジェクトのが追加された

:buffer-next:buffer-prevが追加された

Space-Fでワーキングディレクトのファイルを選択ができるようになった

:write!サブディレクトリを含め再帰的にディレクトリを作成する

mで最も近い周りのペアを選択するテキストオブジェクトを追加した

:pipeで入力可能なコマンドが追加された :thumbsup:
pythonのblackのようなコマンドとhelixの%:全選択を一緒にマッピングできるようになった

:run-shell-commandvimの:!とにた動作,結果がポップアップ画面で表示される

:log-openログファイルを開けるようになった :thumbsup:
helix -vv fileでログを付けてバグらせて,logを見るというのが楽にできるようになった

その他利便性の向上やバグフィックス,多数のテーマやLSP,言語追加などがある

所感

利便性の高いコマンドやバグ修正が多くだいぶ使いやすくなった

間違った解説は後で修正する

私のconfig.tomlはこんな感じ

特にこだわっているところはあまりない

config.toml
# theme = "gruvbox"
theme = "onedark"

[editor]
line-number = "relative"
scrolloff = 3

[editor.cursor-shape]
insert = "bar"
normal = "block"
# select = "underline"

[editor.file-picker]
hidden = false

[editor.whitespace.render]
space = "none"
tab = "all"
newline = "all"

[editor.whitespace.characters]
space = "·"
tab = "»"
newline = "↲"

[keys.normal]
space = { w = ":write", c = "toggle_comments" }
tab = ":buffer-next"
S-tab = ":buffer-previous"
C-h = ["select_all", "select_regex"]

g = { e = "goto_file_end" , j = "goto_next_paragraph", k = "goto_prev_paragraph" }

ret = ["open_below", "normal_mode"]
S-ret = ["open_above", "normal_mode"]

# 解説予定,あまり使わない
# w = "move_next_japanese_word_start"
# e = "move_next_japanese_word_end"
# b = "move_prev_japanese_word_start"

C-t = { c = ":buffer-close", n = ":new", h = ":hsplit-new", v = ":vsplit-new" }

[keys.insert]
j = { j = "normal_mode" }

# quick select mode
C-v = "select_mode"
A-v = "extend_to_line_bounds"

# delete
C-a = "delete_word_backward"
C-d = "delete_word_forward"

C-h = "move_prev_word_end"
C-j = "move_line_down"
C-k = "move_line_up"
C-l = "move_next_word_start"

[keys.select]
k = "extend_line_up"
j = "extend_line_down"

他の部分を設定したい場合はdocsのconfigを参照する

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?