Skip to content

counsel.el (counsel-locate-cmd-es): Match path - #1633

Closed
et2010 wants to merge 1 commit into
abo-abo:masterfrom
et2010:match-path
Closed

et2010 wants to merge 1 commit into
abo-abo:masterfrom
et2010:match-path

Conversation

@et2010

@et2010 et2010 commented Jun 18, 2018

Copy link
Copy Markdown

No description provided.

@basil-conto

Copy link
Copy Markdown
Collaborator

Just out of curiosity, because I'm not a Windows user: is the ".exe" suffix required to locate/execute executables?

@et2010

et2010 commented Jun 18, 2018

Copy link
Copy Markdown
Author

It seems you can execute without the suffix. I didn't notice any differences.

@abo-abo

abo-abo commented Jun 18, 2018

Copy link
Copy Markdown
Owner

Could you please explain what "match path" means? More precisely, what is the change in behavior when adding the -p flag?

@et2010

et2010 commented Jun 18, 2018 •

Copy link
Copy Markdown
Author

Sorry for the confusing description. With this flag, the parent folders containing the searched string will also be matched

image

For comparison, here's when this flag was removed:

image

This could be helpful when one forget the exact file name but know where to find the file.

Edit:

Another example: If I want to find a zip file in my Download directory, I could type:

image

@abo-abo abo-abo closed this in 80f05a7 Jun 18, 2018
@abo-abo

abo-abo commented Jun 18, 2018

Copy link
Copy Markdown
Owner

Thanks, I assume here that all users will want -p flag. If there's an objection later on, we can extract the command into a customizable variable.

@et2010
et2010 deleted the match-path branch June 19, 2018 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants