Cycle through all history occurrences by typing first word and pressing up arrow without Oh-My-Zsh - plugins

Is there a way to use OMZ's most loved feature to cycle through all history occurrences by typing first word and pressing up arrow without Oh-My-Zsh itself? I mean there should be some plugin for pure zsh for this, isn't it?
Like on this GIF

The magic for that behavior lives over in https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/key-bindings.zsh
It works just fine on its own outside of omz
Copy, paste, attribute :)

Related

VSCODE + Dart/Flutter: Double Autocomplete in conflict

i use visual studio code to create my flutter app, but since 1 month ago, i detected as if the editor have a double autocomplete.
When i write for example: "Container" i have the autocomplete while i'm writing, but if i press Enter it won't add the brackets at the end (before, it did!)
And, if i write: "child" i have the autocomplete while i'm writing, but if i press Enter, the cursor will be with a selection, and there is no autocomplete until i click in somewhere to remove the auto-selection, or i write the command completely without autocomplete.
It's like if there were a double autocomplete in conflict, that select the words after i press enter.
Autocomplete working:
Strange auto-selection and then no-autocomplete:
Furthermore, if i write "setState" and press Enter to autocomplete the function, i get the whole function selected and tabbed of 4 tabulation on the right. Same for initState.
I tried to disable every extension and restart, but i had same problem.
I'm so slow now to write flutter code, because i have to remember every CamelCase word and property and write them in every single char, or click in somewhere to make autocomplete works.
Fixed!
In setting i had to disable LSP.
"dart.previewLsp": false
I've the same issue, after some research I found this:
https://github.com/Dart-Code/Dart-Code/issues/2823#issuecomment-725630953
I'm not sure this is the right way because I didn't have try yet but the problem on GitHub issues seams the same you describe, apparently this solution works with LSP enabled

Undo editor.action.addSelectionToNextFindMatch?

What's the opposite of editor.action.addSelectionToNextFindMatch in Visual Studio Code? i.e. undo the last selection it added.
In PhpStorm this is Alt+J and Alt+Shift+J is undo.
In Sublime, this is Ctrl+D, but I'm not sure if Sublime has the opposite.
Sometimes I get overzealous with my keybashing and have to go back one.
Seems like cursorUndo (cmd+u) would do the trick, although it's not a dedicated command for this purpose.
https://github.com/Microsoft/vscode/issues/6872
I might just I did open a PR for it.
I know this has already been answered but I wanted to mention that I published an extension to solve this exact issue and add a few other features like being able to tab through your multiple cursors, remove all multi-cursor selections except the very last one, etc.
Check it out here https://marketplace.visualstudio.com/items?itemName=danseethaler.tab-through-selections
Esc once will un-toggle multiple-cursors.
Pressing Esc again toggles the currently highlighted selection.
As others have said, Cmd + U will undo the last highlighted item if you accidentally select one too many.

Notepad++: disable auto-complete in comments

I'm using Notepad++ for C coding.
The auto-complete functionality in NP++ seems really naive. No matter where I am in a file, it always tries to give me a list of auto-complete suggestions (most of which are just random words, rather than function or variable names).
It becomes really annoying when I'm trying to write a long multi-line comment, and I keep having to hit escape at the end of lines because the auto-complete pop-up wants to change what I'm typing.
Is there a way to disable auto-complete inside comments?
Alternatively,
Is there a way to disable keyboard interactions with auto-complete? The time it saves by filling in text for me is negligible compared to the time it saves me from having to go and confirm that I'm spelling function or variable names correctly. So, it would be just about as useful if it always made suggestions, but where the arrow keys and enter interacted with the text, rather than the pop-up.
You can go Settings →Preferences → Auto-Completion and from this point you can set whether you have auto-completion on words, functions or both.
At this point, I don't believe there is a way to disable auto-completion within comments.
A workaround is to turn off auto-completion using Ctrl+Enter for your code, and Ctrl+Space for your comments.

Is there a way to mark specific lines in BBEdit and then iterate through them?

I often find myself jumping between several parts of a lengthy document, and I've found no streamlined way of handling this. I've previously used TextPad for PC, and it had a great feature called Bookmarks:
Press a keystroke, and the current line is marked. The bookmark shows as an arrow in the gutter.
The same key toggles the marker off again.
Another keystroke sends the caret down to the next bookmark.
Yet another keystroke sends the caret up to the previous bookmark.
Is there anything like this in BBEdit? I loved that feature of Textpad, but I haven't found another editor that has something similar. Currently I use the awkward substitute of typing three slashes /// at a place I want to jump back to, then using Ctrl+F to re-find them, but that's a lot of keystrokes to set/remove markers and to iterate through them.
Thanks!
I think what you are after is BBEdit Markers.
This article is a good place to start: macdrifter.com/2012/01/bbedit-markers.html

Vim style Omnicomplete for emacs?

I've found several code completion elisp packages for emacs that do code completion, but most bind to a key such as M-/ to toggle completion. Is there something similar to Vim's omnicomplete where you can set it to automatically pop up a list of autocompletion options where you can either navigate through them, or just keep typing.
See screenshot for example:
I think company mode would best fit your description. Have a look at it.
There are a number, all a little different:
predictivemode
pabbrev
completionui
autocomplete
They all have their drawbacks and advantages.
The emacs wiki has a page for all the completion packages.
Can you? Sure. Reset a timer on post-command-hook. If it goes off (because you are sitting at your screen not typing), pop-up the thing.
It seems easier to tell your computer what to do (by pressing keys) rather than having it wait for your to stop typing for a while, however. Bind completion to something like the "menu key", and you won't even have to chord.