Menu

#35 pattern select with a default value

next
closed
None
5
2023-03-04
2020-12-03
rno
No

"pattern select command" filter not set as default anytime
Tested with versions: 3.15.3 , 4.6

config > button configuration > [buttton with it] > pattern select > Configure
window: configure "pattern select"
Enter default filter : *.en.txt
okay
then with a click on the button requester pops up yet
filter is not set as default anytime
sometime -often- seemingly a random entry being in the list is set instead.
it seems sometimes the currently selected file extension is used to craft the filter:
if I select a .c file the "*.c" is set as default pattern also .deb
yet it's not anytime and often only "*\n*" is set as default pattern

Expected:
pattern/filter set as default in requester anytime
or better
matching list entries selected directly without requester

most of the times I was using "pattern select", it was with wanting/expecting the requester, then I didn't remark it. Yet I tried recently to have a button with a specific pattern/filter so I did remark it.
also compared to other functions, "pattern select" cannot be replaced with a script or something.

Discussion

  • Ralf Hoffmann

    Ralf Hoffmann - 2020-12-13

    Hi,

    the behavior actually exists since version 3.3.3. The command will select the pattern from the history of used pattern that matches the current file. If none of those patterns match, the file ending is used instead. So the "defautl pattern" settings is pretty much unused and useless. But maybe sometimes one actually wants to use that very specific pattern no matter what. So maybe I should add a separate option to only use the entered pattern. Would that help in your case?

     
  • Ralf Hoffmann

    Ralf Hoffmann - 2020-12-13
    • status: unread --> accepted
    • assigned_to: Ralf Hoffmann
     
  • rno

    rno - 2020-12-14

    yes!
    it depends on the project, I'm sometimes using it much.
    last time was a long time ago though, it seems.

    thanks .

     
  • rno

    rno - 2021-02-11

    hi,
    with worker version 4.7, pattern select is now as expected, as earlier than 3.3.3.
    so I confirm #35 is fixed with worker version 4.7

    thanks .

     
  • Ralf Hoffmann

    Ralf Hoffmann - 2021-07-03
    • status: accepted --> closed
     

Log in to post a comment.