How to right click screen coordinate with mouse from command line on OSX - bash

Is there a built command line utility to right click a screen coordinate on OSX?
Is it possible to do so with a secondary cursory such that the main cursor is not re-positioned on the screen?

If you type the key combo of command-shift-4 the curser is turned into crosshairs and the cursor position is listed on the cusor itself. Shown below is a screen capture of an area of screen containing the cross-hairs.

Related

Maximize terminal in VSCode when in side panel

In previous versions of VSCode there was an arrow icon at the top of the panel that could be used to maximize the panel, for instance the terminal. I do not know exactly in which version but that button is now gone and I'm unable to find an equivalent.
My question is: how can I maximize the terminal so it takes the whole VSCode window? Is there any way to get the button back?
Which version of VSCode are you using, and in which OS?
On Mac, and with 1.65.2 (the most recent update by now), I have it in the right corner, near the X button:
Shortcuts
Now talking about shortcuts to make your life easier, there are 2 you should be aware of.
PS: Remember that to change any shortcuts, just go over VSCode Command Palette and type Keyboard Shortcuts to change them.
Maximise panel size
There are no default shortcuts for those, in both Windows and Mac.
If you want to set any, the name of the shortcut is View: Toggle Maximized Panel:
Increasing / decreasing terminal size
Now talking shortcuts, if you want to resize your terminal window, in Mac there's a native shortcut that allows to increase / decrease terminal size with Cmd + Ctrl + Arrow Up / Arrow Down.
There's no default for Windows.
If you want to set / change those shortcuts, they are called Terminal: Resize Terminal Down and Terminal: Resize Terminal Up:
Terminal panel on the side
If you added your panel to either left or right, then the mark to make it fullscreen changes.
After clicking on the arrow below, it'll hide all your files and make the terminal to run in the whole screen for VSCode:
I also got the arrow disappeared, but i manage to bring it back by with command:workbench.action.alignPanelCenter
But i don't know i un align it in the first place
So maybe it will work with you
To get the maximize arrow on the left panel...
Left-click the bottom panel, then choose Move Panel Left
To get the maximize arrow on the bottom panel...
First, press the Customize Layout button
And select Center Panel Alignment
Then move the panel back to the bottom.
Panel can be maximized when centered.
Example: If panel is not centered and the Maximize button is missing you also cannot use the command by hitting
Shift-Ctrl-P View: Toggle Maximize Panel
Fix: run these commands (press Shift-Ctrl-P then begin typing)
First command will enable the maximize button
View: Set Panel alignment to Center
Second command will now work to Maximize (or just press the button that shows up now)
View: Toggle Maximize Panel
Blue and skube have the right answer to the original question. I cannot comment so summarize an answer using commands that can be pasted to verify.

Display iTerm on screen with cursor [or Active Screen]

I always have iTerm running in the background, and use a hotkey to show/hide it when needed, which works great when using only one screen.
Now, with two screens, I notice that with the option to have it appear with the "Screen with Cursor", the first time I press the hotkey, it appears on the screen with the cursor (first screen), but when I hide it, move the cursor to another screen (second screen) and press the hotkey again, it appears on the first screen and not the second one.
Is there another setting that I might be missing to have work properly?

Is there a Win10 shortcut to return the mouse pointer to the last clicked location?

I wondered if there's a way of returning the mouse pointer to its last clicked location in Win10?
The desired behaviour would be:
User clicks left key on mouse. This can be anywhere in the browser window, it doesn't have to be a UI element.
User uses moves mouse to another location.
User presses shortcut keys.
Mouse is returned to its last clicked location.
I've seen AHK scripts that return the mouse pointer to a specific location on the screen, but nothing that records a clicked location and then returns the mouse pointer, using a shortcut.
This can be achieved by mapping LButton (Left Mouse Button) to a hotkey with the Wildcard (*) and Tilde (~) modifiers so that the hotkey will activate even if other keys are being held down, and the hotkey will not suppress the Mouse button's normal functions respectively. This hotkey will capture the current position of the mouse using the MouseGetPos command and save the x and y coordinates into variables (in this case, xpos and ypos respectively).
Next, we can create another Hotkey (Control+q in this example) to move the mouse using the MouseMove command back to the position saved in the variables. To map this to a hotkey of your choice, check out the page on Hotkeys in the docs.
Resulting Code:
*~LButton::MouseGetPos, xPos, yPos
^q::MouseMove, xPos, yPos

Zoom only Text in Visual Studio Code

Is there a way to make Vs-code on Mac only zoom the text/file pane of the window? When I hit Command ⌘+ to zoom, it'll zoom all of the window, ie. also the icons on the left hand side and the file pane on the left as well.
Compare these two screen shots, maybe ;)
Vs-code window, normal
Vs-code window, zoomed in
I'd only like the source file (nfsd.sh in the screen shot) to be zoomed.
Answered in https://stackoverflow.com/a/41684631/5295392:
Out of Box solution for zoom in/out for text only:
Ctrl + Shift + P
Type (Open User Settings)
Search (Edit settings.json)
Add "editor.mouseWheelZoom": true
Save it.
You can use your mouse wheel to zoom in or zoom out only text in the text box.
Open your settings.json file and increase editor.fontSize to increase the size of the text on the source file.
Ctrl + Shift + P
Search 'Zoom'
Pick "Editor Font Zoom In"
Repeat till you get what you want.
On Mac, while pressing the command key, slide two fingers upward to zoom out. Slide downward to zoom in.

Does Visual Studio have center of screen typing mode? I.e. keep focus of input in vertical middle of screen

Can I get the editor to keep the current input in the vertical center of the window?
So that the page text auto scrolls.
I found something useful for what I wanted, but would still like centered typing focus mode.
Ctrl+↑ – moves view up one line at a time, so the text scrolls 'down' one line at a time
Ctrl+↓ – moves view down one line at a time, so the text scrolls 'up' one line at a time

Resources