-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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. #285
Search And replace. #285
Conversation
Awesome! |
May I just scream here super loudly ? |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
lol, u mad bro? |
Yeahhhhh working, just need to cleanup things now.... |
cc @dhermes and @michaelpacer |
Not working case:
|
Ok, mostly ready for comments. |
I didn't see a standard keyboard shortcut or Edit menu item for this. I know it may be difficult to find a good keyboard shortcut (maybe not) but there should definitely be an Edit menu item for this as it is a very common action. Also, what would it take to enable this and the command pallette on the text editor page as well? |
We can bikeshed on that in another smaller PR.
What would be the point ? The command palette is made to list |
I am fine merging and iterating in master. But I don't understand why you IIRC there was a PR to add the keyboard manager to the file browser so On Sat, Aug 15, 2015 at 8:36 AM, Matthias Bussonnier <
Brian E. Granger |
No bikeshedding just in the sens that people will disagree on We can have the discussion, but I don't want to introduce (too much) non-technical change in this PR. The other thing that could go into the discussion is the tabindex position of the "Use regEx" and "case sensitive" button in the current dialog layout. I fail to see the use on the command palette on the "tree" view, and I don't see any reason to have a keyboard_manager on the editor, as it is already "just" a full page codemirror instance that have it's own keybindings, and no concept of actions either. Though if |
Might want to consider it as an option on the dialog maybe...
Updates to have 2 actions, replace in all notebook, or only in selected cells. |
UI to replace only in selected cell, use bootstrap way of doing it. Button order is now more keyboard friendly
Last version of the UI, with lots of though and improvement.
So you can easily search/replace with keyboard. CaseSensitive / RegEx toggle are just before Search, So just a Shift-Tab Away. I did it this way because having this after Search, or Replace was too far, or annoying. to tab 4 times to go to replace. Case & RegEx auto focus input after toggle, which reduce the number of keypress needed. The replace only is selected cells is just after the Replace field which make it easy to toggel just before validating. Recap of flow, Search selected by default. Shift Tab, does of course inverse of Tab. Switch Case Sensitive -> Search focused. |
Ping. Otherwise I'll merge and wait for complaints. |
+1, we know we want this, let's merge and iterate in master if we need to. On Wed, Aug 26, 2015 at 1:52 AM, Matthias Bussonnier <
Brian E. Granger |
You haven't pushed the Green Button in a while, do I leave you to do it ? |
(and also why are you up so early) |
Merged! - woke up at 6:30 for no particular reason - my mind must have sensed my inbox filling up :) |
any many thanks for the work on this one - super useful! On Wed, Aug 26, 2015 at 7:31 AM, Matthias Bussonnier <
Brian E. Granger |
Great ! |
:-) I can ping you on more things. |
Hadn't even seen this! how cool. I assume the modal is not the long-term home for this? Being able to use the search results as a navigation mechanism for long documents is really key. Currently, I think the pager answers the mail, while a phosphor panel would make long term sense... |
the "Search" part is not really done, the replace mostly. I would use search through the browser it is more reliable. |
Sorry for my ignorance, but how do I get access to find and replace? How do I open this "Command palette" (Googling "jupiter command palette" gives me nothing useful). I could really use some find and replace functionality in my work right now where I have to rename a bunch of variables. Regarding versions: |
@gandalfsaxe this hasn't been released, so you would need to install the notebook from master, or wait for the release of 4.1. |
@minrk Ah fair enough. Looking forward to it 👍 |
@Carreau I know you said the "search part" is not really done, but I'd love if you could implement the look ahead and look behind features of regex. |
Awesome work! |
On top of the command palette, and WIP.
Search and replace.