Skip to content

Commit

Permalink
add cheatsheets
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Apr 13, 2020
1 parent bfc1d02 commit aebcd30
Show file tree
Hide file tree
Showing 5 changed files with 288 additions and 6 deletions.
95 changes: 95 additions & 0 deletions docs/keybindings/Keybindings_en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Lazynpm Keybindings

## Global Keybindings

<pre>
<kbd>pgup</kbd>: scroll up main panel (fn+up)
<kbd>pgdown</kbd>: scroll down main panel (fn+down)
<kbd>R</kbd>: refresh
<kbd>x</kbd>: open menu
<kbd>z</kbd>: kill running command
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
<kbd>_</kbd>: prev screen mode
</pre>

## Dependencies Panel

<pre>
<kbd>i</kbd>: `npm install` dependency
<kbd>o</kbd>: open package.json
<kbd>u</kbd>: `npm update` dependency
<kbd>d</kbd>: `npm uninstall` dependency
<kbd>t</kbd>: change dependency type (prod/dev/optional)
<kbd>n</kbd>: `npm install` new dependency
<kbd>e</kbd>: edit dependency constraint
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Menu Panel

<pre>
<kbd>esc</kbd>: close menu
<kbd>q</kbd>: close menu
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Packages Panel

<pre>
<kbd>n</kbd>: add package to list
<kbd>p</kbd>: `npm pack` package
<kbd>l</kbd>: `npm link <package>` (or unlink if already linked)
<kbd>L</kbd>: `npm link` (i.e. globally link) (or unlink if already linked)
<kbd>d</kbd>: remove package from list
<kbd>i</kbd>: `npm install` package
<kbd>b</kbd>: `npm run build` package
<kbd>o</kbd>: open package.json
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Scripts Panel

<pre>
<kbd>space</kbd>: `npm run` script
<kbd>d</kbd>: remove script from package.json
<kbd>e</kbd>: edit script
<kbd>n</kbd>: add script
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Status Panel

<pre>
<kbd>e</kbd>: edit config file
<kbd>o</kbd>: open config file
<kbd>u</kbd>: check for update
</pre>

## Tarballs Panel

<pre>
<kbd>d</kbd>: delete tarball
<kbd>i</kbd>: `npm install` tarball
<kbd>P</kbd>: `npm publish` tarball
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>
95 changes: 95 additions & 0 deletions docs/keybindings/Keybindings_nl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Lazynpm Keybindings

## Global

<pre>
<kbd>pgup</kbd>: scroll up main panel (fn+up)
<kbd>pgdown</kbd>: scroll down main panel (fn+down)
<kbd>R</kbd>: verversen
<kbd>x</kbd>: open menu
<kbd>z</kbd>: kill running command
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
<kbd>_</kbd>: prev screen mode
</pre>

## Dependencies Panel

<pre>
<kbd>i</kbd>: `npm install` dependency
<kbd>o</kbd>: open package.json
<kbd>u</kbd>: `npm update` dependency
<kbd>d</kbd>: `npm uninstall` dependency
<kbd>t</kbd>: change dependency type (prod/dev/optional)
<kbd>n</kbd>: `npm install` new dependency
<kbd>e</kbd>: edit dependency constraint
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Menu Panel

<pre>
<kbd>esc</kbd>: close menu
<kbd>q</kbd>: close menu
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Packages Panel

<pre>
<kbd>n</kbd>: add package to list
<kbd>p</kbd>: `npm pack` package
<kbd>l</kbd>: `npm link <package>` (or unlink if already linked)
<kbd>L</kbd>: `npm link` (i.e. globally link) (or unlink if already linked)
<kbd>d</kbd>: remove package from list
<kbd>i</kbd>: `npm install` package
<kbd>b</kbd>: `npm run build` package
<kbd>o</kbd>: open package.json
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Scripts Panel

<pre>
<kbd>space</kbd>: `npm run` script
<kbd>d</kbd>: remove script from package.json
<kbd>e</kbd>: edit script
<kbd>n</kbd>: add script
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Status Panel

<pre>
<kbd>e</kbd>: verander config file
<kbd>o</kbd>: open config file
<kbd>u</kbd>: check voor updates
</pre>

## Tarballs Panel

<pre>
<kbd>d</kbd>: delete tarball
<kbd>i</kbd>: `npm install` tarball
<kbd>P</kbd>: `npm publish` tarball
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>
95 changes: 95 additions & 0 deletions docs/keybindings/Keybindings_pl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Lazynpm Keybindings

## Globalne

<pre>
<kbd>pgup</kbd>: scroll up main panel (fn+up)
<kbd>pgdown</kbd>: scroll down main panel (fn+down)
<kbd>R</kbd>: odśwież
<kbd>x</kbd>: open menu
<kbd>z</kbd>: kill running command
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
<kbd>_</kbd>: prev screen mode
</pre>

## Dependencies Panel

<pre>
<kbd>i</kbd>: `npm install` dependency
<kbd>o</kbd>: open package.json
<kbd>u</kbd>: `npm update` dependency
<kbd>d</kbd>: `npm uninstall` dependency
<kbd>t</kbd>: change dependency type (prod/dev/optional)
<kbd>n</kbd>: `npm install` new dependency
<kbd>e</kbd>: edit dependency constraint
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Menu Panel

<pre>
<kbd>esc</kbd>: close menu
<kbd>q</kbd>: close menu
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Packages Panel

<pre>
<kbd>n</kbd>: add package to list
<kbd>p</kbd>: `npm pack` package
<kbd>l</kbd>: `npm link <package>` (or unlink if already linked)
<kbd>L</kbd>: `npm link` (i.e. globally link) (or unlink if already linked)
<kbd>d</kbd>: remove package from list
<kbd>i</kbd>: `npm install` package
<kbd>b</kbd>: `npm run build` package
<kbd>o</kbd>: open package.json
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Scripts Panel

<pre>
<kbd>space</kbd>: `npm run` script
<kbd>d</kbd>: remove script from package.json
<kbd>e</kbd>: edit script
<kbd>n</kbd>: add script
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>

## Status Panel

<pre>
<kbd>e</kbd>: edytuj plik konfiguracyjny
<kbd>o</kbd>: otwórz plik konfiguracyjny
<kbd>u</kbd>: sprawdź aktualizacje
</pre>

## Tarballs Panel

<pre>
<kbd>d</kbd>: delete tarball
<kbd>i</kbd>: `npm install` tarball
<kbd>P</kbd>: `npm publish` tarball
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>></kbd>: scroll to bottom
<kbd>/</kbd>: start search
</pre>
6 changes: 0 additions & 6 deletions pkg/gui/keybindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,6 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Handler: gui.wrappedTarballHandler(gui.handleDeleteTarball),
Description: "delete tarball",
},
{
ViewName: "tarballs",
Key: gui.getKey("universal.remove"),
Handler: gui.wrappedTarballHandler(gui.handleDeleteTarball),
Description: "delete tarball",
},
{
ViewName: "tarballs",
Key: gui.getKey("universal.install"),
Expand Down
3 changes: 3 additions & 0 deletions pkg/i18n/english.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ func addEnglish(i18nObject *i18n.Bundle) error {
}, &i18n.Message{
ID: "TarballsTitle",
Other: "Tarballs",
}, &i18n.Message{
ID: "ConfirmationTitle",
Other: "Confirmation",
},
)
}

0 comments on commit aebcd30

Please sign in to comment.