-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Fix tooltip and move replace in selected cells button. #567
Conversation
.append(onlySelectedButton) | ||
) | ||
$('<div/>') | ||
.addClass('input-group') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just append the repl, rather than appending the input group div, and then putting repl inside that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That causes it to render incorrectly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my PR to yours, which does what I was suggesting (though I may have not been clear) and seems to render fine, at least on Chrome where I was testing.
@jdfreder - I put in a PR to your PR. @ellisonbg - I also saw that and I fixed that in my PR to @jdfreder. |
@jdfreder, I'm also seeing a 1-2 pixel difference between the buttons and the input area. The buttons I think are sized to 32px, but the input area isn't, so there's a dissonance between the two. |
@@ -166,14 +165,14 @@ define(function(require){ | |||
.addClass("fa fa-check-square-o") | |||
) | |||
.attr('data-toggle','button') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also replace the faux checkbox button with a real checkbox!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or change the icon to fa-square-o (to indicated a "selected" border)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the button is already a toggle button, I don't think it makes sense to add a checkbox too. I'd either need to sync the check state with the button state or keep the checkbox static. Not to mention, on some operating systems/browsers, check boxes aren't that pretty.
The fa-square-o
idea is easy though, @ellisonbg would you like that?
Search and replace
@jasongrout ah, that missing border is what I thought was a consequence of simplifying the border. I didn't notice it was gone even with the code as is. I merged your PR |
-1 to move the checkbox. The re and case sensitive change the meaning of the text which is in the search field. The check box apply only to where it will apply. After using the SnR for some time, especially with the keyboard, I find out that I was selecting the "replace only in selected" only after entering the replace text. and having after the replace filed made it much more convenient to reach with tab. I was at the beginning with the other 2 button, and it was annoying. I moved it after on purpose. |
Shouldn't the checkbox also affect which cells the search is done in. If On Wed, Oct 14, 2015 at 2:39 PM, Matthias Bussonnier <
Brian E. Granger |
Yes for "Just search", though harder to do that SnR, not sure about the UI for that. I think the browser Search is better for just search. From my personal use, I know I want to search and replace, it just append to replace in places where I am not expecting to find what I am searching so my workflow is the following:
Technically I would like a checkbox next to each preview, and be able to individually deselect some results (à la textmate). Hence why I placed the checkbox after as it is the last action I before validating. |
I should clarify my feelings about the select button:
On Wed, Oct 14, 2015 at 3:03 PM, Matthias Bussonnier <
Brian E. Granger |
No objection. Design-wise, it might be less pretty, but fair enough.
it make keyboad usage a bit harder. I would prefer No objection to try, though I want to keep the keyboard usability in mind. |
I'm still slightly minus one on this for the reasons I stated above, which you may have missed: Because the button is already a toggle button, I don't think it makes sense to add a checkbox too. I'd either need to sync the check state with the button state or keep the checkbox static. Not to mention, on some operating systems/browsers, check boxes aren't that pretty. |
Merging to test it. |
Fix tooltip and move replace in selected cells button.
partially closes #558