Assigning special characters to keyboards permanetly [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Is there a way in Windows 10 and/or Ubuntu to set new special characters in my keyboard?
I'm using a notebook, so I don't have Num Pad (or maybe I do but don't know yet). I have some characters that are fairly important, and I don't know how to type ALT+xxxx without the regular Num Pad. Googling for these characters every time is very cumbersome.
For instance, the left arrow character ←, which is assigned as Alt+2190.
Is there a way to type it directly in the keyboard without the regular Num Pad, or maybe a code or software I could use to set it.
When I say Windows 10, think Notepad, but it could also be on OneNote or a browser, if there are an easier way on those.
Thanks!

Ubuntu has keyboard shortcuts directly in settings. For Windows you can look into the third party app AutoHotKeys for keyboard shortcuts.
Also, try this answer for your numpad issue.

I found my own solution: how should I proceed with this question on Stack Overflow?
The answer was it the Wikipedia entry Unicode Input:
Some Windows' software accept the Alt + x solution:
Open the Wordpad¹ software (it should come by default on Windows 10).
Type the plain Unicode hex code in your text. Just the hex code, like 2190 for ← or f1 for ñ, no need for the U+ or anything before it.
Press the left ALT key plus the x character - Alt + x.
The text should automatically change the hex code to the sign you want.
Copy and paste the symbol into whatever you want it.
Not the perfect solution, but it is still better
¹ This may only work in specific software programs. It worked on Word, Wordpad, OneNote and Outlook, but not the simpler Notepad, neither Office online.

Related

Why doesn't TAB indent C++ Code in Visual Studio 2010? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I believe this is not standard behavior, but when I press the TAB key immediately before or after a variable or constant, Visual Studio will not indent the code using tab spacing. Instead, it highlights the value with a pink underscore and advances to the next instance of that value. If I continue to press TAB, I will rotate through all the instances of that value/variable within the current scope.
I have not been able to find a setting that turns this auto-search style behavior off and return back to simple indentation. Any help would be GREATLY appreciated. Frankly, I'm starting to lose my mind....
Rich
Standard behavior is as you desire; i.e. TAB indents (and shift-TAB un-indents). You may have an extension installed that's messing it up. Or perhaps you inadvertently remapped the key binding. Or perhaps when you installed you selected an editing environment that uses a different key binding map (I always choose C++).

Mac OS X Terminal [Use option as meta key] overrides backslash in spanish keyboard [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I check "Use option as meta key" checkbox in Mac OS X Terminal, because I like to use emacs way of moving between words: M-f & M-b.
But if I do that, I can't get the backslash (Option + º; i.e.: Option + key-at-the-left-of-1-in-spanish-keyboard).
If I uncheck it, then I can input the backslash, but I don't have M-f & M-b.
Is there a way to get both?
The escape key works as a meta key by default; no need to use option as the meta key (other than its more convenient location).
Not a great solution, but XTerm (running in X11 on OS X) can use CMD as the Meta key.
You might also have some good results from KeyRemap4MacBook.
Just as a side benefit, XTerm should also give you proper terminal mouse interaction, e.g. in Emacs or ncurses based apps.
You will most likely run into a lot more problems with that setup, because Mac OS uses "Alt" as a modifier in a lot of shortcuts. But anyway, including the following line in your ~/.bash_profile will send a backslash if you enter the unicode character "∫" (which is E288AB):
bind '"\033\xE2\x88\xAB"':'"\\"'
You could customize the keyboard map to use a different key for entering backslash. Look in
Preferences > Settings > [profile] > Keyboard
For example, you could map Control-F1 to backslash.
Note that the default keyboard map maps Option-Left/Right Arrow to M-b/f, so you could use those instead of using Option for Meta (you’d have to get used to using the arrow keys instead of b and f, but I’ve never been able to get used to using b and f and prefer the arrow keys).
I had the same issue. This is how I solved it.
I replaced the built in terminal with iTerm2, which also gave me a few other nice features. To get a sane Meta-key i did the following:
For the profile I wanted to use I checked "Alt sends +Esc", which gave me back a sane Meta-key that works in Emacs, Bash and others. However, I did lose the backslash key. So, to get it back and added a binding in the profile that does "Send text: \" and then I bound it to my backspace key combo (Shift-Alt-7, I'm Norwegian).
Now I have M-f, M-b in Emacs, M-. in Bash and I'm able to send backslashes. I also have a "Visor shell session" that I can have slide down by pressing another key combination.
This is years late, but for people coming across this page whilst searching for a solution, as I did, I have decided to build one myself.
It is a simple status bar app that runs in the background and rewrites all left-Alt + $KEY key events to two key events in rapid succession, Esc, then $KEY; however, it only does this if Terminal.app is the focused application.
You can find it here at https://github.com/habibalamin/Metalt.

TextMate click to end of line [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I use a variety of editors and for the life of me I can't remember if this is a default feature of TextMate or if it's a setting I've turned on somewhere along the line but each time I click on a line (in the empty space part after content) the cursor moves to the exact position I've clicked rather than jumping to the end of the line like every other editor seems to do. I've also noticed that Showing invisible characters (such as CR) displays nothing.
Can anyone tell me how to reset this behaviour? It seems to be the same for all types of syntax from plain text to markdown to languages. I just want to be able to see the invisibles and to click and have the cursor move to the end of that line and not to the actual position I've clicked with the mouse.
Aha, got it! It seemed that I had turned on Freehand Editing Mode. Unchecking this option in Edit > Mode > Freehand Editing solved the problem and helped to convince me that I wasn't going mad. :S
I had the same problem. I must have accidentally hit the keyboard shortcut for Freehand mode and it was driving me a little crazy as well. In case anyone else was wondering what that shortcut is, it's command-option-E.

How do I get the behaviour of the 'Insert' key on VIM using a Macbook Pro without an insert key? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Because the apple store couldn't help me, and indeed had never seen VIM before, despite the fact it comes installed as standard on OSX ;-).
With iTerm or iTerm2 you can map an unused key to insert. For example, I've mapped F19 to "send escape sequence" [2~ (that's the xterm escape sequence for the insert key).
In iTerm2, go to preferences, "Bookmarks", select the "Keyboard" tab, click the "+", press the key you want to map, select action "send escape sequence" and then enter [2~.
Surely you can just do a simple:
inoremap <C-l> <Insert>
I can't say I've ever had to use replace mode enough that <Esc>R wasn't quick enough for me.
You can use i instead of insert.
Taken from here:
Toggling insert mode
Press Ctrl-Space to start and to stop insert mode (the same suggestion using Shift-Space is above):
nnoremap i imap
Or you may prefer to map Ctrl-Space to a rather than i so that repeatedly pressing Ctrl-Space does not move the cursor back (remember that pressing I allows you to insert a character at the beginning of the line):
nnoremap a imap
You would put this in your .vimrc so it happens on start-up.
Either use Mac's onscreen keyboard or use a hotkey program to rebind one of your existing keys to Insert. One Superuser thread provides several Autohotkey equivalents for Mac such as Quicksilver.

Is it possible to select a specific tab in OSX Terminal.app using keyboard shortcuts? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I know I can cycle through my tabs using cmd+{ or cmd+}, but is it possible to select a specific tab (i.e. cmd+3 for the third tab in iTerm) in Leopards' Terminal.app?
This is an option. Tab Switching in Terminal
Yes it is, you use Command-1, Command-2 etc.
Have a look under the Window menu, and you'll see the windows listed with their shortcut equivalent. (The 'clover-leaf' is the symbol for the Command key - also known as the Apple key.)
My apologies - missed the fact you were referring to Tabs first time around. I don't believe there is any other keyboard shortcut to switch between Tabs beyond Cmd-{ and }. Perhaps if that's important, don't group them in the first place? Leave them as separate windows?
I would highly suggest using GNU Screen if you really need tabs that much. I have a particular .screenrc file that makes life easier, just put the following in your home directory in a file called .screenrc:
defscrollback 1024
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
Also, when starting screen, I run screen -c ~/.screenrc.programming which looks like this:
source $HOME/.screenrc
screen -t World
screen -t Server
screen -t Console
screen -t Command
screen -t Editor
screen -t MySQL
This will open a bunch of 'tabs' that you can switch between using Ctrl-A,n and Ctrl-A,p or Ctrl-A followed by a number to switch directly to one.

Resources