GithubHelp home page GithubHelp logo

usirin / atom-narrow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from t9md/atom-narrow

0.0 3.0 0.0 72 KB

narrow down to target

Home Page: https://atom.io/packages/narrow

License: MIT License

CoffeeScript 95.26% CSS 4.74%

atom-narrow's Introduction

narrow

narrow something.
similar to unite.vim, emacs-helm

Features

  • Search across project via ag.
  • autoPreview items under cursor.
  • vim-mode-plus integration.

Development status

alpha

Gifs

narrow:lines

line

narrow:fold

fold

narrow:search (require ag)

search

Commands

global Commands

  • 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

narrow-ui

  • core:confirm
  • narrow-ui:preview-item
  • narrow-ui:toggle-auto-preview

Keymaps

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'

vim-mode-plus integration.

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.

vmpStartInInsertModeForUI settings.

default: true.

Other config

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"
    ]

atom-narrow's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.