[SOLVED] Auto-Complete in Name of Find Files

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

[SOLVED] Auto-Complete in Name of Find Files

Post by TheQwerty »

Using XY v6.80.0114 on Win XP SP2.

Okay this is a bit of a confusing one, so hopefully someone else can at least verify this.

Starting with a fresh, still unlicensed, copy of XY.
Do the following:
Tools -> LM -> Find Files: Names -> Editor Mode
Paste the following:

Code: Select all

ab
:ab
>ab
OK
Ctrl+F to open the Find Files tab.
In the Name field type (and with Mode still on Standard) type ">".

It should auto-complete that to ">ab" and places the cursor at the beginning of the term.

For contrast clear the field and type ":" and it won't auto-complete or move the cursor.


That's the core of the problem, but it behaves differently based on which mode is selected.

From Standard or Boolean mode, only ">" behaves wrongly.
From RegExp mode, only ":" behaves wrongly.
Last edited by TheQwerty on 29 Mar 2008 00:52, edited 1 time in total.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

Yep, seems to be linked to the change of font (RegExp mode uses a monospaced font) in the combobox. I'm sure Don will fix this easily.

But, what do you mean "it won't auto-complete or move the cursor" ?? Just tried, and the cursor is sent back to the begining yes, but the autocomplete part still works, when I type ">" I see ">ab" on the list (tried with a fresh copy as well just in case), don't you ?
Proud XYplorer Fanatic

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

jacky wrote:Yep, seems to be linked to the change of font (RegExp mode uses a monospaced font) in the combobox. I'm sure Don will fix this easily.

But, what do you mean "it won't auto-complete or move the cursor" ?? Just tried, and the cursor is sent back to the begining yes, but the autocomplete part still works, when I type ">" I see ">ab" on the list (tried with a fresh copy as well just in case), don't you ?
What I mean is when in Standard mode if you type ">" it does auto-complete and moves the cursor.

If you type ":" it does not auto-complete, nor does it move the cursor.

It displays the list, but it doesn't do the auto-auto-complete that ">" does. :)

And you're right, I didn't think about the font change, it probably is related.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

TheQwerty wrote:What I mean is when in Standard mode if you type ">" it does auto-complete and moves the cursor.

If you type ":" it does not auto-complete, nor does it move the cursor.

It displays the list, but it doesn't do the auto-auto-complete that ">" does. :)
hmm... well what happens for me is :
- without a font change : works as expected
- with a font change : after the change, the cursor goes back to position 0, and one item from the MRU (not sure which one exactly, cause it's not the first one - last one used maybe?) gets selected, as in fully typed in on the combo, and as such it may appear that auto-complete didn't really work. But selecting everything after ":" or ">" and removing it makes it work fine.

In other words, in Standard mode when I type ":" auto-complete works just fine here. Typing ">" on the other hand won't exactly work as expected (cause of the font change, as I said above). Seems you're having the opposite ! Are you or am I in bizarro world ? :?
Proud XYplorer Fanatic

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

TheQwerty wrote:
jacky wrote:Yep, seems to be linked to the change of font (RegExp mode uses a monospaced font) in the combobox. I'm sure Don will fix this easily.

But, what do you mean "it won't auto-complete or move the cursor" ?? Just tried, and the cursor is sent back to the begining yes, but the autocomplete part still works, when I type ">" I see ">ab" on the list (tried with a fresh copy as well just in case), don't you ?
What I mean is when in Standard mode if you type ">" it does auto-complete and moves the cursor.

If you type ":" it does not auto-complete, nor does it move the cursor.

It displays the list, but it doesn't do the auto-auto-complete that ">" does. :)

And you're right, I didn't think about the font change, it probably is related.
It is. I'm not a MS basher, but the MS combo box has been a piece of crap from hell ever since. Anyway, I found a way to work around it. Try next upload.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

jacky wrote:Seems you're having the opposite ! Are you or am I in bizarro world ? :?
Nah, we're experiencing the same thing (I think) I just failed to properly put it into words.

In the first post when I say auto-completes I mean it really does automatically complete by picking a query and filling in the field. (As opposed to just displaying the list.)

If it didn't auto-complete then the auto-complete list box is displayed.

--------------------------
admin wrote:It is. I'm not a MS basher, but the MS combo box has been a piece of crap from hell ever since. Anyway, I found a way to work around it. Try next upload.
Welcome back(?), Don! Hope you had a good break! Looking forward to the fix!



EDIT: All fixed with v6.80.0115! Yay Don!

Post Reply