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

Search and Replace issues #558

Closed
4 of 7 tasks
jasongrout opened this issue Oct 8, 2015 · 16 comments · Fixed by #567
Closed
4 of 7 tasks

Search and Replace issues #558

jasongrout opened this issue Oct 8, 2015 · 16 comments · Fixed by #567
Milestone

Comments

@jasongrout
Copy link
Member

First, the search and replace is very nice! I love the immediate feedback, especially.
In reviewing the search and replace, here are some issues I'm seeing:

Bugs/changes:

  • The joke in the regexp tooltip ("Now you have N+1 Problems") is funny to me, but not appropriate for this interface, I think. On the other hand, it would be extremely helpful if the regexp tooltip said it was using javascript regexp syntax
  • selecting multiple cells, and then clicking Edit | Find and Replace deselects all but one cell. Thus the "Replace in selected cells" is much less useful
  • "Replace in selected cells" checkbox actually also affects the find results, and so should be up with the case insensitive button (thanks to @ellisonbg for pointing this out)
  • number of matches moved down next to the replace all button

Feature requests:

  • I think it would be really useful to have filters for replacing only in code cells or only in markdown cells.

Visual style:

  • Remove the blue highlight on the number of matches.
  • Make the vertical spacing between the different elements more consistent. Rigth now there are at least 3-4 different spacings used.
@jasongrout jasongrout added this to the 4.1 milestone Oct 8, 2015
@ellisonbg
Copy link
Contributor

+1 on all these ideas - Jason and I did an in person UI/UX review of this.

On Thu, Oct 8, 2015 at 1:22 PM, Jason Grout notifications@github.com
wrote:

First, the search and replace is very nice! I love the immediate
feedback, especially.
In reviewing the search and replace, here are some issues I'm seeing:

  • The joke in the regexp tooltip ("Now you have N+1 Problems") is
    funny to me, but not appropriate for this interface, I think. On the other
    hand, it would be extremely helpful if the regexp tooltip said it was using
    javascript regexp syntax
  • selecting multiple cells, and then clicking Edit | Find and Replace
    deselects all but one cell. Thus the "Replace in selected cells" is much
    less useful


Reply to this email directly or view it on GitHub
#558.

Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgranger@calpoly.edu and ellisonbg@gmail.com

@jdfreder
Copy link
Contributor

jdfreder commented Oct 9, 2015

I added #566 which is the underlying problem of your second bullet- so I went ahead and checked it off the list here. I also checked off the two points addressed by #567 .

@jasongrout
Copy link
Member Author

On second thought, I'm not convinced that moving the number of matches down next to the replace all is better than at the top. I like knowing how many matches I have as a summary of the scope of my replacements. @ellisonbg?

@jdfreder
Copy link
Contributor

jdfreder commented Oct 9, 2015

I'd also -1 that because it can't be done with our utils dialog function as is. We'd need to modify it to allow non-button content in the footer. And like Jason says, I think it makes sense for it to live where it does.

@ellisonbg
Copy link
Contributor

Ok

Sent from my iPhone

On Oct 9, 2015, at 1:30 PM, Jonathan Frederic notifications@github.com wrote:

I'd also -1 that because it can't be done with our utils dialog function as is. We'd need to modify it to allow non-button content in the footer. And like Jason says, I think it makes sense for it to live where it does.


Reply to this email directly or view it on GitHub.

@jdfreder
Copy link
Contributor

jdfreder commented Oct 9, 2015

I think it would be really useful to have filters for replacing only in code cells or only in markdown cells.

This should probably integrate into the tagging system we designed together a while back.

@Carreau
Copy link
Member

Carreau commented Oct 21, 2015

#567 was only partially closing this, reopening.

@Carreau
Copy link
Member

Carreau commented Oct 22, 2015

I"m not sure any of the remaining feature are blocking for 4.1

@ellisonbg
Copy link
Contributor

I will try to look over things again.

On Thu, Oct 22, 2015 at 1:33 PM, Matthias Bussonnier <
notifications@github.com> wrote:

I"m not sure any of the remaining feature are blocking for 4.1


Reply to this email directly or view it on GitHub
#558 (comment).

Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgranger@calpoly.edu and ellisonbg@gmail.com

@jdfreder
Copy link
Contributor

The all look like they can be bumped to 4.2 (or 5.0, whichever is our next target).

@ellisonbg
Copy link
Contributor

Let's leave this as 4.1 to remind me about things to look at in final usability reviews before the release. But I am guessing we will close at the release.

@akhmerov
Copy link
Member

It would be nice to be able to apply replacements not on all cells, but in each instance separately. Perhaps adding a replace button to every line, like below would be an option?

replace_one_cell

(Obviously with a better styling than this quick mock-up)

@Carreau
Copy link
Member

Carreau commented Dec 12, 2015

The 3rd button (that have a weird symbol with look like align left) apply the replace only to cells selection.

Replace on each preview is relatively complex to implement, though it is one of the things we were thinking about.

@akhmerov
Copy link
Member

Yes, I saw the 'apply to selection', but it means planning before seeing the result, and so has a different functionality.

@ellisonbg
Copy link
Contributor

I am opposed to trying implement that in our current UI - it doesn't have
the needed abstractions to do that well. In the new JupyterLab/Workbench it
will be quite easy to build a find/replace UI in a separate panel that
allows us to toggle the individual replacements while still showing the
notebook (in a non-model way).

On Sat, Dec 12, 2015 at 5:38 AM, Anton Akhmerov notifications@github.com
wrote:

Yes, I saw the 'apply to selection', but it means planning before seeing
the result, and so has a different functionality.


Reply to this email directly or view it on GitHub
#558 (comment).

Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgranger@calpoly.edu and ellisonbg@gmail.com

@minrk minrk modified the milestones: 4.2, 4.1 Jan 9, 2016
@minrk minrk modified the milestones: 4.2, 4.3 Apr 7, 2016
@minrk minrk modified the milestones: 4.3, 4.2 Apr 7, 2016
@Carreau Carreau modified the milestones: 4.4, 4.3 Jul 29, 2016
@takluyver takluyver modified the milestones: 4.4, 5.0, Backlog Feb 2, 2017
@jtpio
Copy link
Member

jtpio commented Jun 20, 2023

Closing as partially fixed by #567.

This may have been fully fixed in the classic notebook UI later on.

This should also largely be improved in Notebook 7 too, which uses the JupyterLab Search and Replace functionality.

Thanks all!

@jtpio jtpio closed this as completed Jun 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2024
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 a pull request may close this issue.

8 participants