Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15089

Looking for key-bound auto-completed arg buffer in readline/bash.

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From David Weeks <david@davidwid.com>
Newsgroups gnu.bash.bug
Subject Looking for key-bound auto-completed arg buffer in readline/bash.
Date Mon, 8 Jul 2019 17:24:03 -0400
Lines 41
Approved bug-bash@gnu.org
Message-ID <mailman.501.1562621183.2688.bug-bash@gnu.org> (permalink)
References <56ac45a7-7bee-3d0e-3f51-15891e80c8c2@davidwid.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1562621184 28447 209.51.188.17 (8 Jul 2019 21:26:24 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
X-Authority-Reason nr=8
X-Authority-Analysis $(_cmae_reason
DKIM-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=davidwid.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hNL9qkCoNUvOdQ9BV3bg9hcRXlUbP8xELYOTAvzjB+E=; b=Kj6tub4mbppP+8SXlDlWDHxBuf S36repJIjI2yqYb13tPPZ7QIYbRKoUIsQvrJNUmp937WBzYFOS0Dea9wD942J5G9wXyX/3NxIxOsV M9NnW1GxmVGsHwdR6FGixcihkAYtOPBWMKPjuRAUSjpK1rNMRsHgOHnWyZVM4UFpg/YEXMjvJ0Evx B9fYAiYtdFCYztJ9TfgpQ+n5bfOwWtWjFZ0+aGLlSsXGO5vQP6yElvbxtBwC7d2NQaoUbXeYOtrd3 AiINskthgmNXGfTO3G8UyIrKLhf4vYAKeYoof03aFuyMTItWVszRA0hZPv9vnT7Xkj0bU4xRsibND djYNDqRQ==;
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2
Content-Language en-US
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - box715.bluehost.com
X-AntiAbuse Original Domain - gnu.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - davidwid.com
X-BWhitelist no
X-Source-IP 47.197.195.165
X-Source-L No
X-Exim-ID 1hkb7E-002AUx-B0
X-Source
X-Source-Args
X-Source-Dir
X-Source-Sender ([192.168.1.163]) [47.197.195.165]:51576
X-Source-Auth david@davidwid.com
X-Email-Count 2
X-Source-Cap dGVjaHRhc2s7dGVjaHRhc2s7Ym94NzE1LmJsdWVob3N0LmNvbQ==
X-Local-Domain yes
X-detected-operating-system by eggs.gnu.org: GNU/Linux 3.x
X-Received-From 69.89.20.226
X-Mailman-Approved-At Mon, 08 Jul 2019 17:25:55 -0400
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <56ac45a7-7bee-3d0e-3f51-15891e80c8c2@davidwid.com>
Xref csiph.com gnu.bash.bug:15089

Show key headers only | View raw


Hello All,

I first wrote the help-bash@gnu.org list, thinking this was already a 
feature, but I've not found it.

On occasion, I have to clean up some seriously broken filenames, full of 
control chars, code points, and whatnot, filenames that my perl script 
gives up on.  That script cleans 99%, and I could forever tweak it for 
yet-another-exception-case, but they are really random.  So I fix them 
by hand.

Because they are full of PITA chars, I use auto-complete to uh, 
auto-complete them.  Which is a PITA, cause I'm having to escape and 
otherwise manually code point these PITA chars.  So if once I've 
auto-completed the first case for mv -nv, I'd like to repeat it, and 
then fix the copy as needed.  Right now, I have to do the exact same 
thing twice, to get something that's already on hand, the just 
auto-completed arg.

So that variable is in memory, and if we had as a feature, a persistent 
buffer that logged those completions, that was bound to a key-sequence, 
say C-TAB, then once I've picked/auto-completed the filename, I can 
C-TAB to paste/yank in the second instance, suitable for renaming the 
PITA filename.  (Remember too, these are one and only commands, so 
history is useless.)

This doesn't seem like it would be hard to do (famously dangerous 
words), and present it here.


David Weeks
Information Developer

-- 
Making technology useful.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Looking for key-bound auto-completed arg buffer in readline/bash. David Weeks <david@davidwid.com> - 2019-07-08 17:24 -0400

csiph-web