Is there a way to search by string or filename, then use the results to download/push/pull using the results as context?

I have found my self several times in a situation in which I search for the contents of a file (locally) and needed to download only the results.

it would save a lot of time to be able to download file by using the "FIND WINDOW" (select, right-click, download).

maybe there is another way to do this that does not involve opening each file after searching and clicking download or downloading an entire folder when all I need is a couple of them.

0

Hi there,

Should work -- use shortcuts.

I mean: I do a search in multiple files (e.g. whole folder) and list found matches in Search Results tool window. Then edit each file, select them in that tool window and hit the Upload shortcut .. and only those selected files will be uploaded. The same should work for Downloading.

 

BTW -- Search Results is a tool window, not the Preview area of the Find in Path popup.

0

Thank you for taking the time to read and respond to my question Andriy,

 

Opening files is the part that I am trying to avoid. I search, then would like to upload using results as the context.

I don't think I fully understand your reference to shortcuts.

 

What I figured you meant was to select the files found, on the "Find Window". Then clicked on TOOLS > DEPLOYMENT > UPLOAD  (there is no default key combination to execute that task). What happens is that PHPStorm uploads whatever file I have open and active at that moment.

I if select 1 or multiple of the files on the FIND WINDOW, then right click, none of the options on the context menu is upload/download/etc. Also, there is no download/upload button on that tool window.

This is what I see when I run a search and choose to view it on the "FIND WINDOW" then right-click on one of the selected files. not even expanding and opening the file allows me to upload it from there. I would like to "mass upload" all the results. Not one by one.

 

 

 

0

Yes, that's the correct tool window.

1) It has preview area as well (on the right) .. where you can edit text without opening the file in Editor. You can activate it by using 2nd icon from the bottom, right column (if you need editing/preview).

2) Assign shortcut to Upload (or Download) action ... and use it (shortcut) when focus is in that Search Results tool window -- shortcuts will work even in "Navigate | File" kind of lists.

2

Thank you for putting me on the right track.

I selected the results and pressed CONTROL+ALT+SHIFT+X (choose server to upload to) and it did upload all of the files. Then I created a "download from" shortcut and it also worked in the context of the results window.

 

0

请先登录再写评论。