Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to move cursor in Insert mode #3808

Closed
REALERvolker1 opened this issue Sep 12, 2022 · 3 comments
Closed

No way to move cursor in Insert mode #3808

REALERvolker1 opened this issue Sep 12, 2022 · 3 comments
Labels
C-bug Category: This is a bug

Comments

@REALERvolker1
Copy link

REALERvolker1 commented Sep 12, 2022

Summary

There is no way to move the cursor in Insert mode currently. Helix tutor mentions using the arrow keys, but a quick review of the Github issues reveals this is a common problem.

The Ctrl and Alt navigation does not work for me either. When in insert mode, the Control key has no effect on these keys.

image

image

Edit:

Adding the bindings in causes a config error.

image

Reproduction Steps

I tried this:

pressed Up arrow key in Insert mode

I expected this to happen:

  • cursor moves up 1 line

Instead, this happened:

cursor stays in place

Helix log

~/.cache/helix/helix.log
2022-09-11T23:10:08.283 helix_view::theme [WARN] Theme: malformed hexcode: highlight
2022-09-11T23:10:08.594 helix_view::theme [WARN] Theme: malformed hexcode: highlight
2022-09-11T23:20:09.397 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:20:34.776 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:22:16.383 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:28:12.746 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:28:44.418 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:29:08.213 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:32:01.375 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:34:11.454 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:37:59.207 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:39:31.098 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:40:08.151 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-11T23:40:54.341 helix_lsp::transport [ERROR] err <- "shellcheck not available at path 'shellcheck'\n"
2022-09-11T23:42:29.949 helix_view::clipboard [INFO] Using xclip to interact with the system and selection (primary) clipboard
2022-09-11T23:42:29.950 helix_core::syntax [INFO] Error opening dynamic library "/home/vlk/.config/helix/runtime/grammars/bash.so"
2022-09-11T23:42:29.950 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"snippetSupport":false},"completionItemKind":{}},"hover":{"contentFormat":["markdown"]},"publishDiagnostics":{},"rename":{"dynamicRegistration":false,"honorsChangeAnnotations":false,"prepareSupport":false},"signatureHelp":{"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown"],"parameterInformation":{"labelOffsetSupport":true}}}},"window":{"workDoneProgress":true},"workspace":{"applyEdit":true,"configuration":true,"didChangeConfiguration":{"dynamicRegistration":false},"symbol":{"dynamicRegistration":false},"workspaceFolders":true}},"processId":152920,"rootUri":null,"workspaceFolders":[]},"id":0}
2022-09-11T23:42:30.085 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"Initialized server v. 3.1.0 for null"}}
2022-09-11T23:42:30.085 helix_term::application [INFO] window/logMessage: LogMessageParams { typ: Log, message: "Initialized server v. 3.1.0 for null" }
2022-09-11T23:42:30.128 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":0,"result":{"capabilities":{"textDocumentSync":1,"completionProvider":{"resolveProvider":true,"triggerCharacters":["$","{"]},"hoverProvider":true,"documentHighlightProvider":true,"definitionProvider":true,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"referencesProvider":true}}}
2022-09-11T23:42:30.128 helix_lsp::transport [INFO] <- {"capabilities":{"completionProvider":{"resolveProvider":true,"triggerCharacters":["$","{"]},"definitionProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"hoverProvider":true,"referencesProvider":true,"textDocumentSync":1,"workspaceSymbolProvider":true}}
2022-09-11T23:42:30.128 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"initialized","params":{}}
2022-09-11T23:42:30.129 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"bash","text":"#!/usr/bin/sh\n\ncat <(grep 'cpu ' /proc/stat) <(sleep 1 && grep 'cpu ' /proc/stat) | awk -v RS=\"\" '{printf \"%.2f%\\n\", ($13-$2+$15-$4)*100/($13-$2+$15-$4+$16-$5)}'\n","uri":"file:///home/vlk/shell/cpuquery","version":0}}}
2022-09-11T23:42:30.130 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":0,"method":"workspace/workspaceFolders"}
2022-09-11T23:42:30.130 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","result":[],"id":0}
2022-09-11T23:42:30.136 helix_lsp::transport [ERROR] err <- "shellcheck not available at path 'shellcheck'\n"
2022-09-11T23:42:30.137 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/vlk/shell/cpuquery","diagnostics":[]}}
2022-09-11T23:42:32.412 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"shutdown","params":null,"id":1}
2022-09-11T23:42:32.415 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":1,"result":null}
2022-09-11T23:42:32.415 helix_lsp::transport [INFO] <- null
2022-09-11T23:42:32.415 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"exit","params":null}
2022-09-11T23:45:55.092 helix_lsp::transport [ERROR] err <- "shellcheck not available at path 'shellcheck'\n"
2022-09-11T23:56:04.268 helix_lsp::transport [ERROR] err <- "shellcheck not available at path 'shellcheck'\n"
2022-09-11T23:57:05.935 helix_lsp::transport [ERROR] err <- "shellcheck not available at path 'shellcheck'\n"
2022-09-12T00:02:44.168 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-12T00:06:28.125 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-12T00:08:13.269 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-12T00:09:15.383 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-09-12T00:11:45.561 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }

Platform

Linux (Fedora 36)

Terminal Emulator

Kitty 0.26.1

Helix Version

22.08.1-62-g03612174

@REALERvolker1 REALERvolker1 added the C-bug Category: This is a bug label Sep 12, 2022
@prmadev
Copy link

prmadev commented Sep 12, 2022

I also am experiencing this bug as well on NixOS.

@the-mikedavis
Copy link
Member

This is the expected behavior after #3671.

The tutor was not updated - #3811 covers that now.

The website: https://docs.helix-editor.com/master/keymap.html is correctly updated. The website shows the documentation for the latest release by default and follows master with a /master prefix to the URL path.

The keymap error:

[keys.insert]
up = "move_line_up"
down = "move_line_down"
left = "move_char_left"
right = "move_char_right"

The typo is in move_char_up and move_char_down.

@REALERvolker1
Copy link
Author

Awesome, thanks. I have updated my config and I am probably going to switch to using Helix from nvim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants