0.4.0 • Published 5 years ago

hyper-search v0.4.0

Weekly downloads
1,119
License
ISC
Repository
github
Last release
5 years ago

Hyper-search · npm.io GitHub license

Extension for Hyper that allows you to search text in your terminal.

How to use

Install Hyper and add hyper-search to plugins in ~/.hyper.js and restart hyper.js.

Usage:

  • A new 'find' submenu should be available in the 'Edit' menu.
  • Type <Cmd>+F to toggle the search controls.
  • Hit <Cmd>+G to find the next occurrence.
  • Hit <Shift>+<Cmd>+G to find the previous occurrence.
  • Hit <Tab> or <Shift>+<Tab> to expand the selection to the right or left (see Mouseless Copy: https://www.iterm2.com/features.html).
  • Hit <Esc> to hide the search dialog.

demo

Config

hyper-search supports various style modifications.

In ~/.hyper.js:

Change Search Box Border Radius

module.exports = {
  config: {
    ...
      hyperSearchUI: {
        inputBorderRadius: 2
      }
    ...
  }
}

input border radius

Change Previous/Next Button Border Radius

module.exports = {
  config: {
    ...
      hyperSearchUI: {
        buttonBorderRadius: 2,
      }
    ...
  }
}

navigation button border radius

Change Button Margins

module.exports = {
  config: {
    ...
      hyperSearchUI: {
        buttonMargin: 2,
      }
    ...
  }
}

button margin

Change Prev/Next Button Text

module.exports = {
  config: {
    ...
      hyperSearchUI: {
        prevButton: '←',
        nextButton: '→'
      }
    ...
  }
}

change prev/next button

TODO:

  • regular expressions.

Credits

Jonatan Anauati (barakawins@gmail.com)

Contributors

License

ISC

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.11

5 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago