Various tools to work with Ham. You can find it in the VSCode marketplace.
ham.swiper-word-at-cursor: search the current word at cursor.
ham.swiper: search the last value tried.
A copy of emacs swiper, the thing I missed the most in vscode. Supports regex,
negate, match highting, case sensitive search.
"swiper !not Test" matches a line with
SWiPeR Test without mentions
Swiper: Swiper Search/Resume and start typing.
- Search either literal string e.g.
- Search strings separated by space are AND-ed together. e.g. "a b" matched lines with "a" and "b" on the same line.
- Search string prefixed with
! negates the search, "a !b" matches lines with "a" but not "b". Use regex
/\!/ if you want to match
"!" literal string.
Search string starts with
! does not contribute to the border highlights.
- Default case insensitive search. Upcased search term matches case sensitively.
Some quick Example:
# search wildcard
a b matches lines with a and b
a !b # matches lines with a but not b
/lint|display/ # lint OR display
lint|display # searches the literal string "lint|display"
# line starts with test
a B # matches "aB", "AB"
/\(.*\)/ # matches paren
!/\(.*\)/ # do not match paren
ham.swiper.selectMatch: (default true) controls if the picked match is selected. Set to false, cursor jumps to the end of the match word.
- Open the extension's directory in VS Code
- Press F5 or go to Run > Start Debugging in VS Code.
- This will open a new VS Code window titled [Extension Development Host] where the extension is loaded.
Packaging and Publishing (cf https://code.visualstudio.com/api/working-with-extensions/publishing-extension#vsce):
npm install -g @vscode/vsce
vsce package && vsce publish
You'll need a Personal Acces Token to publish:
Started as a fork of the Swiper extension.