FindResultsBufferUtils
A Sublime Text package which adds keys allowing users to switch focus to and to close the Find Results buffer, and to jump to the first and last of the current results.
Details
Installs
- Total 1K
- Win 648
- Mac 337
- Linux 196
Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Find Results Buffer Utils (Sublime Text Package)
Overview
Find Results Buffer Utils is a Sublime Text package which adds keys allowing users to switch focus to and to close the Find Results buffer, and to jump to the first and last of the current results. It should be noted that closing the buffer is performed without the active buffer losing focus.
While these are simple tasks, which do not take much time, I have found the plugin so useful that it has become an integral part of how I use Sublime's powerful Find in Files (Use Buffer) feature.
Requirements
Sublime Text version 2 or 3.
Installing
Use Package Control:
- Open the command palette and select:
Package Control: Install Package
- Wait for the package list to be updated and then select:
FindResultsBufferUtils
Users can, if they prefer, download the zip file and then install it manually; FindResultsBufferUtils.sublime-package
should be used as the installed package file name or, if unzipping for folder installation, then FindResultsBufferUtils
should be used as the folder name.
Key Bindings
The default key bindings are only triggered when a Find Results buffer is open (see: Context Handling below).
Since F4
is used for the Find Results buffer's show Next/Previous result keys, the same keys, prefixed by ctrl+k
, are used to show the First/Last result. Likewise, due to the F
key's use in initiating Find in Files, the same key is used to switch focus to, and to close, the Find Results buffer.
Linux / Windows:
- Focus the Find Results buffer:
ctrl+k, ctrl+f
- Close the Find Results buffer:
ctrl+k, ctrl+shift+f
- Show the first result:
ctrl+k, f4
- Show the last result:
ctrl+k, shift+f4
OSX:
- Focus the Find Results buffer:
super+k, super+f
- Close the Find Results buffer:
super+k, super+shift+f
- Show the first result:
super+k, f4
- Show the last result:
super+k, shift+f4
Context Handling:
The context key is_find_results_buffer_open
simply checks whether there is a Find Results buffer open in the active window or not. The operator
can be set to either equal
or not_equal
and the operand
to true/false
.
The default key bindings are only triggered when a Find Results buffer is open. If users prefer to make them active all the time, ignoring the Find Results buffer's status, then simply remove the "context": [{"key": "is_find_results_buffer_open"}]
line from each of the key bindings. See the always useful PackageResourceViewer plugin.
License
This package is licensed under The MIT License (MIT).