[Wishlist Bug] git-shell: Support libreadline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all!


I would like git-shell to support libreadline:

  https://tiswww.cwru.edu/php/chet/readline/rltop.html


------------------- snip ---------------------
Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)

  Live in peace.

What did you expect to happen? (Expected behavior)

  git-shell letting me edit the input (Emacs/vi/cursor-keys) and
  access the command history.

What happened instead? (Actual behavior)

  git-shell gave me Thompson shell vibes and sent me into foul-mouthed
  screaming tantrums.

What's different between what you expected and what actually happened?

  Expected libreadline support, got sent to labor camp instead.

Anything else you want to add:

  I installed git-shell as the shell for git users on a git server,
  and filled /usr/local/share/git-shell-commands with various shell
  scripts for git repository maintenance on that server. Having
  git-shell support libreadline would much alleviate two common
  scenarios:
  - commands can be very quickly edited / fixed
  - commands that have been executed before can be quickly accessed
    and either re-executed or edited and executed, especially with
    keybindings like

    ,----[ ~/.inputrc ]---
    | "\C-p": history-search-backward
    | "\C-n": history-search-forward
    `----

    where you start typing "foo", then use C-p/n to go thru all commands
    in history that start with "foo". Life saver.

  Please either simply don't limit the command history (via
  "stifle_history()"), or give users the possibility to define a maximum
  of history lines.

  Location of the history probably does not have to be configurable,
  ~/.git-shell-history will do just fine (for me).

  Thanks for considering this wish-list bug. :-}


Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.39.2 {wanted to try 2.45.1 before reporting, but got shoved into dependency hell}
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64
compiler info: gnuc: 12.2
libc info: glibc: 2.36
$SHELL (typically, interactive shell): /usr/bin/zsh


[Enabled Hooks]
not run from a git repository - no hooks to show
------------------- snip ---------------------


MJK (not subscribed, Cc: welcome)




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux