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

find should search in results #1297

Open
sanketd11 opened this issue Feb 12, 2015 · 7 comments
Open

find should search in results #1297

sanketd11 opened this issue Feb 12, 2015 · 7 comments
Milestone

Comments

@sanketd11
Copy link
Contributor

Currently only the results from the code are highlighted.
User may want to find from the output as well once the code is executed.

@gordonwoodhull
Copy link
Contributor

This would be great but I was focusing mostly on search and replace, and obviously results can't be modified. Will have to put off for 1.4.

@gordonwoodhull gordonwoodhull changed the title Should 'find' fetch results from the output? find should look in results Feb 12, 2015
@gordonwoodhull gordonwoodhull added this to the 1.4 milestone Feb 12, 2015
@gordonwoodhull gordonwoodhull changed the title find should look in results find should search in results Feb 12, 2015
@anatoliyg
Copy link
Contributor

just to confirm, we'd want to replace the results of any executions only on the front end? Should the replacements persist if you reload the page or re-run the cells?

@gordonwoodhull
Copy link
Contributor

I don't think we should allow replacements in the results, just searching. Otherwise one would be literally falsifying results. So if you're in replace mode, the replace button/command should not work whenever in a result area, the only thing to do on those finds is go to next.

@anatoliyg
Copy link
Contributor

Makes sense.thanks

On May 18, 2015, at 3:57 PM, Gordon Woodhull notifications@github.com wrote:

I don't think we should allow replacements in the results, just searching. Otherwise one would be literally falsifying results. So if you're in replace mode, the replace button/command should not work whenever in a result area, the only thing to do on those finds is go to next.


Reply to this email directly or view it on GitHub.

@gordonwoodhull gordonwoodhull modified the milestones: 1.4, 1.4.2 Jul 8, 2015
@s-u
Copy link
Collaborator

s-u commented Aug 12, 2015

It would be nice if find was global (not just code and/or results), e.g. so it would work in the notebook tree as well (so you can search for a notebook name, user name etc.) It may require some separation of the search functions or some notion of focus.

The current behavior is not unreasonable and is very helpful as a search within the notebook, but from a browser-user perspective one would expect to be able to use <Cmd><F> to find any content on the page.

@anatoliyg
Copy link
Contributor

I think that would be a good feature too. And should be doable on the FE
alone, since things like username and notebook name are present in the
tree's html, so we won't have to search any models for matches, just the
dom, then highlight tree's nodes and sub-nodes and scroll them into view
when a match is found. And maybe we can add some notion of focus to the
current cmd+F prompt.

@gordonwoodhull
Copy link
Contributor

It's a good idea but it really merits a separate issue because it would require work unrelated to what this issue is about. I don't think the browser's built-in search would help, so it's a matter of implementing incremental search on top of the jquery.tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants