From 629509e0e086d32a27b35b7a2956094dfd24eedb Mon Sep 17 00:00:00 2001 From: Nitin Tulswani Date: Fri, 4 Aug 2017 17:20:40 +0530 Subject: [PATCH] added emoji --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e361924..4b46af2 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ Ensure that `terminal-in-react/lib/css/index.css` is loaded ## Working -### Adding commands +### Adding commands โœ๏ธ To add your own command, use prop `commands` which accepts an object. This objects then maps `command name -> command function`. @@ -120,7 +120,7 @@ Let's take an example. You want to open a website with a command `open-google` window.open("https://www.google.com/", "_blank")}} /> ``` -### Adding description of your command +### Adding description of your command ๐Ÿ’๐Ÿผโ€โ™‚๏ธ Add a description of your command using prop `description`. @@ -141,7 +141,7 @@ It does so by default.

-### Command passthrough +### Command passthrough You can have the terminal pass out the cmd that was input @@ -149,7 +149,7 @@ You can have the terminal pass out the cmd that was input `-PassedThrough:${cmd}: command not found`} /> ``` -### Async handling of commands +### Async handling of commands ๐Ÿ˜Ž you can also handle the result with a callback ```jsx

-### Multiline input +### Multiline input ๐Ÿคน๐Ÿผโ€โ™€๏ธ via `shift + enter` @@ -304,7 +304,7 @@ via `shift + enter`

-### Check history of your commands +### Check history of your commands ๐Ÿ–ฑ๏ธ using arrow down and up keys @@ -312,7 +312,7 @@ using arrow down and up keys

-### Keyboard shortcuts +### Keyboard shortcuts โŒจ You can define keyboard shortcuts. They have to be grouped by os. The three available are `win`, `darwin`, and `linux`. You can group multiple os by a `,` for example if the shortcut was for all platforms `win,darwin,linux` would be fine as a key