All Projects β†’ obcat β†’ vim-hitspop

obcat / vim-hitspop

Licence: MIT license
πŸ’¬ Popup the number of search results

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vim-hitspop

CoinHive
A nice friendly simple and easly customizable GUI for coinhives javascript miner to embed onto websites so users of your site can interact with features of the miner on every single page this javascript miner is to help those who have problems with advertisements/advertising/ads popups banners mobile redirects malvertising/malware etc and provid…
Stars: ✭ 58 (+52.63%)
Mutual labels:  popup
MaterialDesign-Toast
Custom android Toast with Material Design
Stars: ✭ 70 (+84.21%)
Mutual labels:  popup
SimpleToast
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or MacOS applications in SwiftUI. Because of the flexibility to show any content it is also possible to use the library for showing simple modals.
Stars: ✭ 131 (+244.74%)
Mutual labels:  popup
Ambar-Xamarin
A macOS Menu Bar app built with Xamarin and C#
Stars: ✭ 63 (+65.79%)
Mutual labels:  popup
react-redux-modal-flex
[DEPRECATED] Make easy a modal/popup with Redux
Stars: ✭ 14 (-63.16%)
Mutual labels:  popup
Bonsai
🌲 Bonsai makes your view controller custom size.
Stars: ✭ 63 (+65.79%)
Mutual labels:  popup
nativescript-menu
A plugin that adds a pop-up menu to NativeScript
Stars: ✭ 17 (-55.26%)
Mutual labels:  popup
customer-ajax-login
Free magento 2 extension for Popup and AJAX based Login and Sign Up | Manish Joy
Stars: ✭ 14 (-63.16%)
Mutual labels:  popup
Customized-Popup
Customized popup provides you independency related to how you want to show a popup according to your UX.
Stars: ✭ 13 (-65.79%)
Mutual labels:  popup
mac-ibm-notifications
macOS agent used to display custom notifications and alerts to the end user.
Stars: ✭ 206 (+442.11%)
Mutual labels:  popup
rn-circle-quick-actions
React Native library to display a modal popup quick actions menu
Stars: ✭ 41 (+7.89%)
Mutual labels:  popup
fuckfuckadblock
Filters for blocking pop-ups and anti-adblock bypass.
Stars: ✭ 983 (+2486.84%)
Mutual labels:  popup
ArminC-uBlock-Settings
βš™οΈ ArminC's settings for uBlockβ‚€ - remove most of the ads, pop-ups and trackers.
Stars: ✭ 24 (-36.84%)
Mutual labels:  popup
eins-modal
Simple to use modal / alert / dialog / popup. Created with pure JS. No javascript knowledge required! Works on every browser and device! IE9
Stars: ✭ 30 (-21.05%)
Mutual labels:  popup
react-native-popup
React Native Animated Popup Modal
Stars: ✭ 19 (-50%)
Mutual labels:  popup
Xamarin-Forms-Popup-Demo
Sample Xamarin Forms app for using Popups
Stars: ✭ 20 (-47.37%)
Mutual labels:  popup
corner-popup
jQuery pop-up script displaying various types of content in corner of browser
Stars: ✭ 23 (-39.47%)
Mutual labels:  popup
Menu
The most customizable menu for macOS apps.
Stars: ✭ 84 (+121.05%)
Mutual labels:  popup
CountdownView
Simple countdown view with custom animations
Stars: ✭ 70 (+84.21%)
Mutual labels:  popup
ng2-dialog-window
Modal/dialog windows and popups module for Angular applications.
Stars: ✭ 17 (-55.26%)
Mutual labels:  popup

vim-hitspop

Popup the number of search results.

hitspop eyecatch

Installation

Requires Vim 8.2.0896 or later. Neovim is not supported.

If you use vim-plug, then add the following line to your vimrc:

Plug 'obcat/vim-hitspop'

You can use any other plugin manager.

Usage

The hlsearch option must be turned on for this plugin to work:

set hlsearch

This is all you need to set up. If you run a search command like /foo, a popup will appear and show you the number of search results like foo 3 of 7.

Tips

When you stop highlighting, the popup will be closed automatically.

Highlighting can be stopped with the nohlsearch command. To run this command quickly, you may want to set up the following map:

nnoremap <silent> <ESC><ESC> :<C-u>nohlsearch<CR>

You can also use the nohlsearch feature of is.vim plugin to stop highlighting automatically. Please see the link for details.

To be precise, popup will be closed when one of the following occurs after stopping highlighting:

  • The cursor was moved.
  • The time specified with updatetime option has elapsed.

The default value of updatetime is 4000, i.e. 4 seconds. If you want to close the popup as soon as possible after stopping highlighting, reduce the value of this option. I suggest around 100ms:

set updatetime=100

Note that updatetime also controls the delay before Vim writes its swap file (see :h updatetime).

Customization

You can customize some features.

Position

By default, popup is displayed at top right corner of current window. If you want to display the popup, for example, at bottom left corner of current window, use this:

let g:hitspop_line   = 'winbot'
let g:hitspop_column = 'winright'

popup at botright

You can also specify other positions. Please see help file for more information.

Highlight

The popup color can be changed setting the following highlight groups:

  • hitspopNormal (default: links to Pmenu)
  • hitspopErrorMsg (default: links to Pmenu)

Example:

errormsg highlighting

highlight link hitspopErrorMsg ErrorMsg

πŸ“ I use iceberg.vim for color scheme.

License

MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].