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

Textual "find in selection" for notebook find widget #121218

Closed
IanMatthewHuff opened this issue Apr 13, 2021 · 24 comments · Fixed by #216840
Closed

Textual "find in selection" for notebook find widget #121218

IanMatthewHuff opened this issue Apr 13, 2021 · 24 comments · Fixed by #216840
Assignees
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders notebook-find on-testplan
Milestone

Comments

@IanMatthewHuff
Copy link
Member

@Xinyu-Wu-0000 commented on Tue Apr 13 2021

Issue Type: Feature Request

Hope to use "find in selection" function in notebooks.

Extension version: 2021.5.743038836-dev
VS Code version: Code - Insiders 1.56.0-insider (48387df, 2021-04-13T05:15:44.407Z)
OS version: Linux x64 5.11.0-13-generic


@IanMatthewHuff commented on Tue Apr 13 2021

I do repro this as well. However with the new Native Notebook UI this search / find UI is controlled by core VS Code, not the Jupyter extension. I'm going to transfer this issue to their repo.

@rudiranck
Copy link

@Xinyu-Wu-0000 commented on Tue Apr 13 2021

Issue Type: Feature Request

Hope to use "find in selection" function in notebooks.

Extension version: 2021.5.743038836-dev VS Code version: Code - Insiders 1.56.0-insider (48387df, 2021-04-13T05:15:44.407Z) OS version: Linux x64 5.11.0-13-generic

@IanMatthewHuff commented on Tue Apr 13 2021

I do repro this as well. However with the new Native Notebook UI this search / find UI is controlled by core VS Code, not the Jupyter extension. I'm going to transfer this issue to their repo.
+1

@plauria
Copy link

plauria commented Aug 3, 2022

I'm kind of confused why is this considered a feature request and not a bug? Find is not respecting global search settings like "Auto find in selection".

I guess it's just semantics, but tagging this as feature seems like a way to de-emphasize its importance, but given the number of dups I'd say it's pretty important to people. This is an extremely basic functionality that's missing and apparently was present in earlier versions of vscode.

@luchungi
Copy link

luchungi commented Aug 4, 2022

Solution is given in #141493 with the F3 key which allows find in selection/cell so this can be closed

@plauria
Copy link

plauria commented Aug 4, 2022

No, it can’t. Pressing F3 doesn’t do anything differently, as I mentioned in my dup bug report.

@lgonzalezsa
Copy link

I am in vscode 1.75.0 and F3 to search and replace in a notebook cell does not work anymore, is this issue related to that problem or should I open a new one?
#141493 (comment)

@tp-duarte
Copy link

I'm having the same problem as @lgonzalezsa

@sk1ddy
Copy link

sk1ddy commented Mar 21, 2023

I am in vscode 1.76.0 and I am experiencing the same problem

@eekhof
Copy link

eekhof commented Mar 27, 2023

I can also confirm the same problem in 1.76.0.

@ZSZYoung
Copy link

also in 1.78.2
We need F3 back

@gilles-zerah
Copy link

Also in 1.80.0
This would be much needed.

@miguelroboso
Copy link

Any update on this?

@gilles-zerah
Copy link

gilles-zerah commented Feb 1, 2024 via email

@jsulopzs
Copy link

I'm also having the issue @gilles-zerah describes.

Are there any updates on making the find tool start from the cursor position?

@lgonzalezsa
Copy link

Is there a roadmap where the missing feature will be added? a workaround I am using is to copy the cell code in a new text file and then replace what I need in a controlled way.

@rebornix rebornix assigned Yoyokrazy and unassigned rebornix May 30, 2024
@rebornix rebornix modified the milestones: Backlog, June 2024 May 30, 2024
@Yoyokrazy Yoyokrazy changed the title "find in selection" for notebook Textual "find in selection" for notebook find widget May 31, 2024
@Yoyokrazy
Copy link
Contributor

Related to work done at: #209839

This issue requests textual selections (multiple lines in a cell, etc). There is now support for cell selections upon the enabling of the newly introduced setting "notebook.experimental.find.scope.enabled": true

@lgonzalezsa
Copy link

Great! Can I use it today? I added the setting not sure what to expect in the find UI.

@ZSZYoung
Copy link

ZSZYoung commented Jun 3, 2024

Related to work done at: #209839

This issue requests textual selections (multiple lines in a cell, etc). There is now support for cell selections upon the enabling of the newly introduced setting "notebook.experimental.find.scope.enabled": true

Glad to hear that

@Yoyokrazy
Copy link
Contributor

Great! Can I use it today?

@lgonzalezsa the search in cell selection you can 👍 if you enable the setting, you will see the new "in selection" button to the left of the arrows that let you step between results. The feature is active on insiders, and is included in the upcoming stable release as well. Here's a video of how it currently works, and I'll be working to expand functionality for textual selections (in addition to cell selections) this month.

notebook-find-in-cell-selection.mp4

I added the setting not sure what to expect in the find UI.

Without the setting enabled, you will not be able to see the "in selection" button within the find widget when you are using a notebook editor. When enabled, the button should be visible.

@lgonzalezsa
Copy link

It is not working for me, I added it to the bottom of my settings file as follows:

image

@Yoyokrazy
Copy link
Contributor

Hm, interesting. Could you check which version of vscode you are running? The feature would only be available in a recent insiders, and not until stable 1.90 is released this week. This can be checked via the help menu -> About.

Could you also check if the setting is visible in the settings UI? Searching just for "notebook find" should populate the setting.

@lgonzalezsa
Copy link

Got it! seeing it now in 1.90 was waiting for that feature to be enabled again! helps a lot, THANKS!

@gilles-zerah
Copy link

gilles-zerah commented Jun 6, 2024 via email

@Yoyokrazy
Copy link
Contributor

Yes, the "Find in Selection" button needs to be toggled off and on again to change the selection. This is currently the same behavior that works for standard editor "Find in Selection" in regards to changing the selection. The decorations applied to the cells are a good indicator of the range you will be searching within.

@vscodenpa vscodenpa added the unreleased Patch has not yet been released in VS Code Insiders label Jun 24, 2024
@vscodenpa vscodenpa added on-testplan insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Jun 25, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders notebook-find on-testplan
Projects
None yet
Development

Successfully merging a pull request may close this issue.