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

Re: [Libguestfs] [PATCH 1/1] guestfish: Tab-complete single / double quoted filenames containing space -- add fish_completion_word_break_characters_hook



On Sun, May 19, 2013 at 09:23:59AM -0400, Jan Lieskovsky wrote:
> +/* Readline word break hook for (guest)fish
> + * Exclude space from the set of word break characters if Readline's buffer
> + * contains path and some of possible tab-completions includes space.
> + * Return basic / default set of word break characters otherwise
> + */
> +char *
> +fish_completion_word_break_characters (void)

This function should be declared static.

I tried these patches but they don't quite work for me:

><fs> ll "/Program<TAB><TAB>

gives:

><fs> ll "/Program Files"/
libguestfs: error: readdir: opendir: /Program Files": No such file or directory

It seems to be including a rogue quote in the filename.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)


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