I have questions about the Google Apps Script Editor.
When using the Find and Replace menu in the script editor, how can you make your search case sensitive? There's no "match case" option. Is there some way with regular expressions?
I'm working on a rather small screen and since the search is normally not case sensitive I can't see when it's locating what I'm looking for.
I was also wondering if the Find/Replace popup is supposed to be moveable since I just end up highlighting text if I try to drag it. The "Find" popup in the Google Docs Spreadsheet app can be moved, I would expect this one to behave similarly.
You can drag the find box right out of the way by clicking within the single line phrase "Find and replace" and then dragging away from the central area.
Unfortunately you can't use regex (AFAIK).
There is no case-sensitive search in the editor, but it's been requested. Visit and star Issue 1593.
The search window is movable, but you need to grab something inside the dialog container. I usually grab it by the caption, "Find and replace".
I prefer to not drag the window out of the way but permanently (at least while working that day) to the far top right corner with all of the wasted padding removed.
-Right-click on the window to open the menu, choose "inspect"
-In the window that opens, look up the domain text until you see
<div class="maestro-dialog" role="dialog"
-Click on that line in the DevTools
-On the right side, change the Style settings under .maestro-dialog to be:
*uncheck the padding line
ADD
right: 20px!important;
width: 440px!important;
left: unset!important;
top: 0px!important;
The box moves and will stay there every time you open the search....so long as you don't close the window with the DevTools (of course, you can hide it, but don't click the top-right "x")
Related
Recently there is this "Search images with Google Lens" in the contextual menu (triggered from the right click) in Chrome browser, which is super useful.
For those who doesn't know yet, if you click on that item you can define a screenshot area and then Google Lens page opens with the image you just framed. And then it lets you search for "things" inside this image.
What I try to do is to find a way to assign a hotkey to trigger that menu item without being forced to use the mouse (e.g. ctrl + alt + s). The reason I want to do that is because I overuse this functionality and I am in a keyboard-over-mouse increase productivity mind of set.
My first thinking was to make a page script that would trigger that contextual menu and click the item but as far as I know there is nothing in the JavaScript API with that much power
(There is this " JavaScript - simulate click on contextmenu " but they are not talking about the native Chrome contextual menu I believe.)
Another option would be to use some key automation program like AutoHotKey in windows but there is one problem, the contextual menu is not always located in the same position relative to the mouse (e.g. if the menu is triggered at the bottom of the page it will appear above the mouse pointer).
Other than that I don't really see another solution.
I am digging for some idea and maybe you could help me if you are interested in the same outcome.
EDIT: For whoever may be interested
I made this python script
https://github.com/vdegenne/lens-clicker
It works on my computer, I can now get the result I want. But I keep this question opened for more ideas, seeking a better solution.
(You can also contribute to the project on the GitHub page).
I use Vimium, an extension to allow vim-like keybindings for browser navigation.
You can add search engines, for example Google Lens as so:
i https://lens.google.com/uploadbyurl?url=%S Google Lens
So once I have the URL of the image in the clipboard, I type o, i, Space, Ctrl + v, Enter
I'm working on finding a way of getting the URL of the image, but am not sure Vimium supports this. If not, using the URL template (above) to search Google Lens is still a much more robust way than by automating clicks on a menu, so hopefully that's helpful.
I need to frequently translate the webpage manually for work purpose. Although not looking for auto-translate options, I need a keyboard shortcut or a handy extension to translate the page. The right click option on google or the google chrome translator extension need multiple clicks in order to translate. The middle mouse button to translate the whole web page would do some good to me.
I tried looking out for extensions out of which context menus was related to my issue. I couldn't figure out how it works.
The right click option on chrome has 7th option for translate page which is not handy. I need it to be the first option on right click or the middle mouse button to translate the google page would help.
I am working on windows and not MAC.
Let me explain the situation.
I need to copy a lot of instances of a text inside a project of PhpStorm. So, I perform a 'Find in Path' action and a floating window appears with the matching results.
Now my problem is that after copying once from the floating window, if I click on another app window, then PhpStorm's main window/PhpStorm itself go to background, then if I want to copy text from the floating window again, I can not use any keyboard shortcut, I can not modify any line in the floating window because PhpStorm stays in background/inactive-mode even if I click on its floating window.
If I click anywhere in the PhpStorm except the main top-white bar of PhpStorm, then the floating window disappear, which causes me to perform the search again.
It is reducing my productivity a lot. Is there any way to make the PhpStorm active or bring it foreground when clicking its floated search window?
Please see the screenshot:
Is there any way to make the PhpStorm active or bring it foreground when clicking its floated search window?
You are approaching the problem from the a bit wrong angle. There is a better solution than fighting the focus/foreground state.
There is a button in the bottom right corner of "Find in Path" window ("Open in Find" it says on your screenshot) -- click it and it will open search results in traditional / standard Search Results tool window (with grouping by folders/files, preview area etc)... so no floating and no auto closing on clicking somewhere.
P.S. Lots of people forgetting that results shown in this new "Find in Path" dialog/popup is still just a preview (TOP 100 matches only). Super functional (you can edit and stuff) but still preview only. This mainly applies to those who remember the way how this dialog (back then it was dialog window) looked before redesign (now it's more of a popup).
Because of the way how it is all presented now (results occupy majority of the popup space) people somehow automatically forgetting about "traditional" way of searching (clicking actual "Find" button to get search working) and focusing only on what they see on a screen right now.
This new "Find in Path" dialog/popup adds a lot of convenience for sure (you typed search text and results are straight away before your eyes). At the same time quite often you may see/hear "it does not show me all results" frustrated comments (as it shows top 100 .. and a single file may have 100+ hits in some cases) and alike. JetBrains needs to improve UX a bit in this area for sure.
this is my first question here. I am using Notepad++ and I love it. The only thing I find uncomfortable is that when multiple tabs are open, the width of the tab name is too big, and that is because Notepad in the tab name displays the full name of the file.
I wonder if it is possible that the with of the tab was automatically reduced (as it happens in Google Chrome, for example), so that the more tabs you have, the smaller the width of the tab, that is, the more abbreviated the name is.
Thank you!
I'm using Notepad++ for a long time and I can say that there is no way to do what you want.
But, you can open multiple notapadd++ windows with multiple tabs.
e.g. 10 tabs at the 1st window, and 10 tabs at the 2nd window.
To open new Notepad++ window just drag&drop some tab from main window outside it. Same way you can move tabs between two windows.
To my knowledge there is no way to have tabs resize like that. You can try settings>preferences>general>tab bar>reduce or even multi-line, but I don't believe they can dynamically resize.
Everywhere I've read, it says to create a "button" in Google Spreadsheet you need to insert an image and assign a script to it. Easy enough. Done.
Now how do I modify that image? Clicking on the image runs the script. I cannot right-click the image for any context menu. I cannot select the image in any other way. I cannot ever remove the image now.
Perhaps Slav was using a Mac when he tried it the first time. Strangely, in this specific scenario, the Mac equivalent of right-clicking (which is CTRL+click) really does not work. What works is CMD + click.
While you can "assign a script" to an image, you can also do so to a drawing - which is much easier to customize. Either way, you end up with a picture in the spreadsheet, and when you click on it a script is triggered.
To edit this behavior, just right-click the image or drawing. (I know you said you did this, but it DOES work. Just click - then let go.) An anchor will appear on the image or drawing, and from there you can access a menu to edit or delete the image or change the attached script.
So that was tricky to me because the anchor was invisible in my image; it had a black background. If you can't see the anchor on your image follow these steps:
Right click on the image, You should find that it now has resize handles
Move your cursor to the top right of the image until it changes to a hand that points with the index finger (like when you hover over a link)
Click
Do whatever you want (Edit, delete... etc.)