change order of keys with shift on windows 7 - windows-7

What is my issue:
- right now I'm using keyboard layout Polish - Programmer and when i click a key right to 0 ) i get - (minus) and _ (when with Shift)
What I would like to have:
- pressing key next to 0 ) should put _ and - (with Shift)
I tried the app Sharp Keys but with that I'm able only to swap the key with other one, not to change the 'shift behavior' for that specific key.
Could any one assist me with that please?

Solution for this was to install Microsoft Keyboard Layout Creator
Then to modify selected Keyboard layout and switch these characters.

Related

Is there a way to copy text in git bash (on Windows) using just the keyboard?

I want to copy text, either -
the output of the previous command, OR
any text present in the bash window,
simply by navigating the cursor and selecting the text using only the keyboard. I do not want to use the mouse at all.
Is there any way to do this?
If impossible, is there any way to do this with minimal use of the mouse?
Example use case - copying the name of a branch, or a commit ID (from a previous git log or git branch) and then pasting it in a git command for switching to it.
You can check the shortcut by
with keys: > options > keys > shortcuts
or
with mouse > options > mouse > mouse functions
The solution that worked is for:
desktop keyboard: [shift] + [insert] keys to paste
laptop keyboard: [shift] + [0] keys to paste
NB: For laptops, the 0 Key at the bottom of the number pad on the upper-right corner of your keyboard will function as an Insert Key when Num Lock is turned off. That is why it is labeled with both 0 and Ins on the key itself.
I discovered an answer on another forum. One just has to enable to Ctrl + Shift + Letter keys from the bash terminal's options. One can then use Ctrl + Shift + C to copy and Ctrl + Shift + V to paste.
You can copy but can't paste text or number on Windows.
Just copy with shortcut ctrl + v. After copying, press right mouse click to paste wherever you want.
Paste will reset when press left mouse button.

Issue switching language input

On windows 7 new install I couldn't change language via right alt +
shift.
I could do by the left alt + shift.
I used to change by right alt shift and left alt shift all worked in the previous win7 installation.
Is there anyway to solve this?
Is the keyboard layout set correctly and is the right Alt in fact an Alt-Gr instead of a plain Alt key?
If you right-click your taskbar I think there may be an option to open your Keyboard and Language options. If I'm not remembering correctly then you can certainly get to it through your Control Panel. You can change the keyboard layout here.
Open a text editor and try typing in the alternate and lesser used keys such as #$/|~` and so on to test if the right keys produce the right characters.
The on screen keyboard can also give you a display of what layout the computer thinks you are using. You can find that in your Accessibility Options.

How can I block select in Geany?

I often need to select a block of text, like a leading character that occurs on many lines. LibreOffice has block selection. How can I do this in Geany?
For example, I want to remove the pipe and the space at the beginning of each line:
| Create another 'Login Role' for the 'auth' user:
| Role name: auth
| Password: auth
| Role privileges: Create database objects
It's called "column mode editing". Look here:
http://www.geany.org/manual/current/index.html#column-mode-editing-rectangular-selections
Column mode editing (rectangular selections)
There is basic support for column mode editing. To use it, create a
rectangular selection by holding down the Control and Shift keys (or
Alt and Shift on Windows) while selecting some text. Once a
rectangular selection exists you can start editing the text within
this selection and the modifications will be done for every line in
the selection.
It is also possible to create a zero-column selection - this is useful
to insert text on multiple lines.
Peter Mortensen has documented how to configure this on Lubuntu (for LXQt):
https://pmortensen.eu/world2/2020/03/29/using-geany/#Column_mode_blues
On Lubuntu, the keyboard shortcuts for selecting a rectangular area of
text (“column mode” in UltraEdit) do not work, because they conflict
with four default keyboard shortcuts in the window manager (LXDE?
Openbox?), Shift + Alt + arrow up, Shift + Alt + arrow down,
Shift + Alt + arrow left, and Shift + Alt + arrow right.
Disable the window manager keyboard shortcuts by editing file
~/.config/openbox/lubuntu-rc.xml near “S-A-Up”, “S-A-Down”,
“S-A-Left”, and “S-A-Right”. For example, change “S-A-Up” to
“S-A-Up99”, “S-A-Down” to “S-A-Down99”, “S-A-Left” to “S-A-Left99”,
and “S-A-Right” to “S-A-Right99”, respectively. And add an XML comment
as to why and document the original values (so they can more easily be
reverted). Edit and update (without a restart required):
vi ~/.config/openbox/lubuntu-rc.xml
openbox --reconfigure
It was tested with Lubuntu 18.04 (32 bit).
In Debian the following works for me: press only the Ctrl key and select by the mouse (not both Ctrl and Shift keys, as described in the manual).
In Ubuntu MATE (Geany 1.25) I can use Shift + Alt and then mark the text using arrow keys.
I think, Ctrl + Shift + mouse(!). It's working correct on Ubuntu with Geany 1.23.1. Please use the mouse, not the arrow keys.
Ctrl + Shift + Mouse on CentOS 7.3.
For me the key shortcuts are different. After installing the Extra Selection Geany plugin, I can use:
Alt + Shift + C (and then use the up, down, etc. arrow keys to move the cursor; edit the text; and then repeat Alt + Shift + C to go back to 'normal' edit mode).
More information is here.
(I use VirtualBox with Xubuntu 16.04.4 LTS (Windows 10 host).)

