How to move search bar to bottom? Also how to hide Replace bar?

Whenever I open text search, it opens this large search bar at the top and pushes code down, which includes the Replace bar, which I usually don't need.

How do I move the search bar to the bottom section (above the very bottom bar if its open) so that it only covers the bottom text instead of pushing all code down?

Basically I'm trying to get it to work like NetBeans, which made more sense, and if I can get Ctrl+H to open Replace, that would be ideal.

8 comments
Comment actions Permalink

Hi there,

Whenever I open text search, it opens this large search bar at the top

What do you mean "large"? It's pretty small -- no more than 1.5 lines of code (with my generic font settings) .. or almost the same height as editor tabs bar.

which includes the Replace bar, which I usually don't need.

Screenshots please -- I'm confused here.

There are separate "Find..." and "Replace..." actions -- and if you do not need "replace" part then you should just not call "Replace" but call" Find" instead.

How do I move the search bar to the bottom section (above the very bottom bar if its open) so that it only covers the bottom text instead of pushing all code down?

AFAIK it's not possible.

Basically I'm trying to get it to work like NetBeans, which made more sense

I do not know how it works in NetBeans (have not used it often .. and last time it was around 1 year go -- quick look) .. so not sure what you mean here.

The only alternative (excluding "Find in Path") for searching in current file that would not use top bar is via separate dialog window. It's still present in v8 (not sure about v9) .. but it has no shortcuts. You can use "Help | Find Action..." and look for "find" -- one of the entries will be that dialog box (as described here: https://youtrack.jetbrains.com/issue/WI-22801#comment=27-713052). When found and happy -- you may assign custom shortcut to it.

and if I can get Ctrl+H to open Replace, that would be ideal.

Keyborad shortcuts are fully customizable (look for "Keymap" in Settings/Preferences)

0
Comment actions Permalink

Large, small, whatever, you think it's small, I think it's large, that doesn't matter, who cares.

Do I need to draw a picture every time? There's a Replace bar under the Search (Find?) bar. Please explain how many different ways the Replace functionality shows under the Search functionality so I can tell you which one it is; really, there's only one, when you do a text search in a file (Ctrl+F on Windows at least). It's the typical text search (which I mentioned in the original post) like in any editor.



Attachment(s):
Find bar issues.png
0
Comment actions Permalink
Large, small, whatever, you think it's small, I think it's large, that doesn't matter, who cares.

If it does not matter ... then why did you brought that argument in first place?

From the way you worded .. it was clear (for me, at least) that it does matter.

Do I need to draw a picture every time?

It's up to you -- if you want a possibly better answer or if you are happy with current one. If it's too difficult for you to make one then please just do not bother next time.

If something is unclear for me (for whatever reason: me being slowpoke or whatever) I will ask for clarification.

There's a Replace bar under the Search (Find?) bar. Please explain how many different ways the Replace functionality shows under the Search functionality so I can tell you which one it is; really, there's only one, when you do a text search in a file (Ctrl+F on Windows at least).

Yes -- your screenshot shows that you are using "Replace" and not "Find".

"Find" look like this -- see, no "Replace" anywhere:
screen01.png
1) What keymap you are using?
2) If you are using Ctrl+F (as you have said) -- which action it is associated with (the keymap settings screen can do search by shortcut) ?
3) Which shortcut do you have for "Edit | Find | Find..." ?

0
Comment actions Permalink

"Large" is just how I saw it, it wasn't an argument I brought up, you asked me what I meant and said it was small... it obviously doesn't matter because it's a matter of perspective, and it was obvious that I saw it as "large". Someone telling me it's small doesn't make it any smaller to me. The relative size to our eyes doesn't matter, it's not worth discussing anymore, stop making it an issue and please drop it. The issue is its position and what it includes.

I generally don't have to make screenshots/draw pictures on developer forums, they seem to get what I'm talking about most of the time and can generally deduce if they're not fully understanding because there's a limited set of possibilities. There's only one Search/Replace bar, period; that doesn't make sense in a filename/folder context or any other context than text editing.

"your screenshot shows that you are using "Replace" and not "Find"."

I hit Ctrl+F, which opens the Find bar but also  the Replace bar below it; if I look at the settings keymap, Ctrl+F is assigned to Replace underneath Find, with no shortcut for just Find... As I said in my original post, I want just the Find bar to show up with a shortcut, and you just showed me a screenshot, but without specifying how to make that happen or keymap it or activate it or anything, so I'm getting frustrated that I'm having to keep coming back to reiterate and draw what I'm looking for instead of just getting a straight answer.

