Is there a keyboard shortcut to repeat search backwards ('Find Previous') in Python IDLE? - keyboard-shortcuts

Using IDLE (Python 3.x) in Windows, as is the case with many editors, F3 works as a keyboard shortcut for the 'Find Again' command in Python IDLE (as well as the menu-indicated <Ctrl>-G, plus various combinations of <Shift>, <Ctrl> and <Alt> with F3 or G). These all search forwards from the current location in the file.
From habit I often press <Shift>-F3 to search backwards, especially after working in an editor that offers this feature. I have not found anything in the IDLE documentation about a 'Find Previous' feature other than the option to select the search direction in the Search Dialog.
Is there a keyboard shortcut for 'Find Previous' in Python IDLE?

No. Find-again uses the most resent settings in the search box.

Related

Change behavior of Ctrl-C,Ctrl-F,Ctrl-V in intelliJ IDEA

Most programs copy selected text (say selectedText1), open textbox and paste buffer in search when Ctrl-C, Ctrl-F, Ctrl-V hotkeys are pressed. IntelliJ decided change this behavior to "more efficient". Ctrl-C, Ctrl-F copy-paste highlighted text in a search box.
I end up pressing Ctrl-C, Ctrl-F, Ctrl-V -> selectedText1selectedText1 0 results -> Backspace several times -> selectedText -> too many results, because selectedTextProcessor and selectedText2 are included.
This breaks workflow.
AutoHotKey script to replace ^F with ^F, ^A, Backspace is my current workaround.
Is there a way to tell intelliJ that I want conventional ^c,^f,^v behavior? For instance enable "if ^F,^V are pressed, first ^V is omitted.
No there's no way to do that. The whole point is this way is more efficient.
Your claim about "most programs" and "conventional behaviour" is spurious. Most that I use will default to searching the text on the clipboard, if there isn't already text selected in the current window.

How to get emacs-like keybindings in Pharo?

I've downloaded Pharo today, and I noticed most keybindings don't work within the language environment.
Is there any possible way to get standard Mac / Linux keybindings to work?
I could find no answer searching on Google.
I'd appreciate if someone could tell me how to configure the standard
Ctrl+a, BeginningOfLine
Ctrl+e, EndOfLine
Ctrl+d, forwardDelete
Ctrl+f, forwardChar
Ctrl+b, backwardChar
Ctrl+n, nextLine
Ctrl+p, previousLine
to work on Pharo 5.0.
If by "standard" you mean "emacs-like keybindings" then no, Pharo does not support such scheme nor is there an easy way to change them.
You could change some of the hard-coded shortcuts in places like the PharoShortcuts and RubSmalltalkEditor class>>buildShortcutsOn: (which powers the Playground).
However there are very likely more places (e.g. Nautilus).
Several of the shortcuts you mentioned are also core shortcuts for Pharo (in the sense that you can execute them pretty much anywhere you can type text), namely:
ctrl+p for printing the selection
ctrl+d for doing (executing) the selection
ctrl+n browsing senders of the highlighted selector
Furthermore ctrl+a is "select all" as in pretty much every text editor, and ctrl+f find.
However, there is an ongoing effort to cleanup the shortcuts and unify them into single place (PharoShortcuts), so in time such change should easily be possible.
To get the basic emacs-style cursor navigation on my Mac, I punted with BetterTouchTool to send Pharo keys, like this:
ctrl+a --> fn + left-arrow Beginning of line
ctrl+e --> fn + right-arrow End of line
ctrl+p --> up-arrow Previous line
ctrl+n --> down-arrow Next line
ctrl+f --> right-arrow Forward character
ctrl+b --> left arrow Backward character
ctrl+v --> fn + down-arrow Next page (behavior is inconsistent)
option+v --> fn + up-arrow Previous page (also inconsistent)
It's not ideal, but a big step in the right direction. BetterTouchTool is awesomeness that any Mac power user should seriously consider anyway.
For the benefit of non-Mac users, there is no collision with Pharo core shortcut keys in this scheme, because on the Mac the Command key is used in place of Ctrl for Pharo core shortcuts.

Use VI keys everywhere instead of cursor keys

I like VIM a lot because it kind of doubles the power of my keyboard in a way. It's either in insert or motion or whatever they call it mode.
Navigating through source code, typing code, while being able to keep my hands in the touch type position is great.
But when a dialog box is opened (eg. the one using ctrl+F12), if I have to select something other than the first one in the list, I am forced to have to move my right hand to the cursor keys.
Is there a way so that I can use J and K or else something with ctrl or alt or something, so that I can select an item while keeping my hands in the touch typing position?
You can redefine shortcuts for the Up, Down, Left, Right actions in File | Settings | Keymap (the regular keymap that has nothing to do with IdeaVim). IdeaVim provides Vim emulation only for code editors like file editors, interactive language consoles, etc.
Edit: I guess you can't use j and k since characters typed in the structure window are reserved for searching. But you can use Ctrl+N and Ctrl+P which is the same as the navigation shortcuts for pop-up windows in Vim.
Edit 2: You can't use Ctrl+N and Ctrl+P as well due to this bug in IntelliJ.

IntelliJ IDE (IDEA, PhpStorm, WebStorm): Shortcut for focusing Filter field in e.g. Change Log tool window

Is there a shortcut for focusing the Filter box in tool windows, specifically the Change Log?
See the attached screenshot to know which field I'm talking about. I searched the net and key map, but found nothing like that.
I have confirmed at Jetbrains that unfortunately it's not possible yet: http://devnet.jetbrains.com/message/5520523#5520523
Just start typing with the focus inside the tool window. IDEA invokes the search automatically. To select the item, press Enter. To cancel, press Esc.
This feature is called Tool Window Speed Search.

Disable auto-search in intellij's console when typing the search keyword

When searching for a String in Intellij's console, you have to type the word you are looking for in a special input. But as soon as you begin typing, intellij is beginning to parse the whole console log which can be huge (it can freeze the whole IDE), and it starts to look for the first letter typed.
So if you want to search for "WARN", it begins to look for "W" for no reason. Is there a way to have a manual "start search" in intellij console and to disable the "auto-search" on typing in search box? That way I would just type the whole word and then search for it in the log, as the word is more restrictive the search would not freeze intellij.
I found how to bypass auto-search, use a text editor (notepad++, scite...) then type in it what you want to look for. Copy it to the clipboard. Paste then in the search box instead of all characters in it (use ctrl+a to select all, then paste).
Intellij will take the paste event as an unique event (not a succession of many keyboard events).