Is it actually possible to insert the shortcut "C-M-\" in a German keyboard?

Goal: I want to use the function indent-region with the default shortcut C-M-\.
Problem: I use a German keyboard layout. To insert "\" I have to type either C-M-ß or AltGr-ß, because the "ß" is overloaded with "?" and "\" (see: QWERTZ layout in the upper right corner).
Question: Is it possible to to input the shortcut C-M-\ without tweaking emacs or the OS on a German keyboard?
If it is not I would just change the shortcut to something easily accessible. The main reason I want this to work is that it works out of the box on a default emacs installation.
I've experienced this problem and found the following info helpful from the "Alt Gr Key" page on emacswiki.org:-
Emacs keys may seem to be “hidden” (perhaps only) on MS Windows because AltGr + LeftControl + key is just AltGr + key.
Solution 1: Using the Right Control
But you can type those keys even on MS Windows! The trick is that you must type AltGr as the first key, and Ctrl must be the right control key, not the left one.
After experimenting on a German keyboard, I can execute C-M-\ like: AltGr+RCtrl+M+\, where RCtrl is my right-Ctrl key, M is my left/only Alt key and \ is my ß?\ key. (The value of w32-alt-is-meta is t.)
This key-chord is cumbersome so perhaps it's better to define the C-M-ß combination as suggested by #OlegPavliv.
Add the following to your .emacs
(define-key (current-global-map) (kbd "C-M-ß") 'indent-region)
This way it will indent the region on C-M-ß
Press C-M.
Release.
Press AltGr-ß to produce \
Works for me. Where is the problem?

"Right Click" keyboard short cut for Visual Studio?

I'm trying to force myself to use as little mouse as possible and I can't find the answer to this simple short-cut anywhere! Here the the steps:
Open up Visual Studio. Open any C# file (or any code file I believe)
Point your mouse anywhere on the
window/file.
Right Click
Is there a shortcut key for this so I don't have to move my hand to the mouse?
Taken from lytebyte, you've got two options:
Shift + F10
That nutty key on the bottom-right of a modern Windows keyboard, the Menu key
Depends on where/why you're right-clicking.
The context-menu key is on the right of the keyboard nowadays, usually between the Windows key and the Control key on the right of your spacebar. That will open the context menu wherever the current focus is (usually in the text editor).
If you're using the right mouse button just to open the refactoring tools, you can use Ctrl + . (control period) to pop open the "smart tag" on any identifier. That'll get you the "generate method stub" menu item and the like.
To open a new file without keyboard you can use
CTRL + SHIFT + N (Using Resharper)
To show up the right click menu for any part of your code. Point to the part that you want and use
SHIFT + F10
Normally, I like using
CTRL + SHIFT + G (Resharper again)
for getting the Navigation menu (Usage, Base, Implementation, etc)
Even better if you want to go to any Method/class/intenal/or a field, use CTRL + SHIFT + ALT + N (Again using Resharper), this will bring you a list of all that match your criteria to choose from.
Does your keyboard have the extra 'Windows' keys, ie. the Windows logo (Start key) and the one on the right-hand side of the spacebar that looks like a menu? Cause that button on the right-hand side is the 'Context menu key'.
See the key between the right-hand side 'Windows' key and the Ctrl key?
Windows Keyboard layout
If your keyboard is less than 10 years old you should have these keys, unless you have an IBM laptop or a Mac.!
Assuming you just want a key you can press to right click, most\many keyboards have a key between alt and ctrl that right clicks.

Resources