-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
-
How to…
- Collapse to single cursor after using multiple cursors / Keep only primary cursor
- Change cursor shape on mode change (bar cursor on insert mode, block on normal mode, etc)
- Map
jk
orjj
to exit insert mode - Use my terminal’s 16 color palette as a theme
- Perform find-and-replace
- Strip whitespace or format the buffer
- Access the Helix config directory
- Access the log file
- Adding a language
- General Questions
- Installation
- Common Issues
-
Use the default keybind
,
bound to thekeep_primary_selection
command.
-
Add this to your
config.toml
:[editor.cursor-shape] insert = "bar" normal = "block" select = "underline"
-
Add this to your
config.toml
:[keys.insert] j = { k = "normal_mode" }
-
You can use color names like
red
,light-blue
, etc to refer to the terminal’s colors in a theme file; refer the theme color palette documentation.
-
Type
%
to select the entire file, thens
to bring up aselect:
prompt. Enter your search, and press enter. All matches in the file will be selected; you can now usec
to change them all simultaneously.
To make search fully case sensitive add the following to config.toml
:
[editor.search]
smart-case = false
Note: If you use LSP autocomplete, only the first match will be auto-completed. If you want to auto-complete all matches, you currently have to use this workaround.
If the LSP for the language is active and supports autoformat, and the auto-format option is on (check your and the repo’s languages.toml
), then this will happen on save. If there is an alternative command you can run in the terminal to format, you can pipe the whole buffer to it manually with %|<formatter><enter>
.
Platform |
Location |
Mac OS/Linux |
|
Windows |
|
Enable logging via the -v
flag, with each use (up to -vvv
) increasing the verbosity.
Platform |
Location |
Mac OS/Linux |
|
Windows |
|
-
It’s currently under discussion, with the general plan of using WebAssembly to provide plugin support. Some links regarding ongoing discussions:
Ensure that you have mapped the Option key to ESC+
in the iTerm2 preferences via Preferences > Profiles > Keys
<img width="1128" alt="Screen Shot 2022-06-04 at 12 56 23 pm" src="https://user-images.githubusercontent.com/863286/171976728-95814760-653c-4623-9441-0eb05c036bac.png">