Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add restrict search to folder #163597

Merged
merged 1 commit into from Oct 14, 2022
Merged

add restrict search to folder #163597

merged 1 commit into from Oct 14, 2022

Conversation

andreamah
Copy link
Contributor

@andreamah andreamah commented Oct 13, 2022

In search:
image

Fixes #161864

@andreamah andreamah self-assigned this Oct 13, 2022
@andreamah andreamah marked this pull request as ready for review October 13, 2022 22:58
};

const RESTRICT_SEARCH_TO_FOLDER_ID = 'search.restrictSearchToFolder';
KeybindingsRegistry.registerCommandAndKeybindingRule({
Copy link
Member

Choose a reason for hiding this comment

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

Didn't you just convert some actions to Action2? I'd suggest using that for new stuff

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I still need to switch it over; will switch this with the others #162858

order: 3,
command: {
id: RESTRICT_SEARCH_TO_FOLDER_ID,
title: nls.localize('restrictResultsToFolder', "Restrict Search to Folder...")
Copy link
Member

Choose a reason for hiding this comment

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

I'll have to see how I feel about this name, honestly I thought "Find in Folder" is fine - when you have two actions that do exactly the same thing, I would lean towards giving them the same name. But it's fine for now, I don't have a strong opinion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm... I think I see it from both perspectives. I'll leave it as is for now and see whether I see differently later on.

@andreamah andreamah merged commit 25bb575 into main Oct 14, 2022
@andreamah andreamah deleted the andreamah/issue161864 branch October 14, 2022 16:29
@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "Find in Folder" to context menu in Search Tree
2 participants