what does "s-f" means in spacemacs? - spacemacs

Some of the emacs keys are rebound in spacemacs. I saw this in emacs tutorial
** C-s has been rebound, but you can use s-f instead [More] **
what does s-f here means? It can't be character s followed by character f.

See EmacsKeyNotation:
S-
means the Shift key (e.g. S-TAB means Shift Tab)

Related

IntelliJ IDEA removing the character after on reformatting code

IntelliJ removes the character after while reformatting. For example if I misspelled "Father" as "Fathr" and want to add an "e" afterwards, the editor removes the "r" on adding "e". I'm new to Kotlin and would really appreciate some help.
I am afraid this is just a simple Insert key that switches the input mode between insert (a thin cursor) and replace (a fat, character sized cursor).

vi keybindings move to beginning of line with <ctrl> \ what about end of line

I use the vi key bindings from set -o vi . I emphasize this because most vi conversations invariably lead to regular vi. and this is not, these are the vi key bindings. anyhow.
I hit control and '[' to get into command mode from the command line.
Then I hit shift and '\' (backslash) to go to the beginning of the line. I like it better than using 'Shift ^'. I don't see it documented anywhere and I can't use it in regular vi.
I still use shift $ to go to the end of the line. Does anyone know a different way to go to the end of the line in the vi set -o keybindings besides "shift $". If there is an easter egg command of shift and '\' to get to the beginning of a line, there might be other hidden commands as well - I am looking for one that will get me to the end of the line. One besides 'shift $'
The | command is used in vim to go to a particular column. You can prefix it with a count (e.g. 13| to go to column 13), which is 1 if omitted. Thus the naked | command goes to the first column, the same as 0 that casper suggests. This differs if you have leading whitespace in your command, where ^ will go to the first non-whitespace character, while 0 or | will go to the first character, even if it is whitespace.
Out of the box, set -o vi the only synonym for $ that I know of is <end> (which is unfortunately, waaaaay over there on the keyboard).

what is that up side arrow before the number 10 in the constant method instance below?

To make it clear and concise:
1. What is it?
2. Why is it there?
3. How to type it with a normal Keyboard?
4. Thanks!
It's ^ symbol. :) A return statement in smalltalk.
I don't know if it's default listing's feature in latex, but upward arrow is being used of ^.
On normal keyboard you can type this symbol by pressing Shift + 6
Just for the record, in old versions of Pharo, the ^ character was printed as an "up arrow".
So, as Yuriy says type ^ to get the "up arrow" return.
That behavior does not exist any more in latest versions of Pharo: ^ is printed as ^.

Send a keystroke to OS X programmatically

How would you simulate the keystroke รถ on Mac OS X programmatically?
This isn't just a randomly chosen character, I know you can simulate all ASCII characters as well as some special ones like Esc, Backspace, etc using either an embedded Applescript or CGEventCreateKeyboardEvent. But what about all those keys for which a CGKeyCode isn't defined? There must be a way!
You need to use CGEventSetFlags to set the option modifier of a 'u' key stroke followed by an up key event and then followed by an 'o' key stroke.
https://developer.apple.com/library/mac/#documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html
If you need more info ask and I will create some code example

Where can I find numeric keycodes to use with keyPress command in Selenium?

At http://release.seleniumhq.org/selenium-core/1.0.1/reference.html there's description of keySequence parameter to keyPress command:
Either be a string("\" followed by the numeric keycode of the key to
be pressed, normally the ASCII value of that key), or a single
character. For example: "w", "\119".
Nevertheless there's no information on where to look for numeric keycodes to use...
http://aspdotnetfaq.com/Faq/What-is-the-list-of-KeyCodes-for-JavaScript-KeyDown-KeyPress-and-KeyUp-events.aspx
This works for me
What you need are the ascii codes of the number characters, as an example, see the following page:
http://www.asciitable.com/
The numbers go from \48 (0) to \57 (9).
The modules have objects/variables for the common keys, e.g.:
Ruby: http://www.google.com/codesearch#2tHw6m3DZzo/trunk/rb/lib/selenium/webdriver/common/keys.rb
Python: http://www.google.com/codesearch#2tHw6m3DZzo/trunk/py/selenium/webdriver/common/keys.py
Java: http://www.google.com/codesearch#2tHw6m3DZzo/trunk/java/client/src/org/openqa/selenium/Keys.java
I believe these mappings include most of the special keys you're looking for?