Questions tagged [readline]
The Gnu readline library is used by other programs, such as shells and interpreters, to provide common line-editing capabilities.
93
questions
-1
votes
1
answer
65
views
Bash readline command of scrolling terminal lines up/down
What is the Bash readline command, ie. the phrasal words command, of scrolling terminal lines up/down with shift - Page up/down
How to have all complete Bash readline commands (that are used by ...
0
votes
1
answer
239
views
In Bash, how can I read the value of readline variable named `history-size`?
My Bash version I have updated from v590 to version 5.2.15(1)-release (i686-pc-linux-gnu).
I use Kubuntu 20.04 and KNOPPIX 9.1.
The readline variable history-size can be set to on or off, can be bind ...
1
vote
1
answer
243
views
How to bind TabCompleteNext/TabCompletePrevious in PowerShell?
I tried the following commands to bind Ctrl-N and Ctrl-P in PowerShell 7.2.4, but they have no effect - new bindings do not work.
Remove-PSReadLineKeyHandler Tab
Remove-PSReadLineKeyHandler Tab -...
0
votes
1
answer
50
views
Control sequence for upper case letter
I'm trying to improve my touch-typing which is very low both on accuracy and speed.
I've noticed that I have a great difficulty regarding upper case letters.
I often have to leave the home row or I ...
0
votes
1
answer
314
views
Copy relative links to absolute links
Given a directory /path/to/files that contains many relative links along the lines of foo -> ../other/data/foo, how do I copy the links in files/ to be absolute path links on /mydata/path/
I ...
1
vote
2
answers
423
views
Delete argument from command
If I have a commandline like this:
sunday.exe monday tuesday-wednesday
I would like to delete to the last space, or essentially the last argument. I tried Ctrl + Backspace, but it deletes only to the ...
2
votes
0
answers
641
views
Make readline edit input command in external editor (similar behavior as "edit-and-execute-command" from bash)
Background
So far I've found readline very useful since just by modifying a single configuration file (i.e. ~/.inputrc), you are configuring all those programs that depends on readline. The programs ...
1
vote
2
answers
820
views
Cannot backspace across wrapped lines in terminal
Suppose your terminal window is 80 columns wide and you run a python script containing only:
print("x" * 81 + "\b\by")
You would expect the output to be a line full of x except for the last one, ...
3
votes
1
answer
2k
views
vim-tmux-navigator to use tmux prefix instead of C-[hjkl]
I have installed vim-tmux-navigator on the tmux and the vim side and I can navigate between vim panes and tmux windows using Ctrl-[hjkl]
BUT: This means that readline (or bash?) shortcuts are ...
3
votes
3
answers
1k
views
How to make Ctrl+D detach tmux, while retaining GNU readline capabilities in Bash?
Based upon my days and days of researching this, I may be seeking the impossible.
Situation
I have my .bashrc nicely configured to either spawn a new tmux on connect, or if one exists, attach to it.
...
4
votes
1
answer
2k
views
Move vi mode string to end of bash prompt
I use vi editing mode in bash. I have "show-mode-in-prompt" set to "on" in ~/.inputrc.
show-mode-in-prompt (Off)
If set to On, add a string to the beginning of the prompt indicating the ...
0
votes
1
answer
354
views
Spacebar doesnt work in python shell or pdb
Was hoping someone here may have experienced this too. I often use ipython for a local python shell and everything works fine. But sometime I like to use pdb and the default python shell. I'm using ...
2
votes
2
answers
551
views
Difference between "backward kill line" and "unix line discard"
I'm reading the bash man page and memorizing the keyboard shortcuts. C-x rubout is bound to backward kill line, and C-u is bound to unix line discard, but the descriptions for these commands look the ...
7
votes
1
answer
506
views
Mouse support for GNU Readline
Is it possible to get programs using GNU Readline (e.g. Bash, the Python REPL, or anything else that responds to ~/.inputrc) to let you edit the current line using the mouse? For example, I’d like to ...
2
votes
1
answer
1k
views
Readline for Python 3.6 on Mac 10.14
I have Python 3.6.5 on Mac 10.14.
In the Python interpreter, editing/navigation shortcuts (such as arrows, ^e, ^a, etc.) do not work, instead giving me escape chars, e.g.:
Python 3.6....