octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #47340] wrong tab completion on folder names w


From: Hartmut
Subject: [Octave-bug-tracker] [bug #47340] wrong tab completion on folder names with spaces
Date: Mon, 07 Mar 2016 09:41:27 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0

Follow-up Comment #2, bug #47340 (project octave):

Yes, I was naively expecting a final quote after the auto completion of a
folder name with a space sign inside. In my presented usecase of a "cd"
command in the interactive console, this seemed the obvious behavior to me.

But you are right. If we add a closing quote in this case, it would keep the
user from expanding the path further into subdirectories by simply typing some
more characters and pressing tab again. I had not thought about this other
usecase before. (I think the behavior of first adding a closing quote, which
would lateron be automaticly removed when the user continues typing, is too
weired. This would most probably only irritate most users.)

I personally would be fine with just closing this bug report now. I have no
other and still consistent idea how to better handle this.

Just for completeness, here is what other readlines do in this case:

* The linux bash shell autocompletes "cd my[tab]" to "cd my data/". I think
this only works because in this shell space signes can be escaped with a
bashlash. This is a very elegant solution to our problem. But currently it
does not work in Octave, because slashes and bashlashes are both used for
folder name separation (as is necessary to support linux and windows file name
conventions).

* In the Windows command console 'cd my[tab]' autocompletes to 'cd "my data"'.
This is what I was naively expecting. But you are right that this keeps the
user from doing auto completion in a nested way, which is a valid use case as
well.

* I haven't tested what  Matlab does.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47340>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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