Ticket #372 (closed defect: fixed)
user menu ignores entries
Reported by: | ossi | Owned by: | iNode |
---|---|---|---|
Priority: | major | Milestone: | 4.7.0-pre1 |
Component: | mc-core | Version: | master |
Keywords: | commited-master | Cc: | |
Blocked By: | Blocking: | ||
Branch state: | Votes for changeset: |
Description
the user menu (the one under f2 in the main panel view) ignores some (but not all) of my menu entries.
from the attached file, for example the various 'p' bindings are missing.
Attachments
Change History
comment:1 follow-up: ↓ 2 Changed 15 years ago by iNode
Menu entries does not ignored it's simple does not match.
I review your "p" menu entries:
1) escape of "." seems to be useless in that case
2) ".." matched by "+ f .." (also it match "..test" and "test.."), "" and "$" - does not mean start and end of line in that case
3).(mp3|ogg) - does not match, when .mp3 - match
We has no doc or examples for work in shell_patterns=0 mode.
So, we should define that mode before try make it work appropriately.
comment:2 in reply to: ↑ 1 Changed 15 years ago by ossi
Replying to iNode:
Menu entries does not ignored it's simple does not match.
that is true for the "+ t t" entry.
I review your "p" menu entries:
1) escape of "." seems to be useless in that case
wrong. this is a regex, so to match a literal dot, it must be escaped.
2) ".." matched by "+ f .." (also it match "..test" and "test.."), "" and "$" - does not mean start and end of line in that case
wrong again ...
3).(mp3|ogg) - does not match, when .mp3 - match
huh?
We has no doc or examples for work in shell_patterns=0 mode.
So, we should define that mode before try make it work appropriately.
well, frankly, i don't care - it worked for the last 5+ years and "you" broke it. ;)
comment:3 Changed 15 years ago by iNode
well, frankly, i don't care - it worked for the last 5+ years and "you" broke it. ;)
OK. That's good start point. :)
What the last version where it work correctly?
Changed 15 years ago by iNode
- Attachment usermenu_regex.patch added
enable regex matching in user menu on shell_patterns=0
comment:4 Changed 15 years ago by iNode
- Status changed from new to accepted
- Owner set to iNode
Please, try this patch.
All should be work except "\.\.$" regex.
If it's ok we need to create new ticket to fix "\.\.$" matching,
because it's other issue.
comment:5 Changed 15 years ago by angel_il
branch: 372_usermenu_regex (parent: master)
changeset: 098e0a4254eea2987072460223d4a7dc3e1b519a
owner: INode
comment:8 Changed 15 years ago by slyfox
- Keywords review vote-angel_il added
Sorry. returning keywords
comment:9 Changed 15 years ago by slavazanko
- Keywords vote-slavazanko approved added; review removed
- Blocked By 419 added
comment:12 Changed 15 years ago by angel_il
- Keywords commited-master added; vote-angel_il vote-slavazanko approved removed
- Status changed from accepted to testing
- Resolution set to fixed
~/.mc/menu