-
Notifications
You must be signed in to change notification settings - Fork 12
Provider
t9md edited this page Mar 1, 2017
·
6 revisions
- Scan current editor( use
editor.scan
under the hood ) - It use first narrow query as search term( first word separated by white-spaces on query text ).
- Rest of include and exclude(
!
starting word) queries are treated as normal filter query. - To make this exceptional query handling obvious by eye, use different syntax grammar highlight for first query(= scan term).
- Search by
ag
( you need to installag
by yourself). - Need to install ag by yourself.
- Similar to
search
but use Atom'satom.workspace.scan
.
- Provide fold-starting rows as item.
- Can change fold level to show up on
narrow-editor
bynarrow-ui:fold:increase-fold-level
narrow-ui:fold:decrease-fold-level
- Show
git-diff
for current active-editor. Info source is coregit-diff
package.
- Show all modified state file across project.
- If you are comfortable with this provider, you don't need
git-diff
at all( like me ).
- Info source is core
bookmarks
package - This is toy, I don't use
bookmarks
feature heavily.
- Provide symbols for current file.
- Useful to quick previewing function definition on same file.
- Provide project-wide symbols information by reading
tags
file.
- Use message provided by linter package.
- This is META provider used to select files for other provider.
- Can start from clicking folder icon at control-bar.
- Available for provider which is not boundToSingleFile( e.g.
search
,atom-scan
).
- Possible value and short descriptions are here.
-
inherit
: pick global setting. -
right
: default, no behavior change -
right:never-use-previous-adjacent-pane
: don't use previous adjacent pane( use only next adjacent ) -
right:always-new-pane
: -
down
: -
down:never-use-previous-adjacent-pane
: -
down:always-new-pane
:
-
- When
true
,foo!
means "not matching foo" as like!foo
means that. - Only
select-files
provider enabled by default. ( To excludemd
file bymd!
).- This is better than
!md
keystroke. - Since user can confirm which files are excluded.
- At the timing when query become
md
and before adding ending!
.
- This is better than
- When you move cursor on
narrow-editor
, item under cursor is automatically opened to preview.
- When you input query and items on
narrow-editor
re-rendered, auto-preview first item.
- When
true
, closenarrow-editor
on confirmed byenter
. - Set to
false
if you want keepnarrow-editor
open after confirmation.- Or you can use
narrow-ui:confirm-keep-open
as alternative.
- Or you can use
Reveal closest item at startup.
- Value can be
-
never
: Never reveal -
always
: Always try to reveal -
on-input
: Reveal when initial query was provided via-by-current-word
commands.
-
- Each provider have different default value( opinionated ). So no global default.
- Basic strategy to choose default value is below.
- boundToSingleFile provider(
scan
,fold
,symbols
) haveon-input
default - Other have
always
default(search
,atom-scan
,git-diff-all
).
- boundToSingleFile provider(
- Basic strategy to choose default value is below.