Results 1 to 7 of 7

Thread: Terminal view after pressing TAB gives full path

  1. #1

    Default Terminal view after pressing TAB gives full path

    Hi everyone,
    Usually when i did, for example:
    :~/> vi documents/<tab><tab>
    i would get list of files in 'documents' dir on my konsole.
    :~/> vi documents/
    doc1 doc2 doc3


    Bu now in 11.4 when i do that i get whole path, like this for example:
    :~/> vi documents/<tab><tab>
    :~/> vi documents/
    documents/doc1 documents/doc2 documents/doc3

    Any one has any idea how to make it look "old" style?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,732

    Default Re: Terminal view after pressing TAB gives full path

    Do not know about that change, nor about how cure it. But this "file name" completion" is a feature of the shell (bash I guess in your case). Thus your thread title is a bit confusing.
    Henk van Velden

  3. #3

    Default Re: Terminal view after pressing TAB gives full path

    well...that what i sought too, but why 'vi' and 'll' give me different views? Try it
    :~/>vi <tab><tab>
    and
    :~/>ll <tab><tab>

    And about title...i really do not know how could i have described my question in few words that would make good title.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,732

    Default Re: Terminal view after pressing TAB gives full path

    Quote Originally Posted by mkudro View Post
    well...that what i sought too, but why 'vi' and 'll' give me different views? Try it
    :~/>vi <tab><tab>
    and
    :~/>ll <tab><tab>
    This is 11.2:
    Code:
    henk@boven:~> vi
    Display all 123 possibilities? (y or n)
    henk@boven:~> vi
    henk@boven:~> ll
    Display all 123 possibilities? (y or n)
    As you did not post what you got, I have no comment on that.
    Quote Originally Posted by mkudro View Post
    And about title...i really do not know how could i have described my question in few words that would make good title.
    I would have posted this in Pre-release/Beta to begin with because 11.4 is still not released.
    I would have given it a title like:
    "File name expansion of bash behaves different in 11.4".
    Henk van Velden

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Terminal view after pressing TAB gives full path

    On 2011-03-04 20:36, mkudro wrote:
    >
    > well...that what i sought too, but why 'vi' and 'll' give me different
    > views? Try it
    > :~/>vi <tab><tab>
    > and
    > :~/>ll <tab><tab>


    Youcould have given the output, I don't have 11.4 RC running just now to
    check. However, depending on what program I use in 11.2, I get different
    results

    cer@Telcontar:~> ls
    Display all 957 possibilities? (y or n)
    cer@Telcontar:~> acroread
    Display all 123 possibilities? (y or n)
    cer@Telcontar:~> evince
    Display all 139 possibilities? (y or n)
    cer@Telcontar:~> evince ^C

    Notice the different numbers? Another sample:

    Code:
    --------------
    *> cer@Telcontar:~/Documentation/PC/HD/seagate> ls
    *> 100129581.pdf barracuda_ST3250310AS_250GB/
    power_mgmt_fs.html
    *> 100529369b_ST31000528AS.pdf ds_ufamily_1533002_2001_06.pdf
    test_software/
    *> barracuda/ index_papers.html
    ultra_ata100.html
    *> barracuda_ST3160815A_160GB/ isolators_mount_drives.html
    *> cer@Telcontar:~/Documentation/PC/HD/seagate> evince
    *> 100129581.pdf barracuda_ST3160815A_160GB/
    test_software/
    *> 100529369b_ST31000528AS.pdf barracuda_ST3250310AS_250GB/
    *> barracuda/ ds_ufamily_1533002_2001_06.pdf
    *> cer@Telcontar:~/Documentation/PC/HD/seagate> evince
    --------------


    The bash completion feature knows that evince does not display html, and
    only lists those files that evince displays, ie, pdfs in this example.

    So, about vi, it also must have been configured - but I have no idea where.


    And yes, this is called bash completion ;-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,732

    Default Re: Terminal view after pressing TAB gives full path

    I am afraid bash tries to be clever (too clever)
    Henk van Velden

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Terminal view after pressing TAB gives full path

    On 2011-03-05 15:36, hcvv wrote:
    >
    > I am afraid -bash- tries to be clever (too clever)


    It works very well for me... :-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •