narrow something.
similar to unite.vim, emacs-helm
- Search across project via
ag
. - autoPreview items under cursor.
- vim-mode-plus integration.
alpha
narrow:lines
narrow:fold
narrow:search
(require ag
)
narrow:lines
narrow:lines-by-current-word
narrow:fold
narrow:fold-by-current-word
narrow:search
: ag search. need install by your self.narrow:search-by-current-word
narrow:search-current-project
narrow:search-current-project-by-current-word
narrow:focus
core:confirm
narrow-ui:preview-item
narrow-ui:toggle-auto-preview
No keyamp to invoke global command(e.g narrow:lines
).
narrow-ui have limited default keymap, see default keymap.
- Mine(vim-mode-plus user) for global command.
'atom-text-editor.vim-mode-plus.normal-mode':
'space n l': 'narrow:lines-by-current-word'
'space n f': 'narrow:fold'
'space n s': 'narrow:search-current-project-by-current-word'
'space n S': 'narrow:search'
'f9': 'narrow:focus'
If you are vim-mode-plus user, following commands are provided.
Both are directly invoke lines
ore search
form vim-mode-plus:search
UI.
vim-mode-plus-user:narrow-search-current-project
vim-mode-plus-user:narrow-search-projects
Currently following keymap are defined(might be removed in future).
'atom-text-editor.vim-mode-plus-search':
'ctrl-o': 'vim-mode-plus-user:narrow-lines-from-search'
'ctrl-cmd-o': 'vim-mode-plus-user:narrow-search-from-search'
So you can search /
then type abc
then ctrl-o
, open narrow:lines
with initial narrowing keyword abc
.
ctrl-cmd-o
is narrow:search
version of this.
default: true
.
If you want to start insert-mode
for narrow-ui, refer following configuration.
config.cson
"*":
"autocomplete-plus":
suppressActivationForEditorClasses: [
# snip
"narrow"
]
"vim-mode-plus":
highlightSearchExcludeScopes: [
"narrow"
]