bug-bash
[Top][All Lists]
Advanced

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

Re: auto-complete going on a diagonal -- "set print-completions-horizont


From: Chet Ramey
Subject: Re: auto-complete going on a diagonal -- "set print-completions-horizontally on => "equals diagonally"
Date: Tue, 14 Jul 2015 15:54:31 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 7/14/15 3:25 AM, Linda Walsh wrote:
> When I go for auto complete now, the filenames no longer line up:
> 
> Ishtar:/suse132> ls e17-
> e17-0.17.6-2.1.10.x86_64.rpm                    
> e17-branding-openSUSE-0.1-10.1.
> 2.x86_64.rpm      e17-branding-upstream-0.17.6-2.1.10.x86_64.rpm  
> e17-devel-0.1
> 7.6-2.1.10.x86_64.rpm               e17-doc-html-0.17.6-2.1.10.x86_64.rpm
>     e17-profiles-openSUSE-20131019-2.1.4.noarch.rpm 
> e17-theme-a-os-agust-v3-1-
> 2.1.9.noarch.rpm       e17-theme-a-os-detour-1-2.1.9.noarch.rpm        
> e17-them
> e-a-os-green-1-2.1.9.noarch.rpm         
> e17-theme-a-os-miguel-v3-1-2.1.9.noarch
> .rpm      e17-theme-a-os-vision-v3-1-2.1.9.noarch.rpm     
> e17-theme-darkness-81
> 195-2.1.9.noarch.rpm       
> e17-theme-default-0.17.6-2.1.10.x86_64.rpm       e17
> -theme-edjy-1-2.1.9.noarch.rpm               
> e17-theme-openSUSE-20131101.1-2.1.
> 9.noarch.rpm
> Ishtar:/suse132> ls e17-

Your terminal is messed up.  Try `reset'.

> -- Closest thing was changing the
> set print-completions-horizontally to 'on' in .input.rc ----
> 
> Uhoh, that does affect it, but then the sort order is messed up.

The sort order is supposed to change; that's the whole reason for that
option.

> So how can I get horizontal sorting order without it being all one line?

Reset your terminal.  When I try this, I get:

$ ls b
bash              bashhist.o        bashversion.dSYM/ buildsignames.o
bashbug           bashline.o        bracecomp.o       buildversion.o
bashenv           bashversion       braces.o          builtins/
$ bind 'set print-completions-horizontally on'
$ ls b
bash              bashbug           bashenv           bashhist.o
bashline.o        bashversion       bashversion.dSYM/ bracecomp.o
braces.o          buildsignames.o   buildversion.o    builtins/
$ ls b
bash              bashbug           bashenv           bashhist.o
bashline.o        bashversion       bashversion.dSYM/ bracecomp.o
braces.o          buildsignames.o   buildversion.o    builtins/

on bash-4.4-alpha, hitting TAB after the `b' on each line.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]