Re: [vim/vim] File names in qf window can't get reduced (GVim), absolute paths and relative paths mix together and mess up qflist. (#2846)

2018-04-27 Fir de Conversatie Yegappan Lakshmanan
Hi, On Fri, Apr 27, 2018 at 8:43 AM, Yegappan Lakshmanan wrote: > Hi, > > On Fri, Apr 27, 2018 at 7:52 AM, Linwei wrote: >> I can test if you have future patches. >> > > An updated patch is attached. The file name of a buffer is shortened only > once with this patch. > A minor update to the pat

Re: [vim/vim] File names in qf window can't get reduced (GVim), absolute paths and relative paths mix together and mess up qflist. (#2846)

2018-04-27 Fir de Conversatie Yegappan Lakshmanan
Hi, On Fri, Apr 27, 2018 at 7:52 AM, Linwei wrote: > I can test if you have future patches. > An updated patch is attached. The file name of a buffer is shortened only once with this patch. - Yegappan -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your rep

Re: [vim/vim] File names in qf window can't get reduced (GVim), absolute paths and relative paths mix together and mess up qflist. (#2846)

2018-04-27 Fir de Conversatie Yegappan Lakshmanan
Hi, On Fri, Apr 27, 2018 at 7:30 AM, Linwei wrote: > Thanks, I will spend more time in reading vim's source. > Thanks for trying out the patch. The patch still has some performance issues. Every time a new entry is added to the quickfix list, the buffer name is shortened (even if the buffer name

Re: [vim/vim] File names in qf window can't get reduced (GVim), absolute paths and relative paths mix together and mess up qflist. (#2846)

2018-04-27 Fir de Conversatie Yegappan Lakshmanan
Hi, On Thu, Apr 26, 2018 at 10:49 PM, Linwei wrote: > Yes, the last patch works as expected, and may I ask . > > shorten_fnames(TRUE); has been changed to shorten_fnames(FALSE); > > but there is still a for loop in shorten_fnames: > > https://github.com/vim/vim/blob/c3c3e698966fac86dee94799b70947

Re: [vim/vim] File names in qf window can't get reduced (GVim), absolute paths and relative paths mix together and mess up qflist. (#2846)

2018-04-26 Fir de Conversatie Yegappan Lakshmanan
Hi, On Thu, Apr 26, 2018 at 1:01 PM, Yegappan Lakshmanan wrote: > Hi, > > On Thu, Apr 26, 2018 at 10:59 AM, Linwei wrote: >> I don't really familiar the quickfix.c, but in the patch: >> >> +/* Shorten all the file names, so that it is easy to read */ >> +shorten_fnames(TRUE); >> >> I not

Re: [vim/vim] File names in qf window can't get reduced (GVim), absolute paths and relative paths mix together and mess up qflist. (#2846)

2018-04-26 Fir de Conversatie Yegappan Lakshmanan
Hi, On Thu, Apr 26, 2018 at 10:59 AM, Linwei wrote: > I don't really familiar the quickfix.c, but in the patch: > > +/* Shorten all the file names, so that it is easy to read */ > +shorten_fnames(TRUE); > > I noticed that will it shorten_fnames is invoked in void qf_list(exarg_T > *eap) .

Re: [vim/vim] File names in qf window can't get reduced (GVim), absolute paths and relative paths mix together and mess up qflist. (#2846)

2018-04-26 Fir de Conversatie Yegappan Lakshmanan
Hi, On Thu, Apr 26, 2018 at 10:48 AM, Linwei wrote: > The patch seems work , I verified my previous case and all the file names > are relative path names now. > Thanks for verifying the patch. There is one performance issue with this approach. Every time the quickfix window is opened or refreshe

Re: [vim/vim] File names in qf window can't get reduced (GVim), absolute paths and relative paths mix together and mess up qflist. (#2846)

2018-04-26 Fir de Conversatie Yegappan Lakshmanan
Hi, On Wed, Apr 25, 2018 at 11:31 PM, Linwei wrote: > Every one uses a wide screen today, I can accept all names displayed as > absolute names in quickfix window. If resolving file name is complex and > hard to change, can we have an option to enforce display absolute names in > quickfix window ?