Let's say I have an array defined as such: Now I want to insert an item my_item into the array after vcs. I don't know what index vcs is at, all I ...
Let's say I have an array defined as such: Now I want to insert an item my_item into the array after vcs. I don't know what index vcs is at, all I ...
I am trying to create a keyboard shortcut to automate upgrading my shell to a fully interactive TTY for reverse shells. Currently, I have a shortcut ...
in alacritty.yml I have the following keybindings that work fine for Bash key_bindings: - { key: V, mods: Control, action: Paste, mode: ~AppCursor ...
What I want to achieve is to bind Ctrl-C to clearing the line without issuing a newline (à la ipython) only when editing the command line, while keepi ...
Is there a way to check if the tab completion menu is open in ZSH? I am asking this question because I want to bind the space key to accept-search so ...
As the document says, the zle variable CURSOR can only be in range [0, $#BUFFER]. Test code (put it into .zshrc, the ^[OP is F1): testCursor() { e ...
I have a key binding to go up by one directory (very useful): It works well, except that the prompt is not really reset. Example, starting in a Gi ...
I am using Zsh in Vi-mode. When $KEYMAP == vicmd (i.e. command-mode), I want hitting backspace to move the cursor to the left by one character, with ...
I have the following widget defined After pressing the key combination the cwd is already changed, but the terminal prompt is not updated. Example, ...
I have been dealing with this problem for almost a month now, and I feel frustrated, Any help would be greatly appreciated. I am trying to write a wi ...
I want to measure the time taken by a program to run in zsh. Based on the time difference, I want to print out the time taken. I edited the accept-lin ...
I'm writing a simple ZLE widget to quickly create subshells with <C-j>. Here's what I have: However, it appears that zle .backward-char isn't ...
I'm trying to read into a variable the current cursor position (the current line number and column) into a variable, from within a function drawing th ...
In zsh, if one accidentally interrupted a command (^C), is there a quick way to recover the full interrupted command line? For example, I would li ...
I use the IntelliJ IDEA's Embedded Local Terminal quite a lot, but there is one thing that is driving me nuts : special and accented characters do not ...
I'm seeing a strange issue when trying to use RPROMPT to configure my zsh prompt. I'm not using oh-my-zsh or any other plugin manager. Here is my .zsh ...
I reckon there's already a widget for the g~ action in zle. So g~iw will invert the case of a word. I read the zshzle manual and did not find a widge ...
The standard behaviour of <ESC> zle vi-mode when in visual mode is to do nothing. But I want that the action of pressing <esc> in vi-mode ...
I'm new to zsh and also prezto. Now as in my bash shell I want to have the current path on the left and my current branch at the right as you can see ...
Is it possible to simulate a keypress from withing zle function? I feel it would be a solution to my visual irk, where when I play with buffer and ...