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


Groups > gnu.bash.bug > #11209

Re: auto-complete going on a diagonal -- "set print-completions-horizontally on => "equals diagonally"

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: auto-complete going on a diagonal -- "set print-completions-horizontally on => "equals diagonally"
Date 2015-07-14 15:54 -0400
Message-ID <mailman.6930.1436903692.904.bug-bash@gnu.org> (permalink)
References <55A4B94D.80905@tlinx.org>

Show all headers | View raw


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/

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


Thread

Re: auto-complete going on a diagonal -- "set print-completions-horizontally on => "equals diagonally" Chet Ramey <chet.ramey@case.edu> - 2015-07-14 15:54 -0400

csiph-web