좁은 것.
Unite.vim, Emacs-Helm에서 영감을 얻은 코드 탐색 도구.
Wiki에 대한 자세한 내용
search 파일 별)은 쿼리별로 더 좁히기 위해 항목을 필터링 할 수 있습니다.ag search result 편집 한 다음 실제 파일에 변경 사항을 적용하십시오).narrow-editor 또는 narrow-ui : 쿼리 및 렌더링 항목으로 항목을 필터링합니다.narrow-provider : 좁은 품목을 제공합니다. 여기에서 모든 번들 제공 업체의 GIF를 확인할 수 있습니다.
나는 scan , search , git-diff-all , symbols 일일 기준으로 사용합니다. 다른 공급자는 많이 사용하지 않습니다.
scan : 현재 편집기를 스캔합니다.search : ag 의 검색 (직접 ag 설치해야 함).atom-scan : search 과 유사하지만 Atom의 atom.workspace.scan 사용합니다.fold : 접기 시작 행을 항목으로 제공하십시오.git-diff-all : 프로젝트 전체에 수정 된 모든 상태 파일을 보여줍니다.symbols : 현재 파일에 기호를 제공합니다.project-symbols : tags 파일을 읽어 프로젝트 전체 기호 정보를 제공합니다.이 빠른 투어를 따르려면 사용자 정의 키 맵이 필요하지 않습니다.
narrow:scanNarrow Scan 호출하십시오.narrow-editor 열기, 초기 항목은 편집기의 각 라인입니다. 입력하면 항목을 좁힐 수 있습니다.apple 쿼리로 입력 할 때. 모든 apple 매칭 항목이 나열되어 있습니다.up , down (또는 읽기 전용 모드에서 j , k ) 이동할 수 있습니다.enter . 확인되면 narrow-editor 가 닫혔습니다.읽기 전용 모드는 기본적으로 활성화됩니다.
narrow-editor 외부에서 탐색하십시오.Narrow Scan 호출하십시오.narrow-editor 열렸습니다. 입력하면 항목을 좁힐 수 있습니다.narrow-editor 보십시오.ctrl-cmd-p ctrl-cmd-n next-item 으로 이동하여 previous-item 으로 이동합니다.tab 및 shift-tab 사용할 수 있습니다.ctrl-g 에 의해 narrow-editor 닫을 수 있습니다 ( narrow-editor 에 초점을 둘 필요가 없습니다).narrow-editor 에 집중해야합니다.ctrl-cmd-f ( narrow:focus )를 사용하여 narrow-editor 에 초점을 맞 춥니 다.ctrl-cmd-i ( narrow:focus-prompt )를 사용하여 좁은 편집자의 쿼리 프롬프트 행을 직접 집중하십시오.search , fold 등)에 사용할 수 있습니다. Direct-Edit은 " narrow-editor 에서 편집 한 다음 Real File에 저장"기능입니다.
다음 제공자가 사용할 수 있습니다.
scansearchatom-scanhello 에 대한 커서 배치Narrow Search By Current Word 호출하십시오.hello Matching 항목은 좁은 편집자에 표시됩니다.hello 에 커서를 놓으십시오. 그런 다음 ctrl-cmd-g ( find-and-replace:select-all ), world 입력하십시오.Narrow Ui: Update Real File .Narrow Ui: Update Real File 로 변경 사항을 다시 적용 할 수 있습니다.Search.startByDoubleClick 설정에서 true 로 설정하십시오.narrow:focus : ( ctrl-cmd-f ) narrow-editor 에 중점을두고, narrow-editor 에서 실행되면 원래 편집기에 다시 초점을 맞 춥니 다.narrow:focus-prompt : ( ctrl-cmd-i ) narrow-editor narrow-editor 쿼리 입력 프롬프트에 초점을 맞 춥니 다.narrow:refresh : narrow-editor 에서 품목을 수동으로 새로 고치십시오.narrow:close : ( ctrl-g ) 닫기 현재 한 번에 하나씩 narrow-editor 열렸습니다.narrow:next-item : ( ctrl-cmd-n ) 커서를 다음 항목의 위치로 옮깁니다.narrow:previous-item : ( ctrl-cmd-p ) Cursor를 이전 항목의 위치로 이동합니다.narrow:reopen : (기본 keymap 없음) 최근 10 번의 폐쇄로 좁은 편집기를 다시 열었습니다.narrow:query-current-word : ( ctrl-cmd-e ) 활성 narrow-editor 의 쿼리를 커서 단어로 바꾸십시오.narrow:previous-query-history : ( ctrl-cmd-[ ) 활성 narrow-editor 의 쿼리를 이전 기록 항목으로 바꾸십시오.narrow:next-query-history : ( ctrl-cmd-] ) Active narrow-editor 의 쿼리를 다음 역사 항목으로 바꾸십시오. 키 맵이 제공되지 않습니다
narrow:scannarrow:scan-by-current-wordnarrow:foldnarrow:fold-by-current-wordnarrow:search : AG 검색. 자신이 설치해야합니다.narrow:search-by-current-wordnarrow:search-current-projectnarrow:search-current-project-by-current-wordnarrow:atom-scannarrow:atom-scan-by-current-wordnarrow:symbolsnarrow:symbols-by-current-wordnarrow:project-symbols :narrow:project-symbols-by-current-word :narrow:git-diff-all keymap이 뒤 따르는 !vmp
vim-mode-plus 와 함께이 키 맵을 사용하려면 직접 설정하십시오.
Wiki를 참조하십시오
core:confirm : ( enter ) narrow-editor 닫습니다narrow-ui:confirm-keep-open : narrow-editor 열어 두십시오narrow-ui:open-here : UI 창의 같은 창에서 개방형 품목.narrow-ui:preview-item : 미리보기 현재 선택된 항목 수동으로 (대부분의 경우 필요하지 않음).narrow-ui:preview-next-item : ( tab ) narrow-editor 의 쿼리 프롬프트에서 커서를 움직이지 않고 다음 항목을 미리 봅니다.narrow-ui:preview-previous-item : ( shift-tab ) narrow-editor 의 쿼리 프롬프트에서 커서를 움직이지 않고 다음 항목을 미리 봅니다.narrow-ui:toggle-auto-preview : (비 VIM 모드 플러스 사용자를위한 ctrl-r )이 narrow-editor 의 자동 예약을 비활성화/활성화합니다.narrow-ui:move-to-prompt : ctrl-cmd-inarrow-ui:stop-insert : escapenarrow-ui:update-real-file : narrow-editor 의 변경 사항을 실제 파일로 적용하십시오. ( narrow-editor 로 편집 한 다음 실제 파일로 저장하십시오.)narrow-ui:protect : 기본적으로 Keymap 없음, 좁은 편집자가 narrow:close 편집자가 파괴되지 않도록 보호하십시오 ( ctrl-g ).narrow-ui:exclude-file : backspace , 현재 선택된 품목의 필라 패스와 일치하는 항목 제외.narrow-ui:clear-excluded-files : ctrl-backspace , CLEAR 제외 파일 목록.narrow-ui:select-files : cmd-backspace 는 narrow-editor 에 나타날 FilePath의 항목을 대화식으로 선택합니다.narrow-ui:toggle-search-whole-word : alt-cmd-wnarrow-ui:toggle-search-ignore-case : alt-cmd-cnarrow-ui:toggle-search-use-regex : alt-cmd-/narrow-ui:start-insert : I ( !vmp ), a ( !vmp )narrow-ui:move-to-next-file-item : n ( !vmp )narrow-ui:move-to-previous-file-item : p ( !vmp )narrow-ui:relocate : 기본적으로 KEYMAP 없음, center 작업 공간과 bottom 도크 사이에 UI가 열리는 스위치 위치. 좁은 공급자 (예 : narrow:scan )를 호출 할 Keymap이 없습니다.
keymap.cson 에서 Command-Palette에서 시작하거나 KeyMap을 설정하십시오.
config.cson narrow :
SelectFiles :
rememberQuery : true
confirmOnUpdateRealFile : false keymap.cson내 키 맵에 대한 설명.
cmd-f : 좁은 편집자에 집중하고 원래 편집자에 집중cmd-i : 좁은 편집자의 프롬프트에 초점을 맞추고 원래 편집자에 대한 초점cmd-e :narrow-edior 없는 경우 : START narrow:search-by-current-word .narrow-edior 인 경우 query-current-word (기본적으로 keymap).narrow-edior 의 쿼리를 Cursor-Word로 바꾸십시오.cmd-[ : narrow:previous-query-history 를 회상했습니다cmd-] : narrow:next-query-history , 다음 역사를 기억하십시오ctrl-g : 어디에서나 narrow-editor 닫습니다.tab , shift-tab : 다음/이전 항목으로 이동합니다.; : narrow-editor 닫지 않고 전류 항목을 확인하면 ctrl-g 로 narrow-editor 닫을 수 있습니다. # From outside of narrow-editor
# -------------------------
# `cmd-e` start `search-by-current-word` only when workspace does NOT have `narrow-editor`.
# NOTE: When workspace.has-narrow, `cmd-e` is mapped to `query-current-word` by default.
' atom-workspace:not(.has-narrow) atom-text-editor.vim-mode-plus:not(.insert-mode) ' :
' cmd-e ' : ' narrow:search-by-current-word '
' atom-text-editor.vim-mode-plus:not(.insert-mode) ' :
' ctrl-z ' : ' narrow:reopen '
' space f ' : ' narrow:fold '
' cmd-o ' : ' narrow:symbols-by-current-word '
' cmd-shift-o ' : ' narrow:project-symbols-by-current-word '
' cmd-r ' : ' narrow:symbols ' # Override default cmd-r
' cmd-shift-r ' : ' narrow:project-symbols ' # Override default cmd-shift-r
' space l ' : ' narrow:scan '
' cmd-l ' : ' narrow:scan-by-current-word '
' space s ' : ' narrow:search '
' space G ' : ' narrow:git-diff-all '
# When workspace has narrow-editor
' atom-workspace.has-narrow atom-text-editor.vim-mode-plus.normal-mode ' :
' cmd-f ' : ' narrow:focus ' # focus to narrow-editor
' cmd-i ' : ' narrow:focus-prompt ' # focus to prompt of narrow-editor
# Following three command have ctrl- prefixed by default to avoid conflicts.
# But I don' care conflict, prefer more accessible keymap.
' cmd-[ ' : ' narrow:previous-query-history '
' cmd-] ' : ' narrow:next-query-history '
' cmd-e ' : ' narrow:query-current-word '
# narrow-editor regardless of mode of vim
' atom-text-editor.narrow.narrow-editor[data-grammar="source narrow"] ' :
' cmd-f ' : ' narrow:focus '
' cmd-i ' : ' narrow:focus-prompt ' # cmd-i to return to calling editor.
# Danger: apply change on narrow-editor to real file by `cmd-s`.
' cmd-s ' : ' narrow-ui:update-real-file '
# Move ui in between bottom dock and center workspace.
' cmd-t ' : ' narrow-ui:relocate '
' atom-workspace.has-narrow atom-text-editor.vim-mode-plus.normal-mode,
atom-workspace.has-narrow atom-text-editor.vim-mode-plus.visual-mode ' :
' cmd-e ' : ' narrow:query-current-word ' # set current word as query of active ui.
' atom-text-editor.narrow.narrow-editor.vim-mode-plus.normal-mode ' :
' g g ' : ' narrow-ui:move-to-prompt '
' s ' : ' narrow-ui:select-files '
' ; ' : ' narrow-ui:confirm-keep-open '
' n ' : ' narrow-ui:move-to-next-file-item '
' p ' : ' narrow-ui:move-to-previous-file-item ' " * " :
" autocomplete-plus " :
suppressActivationForEditorClasses : [
# snip
" narrow "
]
# snip
" vim-mode-plus " :
highlightSearchExcludeScopes : [
" narrow "
]vim-mode-plus.automaticallyEscapeInsertModeOnActivePaneItemChange 활성화하지 마십시오search 공급자의 좁은 편집자의 각 쿼리 입력은 insert-mode 에서 normal-mode 까지 모드 변화를 일으 킵니다. 기본값으로 KeyMap을 배우십시오.
예를 들어 tab , shift-tab 으로 다음 항목 또는 이전 항목으로 이동할 수 있습니다 (작동하려면 vim-mode-plus v0.81.0 이상이 필요합니다).
VIM 모드 플러스 사용자 인 경우. 다음 명령은 vim-mode-plus의 검색 ( / 또는 ? ) 미니 편집자에서 사용할 수 있습니다.
vim-mode-plus-user:narrow:scanvim-mode-plus-user:narrow:searchvim-mode-plus-user:narrow:search-current-projectvim-mode-plus-user:narrow:atom-scan i , a normal-mode 로 이동하여 라인을 프롬프트로 이동합니다.direct-edit 및 update-real-file 위해 항목 자체를 편집하려면 다른 키를 사용하여 insert-mode 입력하십시오.I 의도적으로 vim-mode-plus에 매핑되어있다 : 일반적으로 i 에 맵핑되는 vim-mode-plus:activate-insert-mode .I 입력해야합니다.I 외에는 A , c 등으로 insert-mode 시작할 수 있습니다.매일 편집하면 사용합니다.
scan , search , git-diff-all , symbols .
내가 다른 사람을 사용하지 않는 이유는 무엇입니까? 이유가 여기 있습니다.
fold : symbols 와 비슷하기 때문에.atom-scan : search 사용할 수없는 Windows 사용자에게 제공됩니다 ( ag 또는 rg 필요).cmd-w ( core:close )로 narrow-editor 닫을 수 있음을 알았습니다. narrow:close 이유는 무엇입니까? 차이점은 무엇입니까? 가장 큰 차이점은 narrow:close 복원 편집기 상태 (스크롤 탑, 접기, 활성 창 항목)가 사용자가 시작에서 미리 preview 만 수행 한 경우.
narrow:close : narrow-editor 닫고 편집기가 적절할 때 편집기 상태를 복원하십시오 . 또한 현재 활성 편집기에 관계없이 narrow-editor 를 닫을 수 있습니다.core:close : narrow-editor 파괴하십시오. 그에 따라 원하는 것을 사용하십시오. 나는 일반적으로 narrow:close 때때로 core:close narrow-editor 의 다음 부분에 초점을 맞추고 싶을 때와 같이 닫습니다 (따라서 좁은 시작 편집기에 초점을 복원하고 싶지 않습니다).
narrow:search 에서 특정 파일을 어떻게 제외 할 수 있습니까? backspace 사용하십시오backspace 사용하여 결과에서 특정 파일을 제외하십시오.ctrl-backspace Clear 제외 파일 목록 및 새로 고침narrow-editor 로 제공되며 read-only-mode 입니다. select-files 제공자를 사용하십시오cmd-backspace 로 select-files 시작하거나 Control-Bar 에서 folder-icon 클릭 할 수 있습니다.editor narrow:search , 많은 editor Mached 항목이 나타납니다.select-files 시작하면 모든 파일 경로가 항목으로 표시됩니다.md 입력하면 Macheed md 의 Markdown FilePath가 표시됩니다.! , 이제 귀하의 쿼리는 md! , 이것은 md 일치 하지 않는 모든 파일로 취급됩니다.enter .select-files 다시 시작하여 파일을 다시 제외 할 수 있습니다.spec 폴더를 제외하려면 spec/! 쿼리로..js 파일 만 포함하려면 쿼리를 .js 로 설정할 수 있습니다.next-file , previous-file 로 건너 뛰고 싶습니다read-only 모드에서 n , p 사용하십시오.narrow:symbols 항상 가장 오른쪽 창에 나타나고 닫고 싶지 않다.narrow:symbols (또는 narrow:fold 사용하고 싶을 수도 있음)narrow-editor 원하는 곳으로 옮기십시오.Narrow Ui: Protect . 이제 narrow-editor 보호됩니다.narrow-editor ctrl-g ( narrow:close )에 의해 닫히지 않으며 enter 에 의해 확인에 의해 닫히지 않습니다.cmd-w 또는 닫기 버튼을 사용하십시오.