Skip to content

Commit

Permalink
Space can be used instead of slash in file chooser (⌘T)
Browse files Browse the repository at this point in the history
This enables full path search.

Closes #893.
  • Loading branch information
sorbits committed Mar 14, 2013
1 parent 17ef6ef commit 619c19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Frameworks/OakFilterList/src/FileChooser.mm
Expand Up @@ -96,7 +96,7 @@ - (void)highlightSelectionInClipRect:(NSRect)clipRect
if(str == NULL_STR || str.empty())
return;

if(regexp::match_t const& m = regexp::search("(?x) \\A (?: (?:/(?=.*/))? (.*) / )? ([^/]*?) (\\.[^/]+?)? (?: :([\\d+:-x\\+]*) | @(.*) )? \\z", str))
if(regexp::match_t const& m = regexp::search("(?x) \\A (?: (?:[/ ](?=.*[/ ]))? (.*) [/ ] )? ([^/ ]*?) (\\.[^/ ]+?)? (?: :([\\d+:-x\\+]*) | @(.*) )? \\z", str))
{
_initialized = true;

Expand Down

3 comments on commit 619c19e

@fermion
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any way to undo this behavior via configuration/settings? I've got years of being use to typing partial file names like: call con sp when searching for calls_controller_spec.rb.

@sorbits
Copy link
Member Author

@sorbits sorbits commented on 619c19e Mar 18, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fermion
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, will do. Thank you!

Please sign in to comment.