0
Comment actions Permalink
There's only one Search/Replace bar, period;

Correct. Separate for Search (which has 1 input box) and one for Replace (with 2 input boxes). The one for Search does not have replace functionality (like on my screenshot), period. The one you are using is a Replace (which was confirmed by your screenshot).

You were using "Replace" and still calling it "Find" -- as for me (who sees the difference between the two) it's confusing.

I hit Ctrl+F, which opens the Find bar but also  the Replace bar below it; if I look at the settings keymap, Ctrl+F is assigned to Replace underneath Find, with no shortcut for just Find...

With this info ... it looks like you are using Eclipse keymap. Misclick on initial setup?

As I said in my original post, I want just the Find bar to show up with a shortcut, and you just showed me a screenshot, but without specifying how to make that happen or keymap it or activate it or anything, so I'm getting frustrated that I'm having to keep coming back to reiterate and draw what I'm looking for instead of just getting a straight answer.

Well .. I've told you this: "Keyborad shortcuts are fully customizable (look for "Keymap" in Settings/Preferences)". Since you already know how to access and use Settings .. I have wrongly assumed that finding "Keymap" section would have been a pretty easy task (search box in the corner and type "keymap" if finding the right node manually is not convenient/takes too long)... In any case: "Settings | Appearance and Behavior | Keymap" (that's for v8, for v9 it will be just "Settings | Keymap")

https://www.jetbrains.com/phpstorm/help/keymap.html (official help page which has pics and all)

P.S.
I hope you agree with me that if you would provide your screenshot in actual original post ... all this conversation would have been different (a picture is worth a thousand words).

0
Comment actions Permalink

Thanks for the clarification, but I didn't know all the exact terminology as was obvious in my original post: "Whenever I open text search, it opens this large search bar at the top and pushes code down, which includes the Replace bar"... what else could this mean but what you call the "Replace" bar? It's obvious that I just wanted the top "Search" bar to type text in to search the file and not have the additional attached line with its own fields below that for replacement (what I called "the Replace bar"). This really should have been picked up on originally, there should not have to be this much explanation.

Yes, I am using the Eclipse keymap, and I mentioned I was using Ctrl+F to open the "text search" (which was actually the "Replace" bar), so if you deduced from my last post (when I mentioned Ctrl+F again) that I was using the Eclipse keymap, you should have deduced from the previous post (when I originally mentioned Ctrl+F) that I was using the Eclipse keymap. There was no misclick, I intentionally configured PHPStorm to use the Eclipse keymap defaults, and PHPStorm just happened to assign Ctrl+F to "Replace" (the full text search + replace line fields together) rather than just single-line text search ("Find" I guess)... the whole point from the beginning was that both the text search line and the replace fields line were opening together on Ctrl+F and I didn't also want the replace line fields showing too.................

So again, now that you've shown me a screenshot for showing JUST the "Find" line with fields (and NOT the replace line fields), I still need to know how to program a shortcut to that. I've already searched the keymap settings (previous to your reply) and there appears to be nothing there for just the find line. There is nothing on that link you provided that shows how to make a shortcut just to show the single-line find fields in your screenshot. I can set it for "Replace" but not "Find".

0
Comment actions Permalink

In Default keymap (and others that I have tried myself) Ctrl+F (or Cmd+F) is actually assigned to "Find..." and not "Replace...". I have never used actual Eclipse or its keymap here in PhpStorm so could not have guessed such setup.

How to:
screen01.png

1) Make a copy of Eclipse keymap first (as IDE does not allow to modify actual bundled keymap)
2) Find the right action (highlighted on screenshot)
3) Either right click on it or click on "Edit" button and choose "Add Keyboard Shortcut"
4) Assign any non-conflicting shortcut

0
Comment actions Permalink

It doesn't matter what the PHPStorm default was assigned to for Find because as I mentioned in the original post I am using the Eclipse keymap. 'Find' has no assignment, as I just discovered after searching for it (it did not originally show when I searched for Ctrl+F, which showed nothing, and "Replace", which showed under Find), so I didn't find it before because I did not know it was technically called 'Find' in options. I do find it now though so I can change it, but this should have been as simple as saying "Open your keymap settings and search for 'Find'", or expand 'Main Menu' > 'Edit' > 'Find'.

0

Please sign in to leave a comment.