bug-global
[Top][All Lists]
Advanced

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

Re: Global autocomplete filename issue


From: Shigio YAMAGUCHI
Subject: Re: Global autocomplete filename issue
Date: Thu, 25 Sep 2014 10:17:14 +0900

Hi,
> Hi guys,
>
> First, thanks for the great software! I'm using it extensively and it is of
> great help indeed.

Thank you. Your words are a big encouragement for people who are here.

> IMO it should either run the completion from file name beginning or return the
> full file names as 2) does

It assumes that the -cP is used by input completion function
to get an argument for 'global -P'.
Generally, its scenario is like follows:

input> st[TAB]                  # invoke completion
v
input> string_
input> string_[TAB][TAB]        # show candidates
v
input> string_
string_A.cpp    string_A.h      string_A.cpp    string_C.h
input> string_A.h[ENTER]
RESULT> first_string_A.h        # invoke 'global -P string_A.h'

Candidate strings need to start with a prefix inputted
by the user (here, it is 'string').

Are you thinking about another scenario?

Shigio

2014-09-24 20:17 GMT+09:00 Pavel Nedev <address@hidden>:
Hi guys,

First, thanks for the great software! I'm using it extensively and it is of great help indeed.

As to the issue:
I notice that the autocomplete filename command returns as result not the full names but from the matched string to the end of the name.
For example if you do

1) global -cP string

you would expect to get the file names containing the string.
I know that -P by default searches the whole file name for the string, not just from the beginning. And this is working fine in

2) global -P string

for example. The whole file names are returned as result by 2). But 1) does not do that.

Consider the following scenario:
You have the following files:

src/first_string_A.cpp
first_string_A.h
test/sec_string_A.cpp
string_C.h
text.cpp

Now command 2) (global -P string) result would be

src/first_string_A.cpp
first_string_A.h
test/sec_string_A.cpp
string_C.h

But command 1) (global -cP string) would give

string_A.cpp
string_A.h
string_A.cpp
string_C.h

IMO it should either run the completion from file name beginning or return the full file names as 2) does

Thanks again!
Best Regards,
Pavel




_______________________________________________
Bug-global mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-global



--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

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