help

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var About = `# **Bard help**

So Bard is vim-like TUI text editor, so if you know some vim motions you'll be fine

Anyways, there are some modes available:
- ***NORMAL*** - main mode where you can move around and do some stuff
- ***INSERT*** - this is where you insert text
- ***COMMAND*** - mode for command execution, like *:wq*
- ***VISUAL*** / *VISUAL-LINE* - mode for text selection

When you run bart you start in *NORMAL* mode, and in any other mode you can press *ESC* to get back to here
For more information run ` + "`" + `:h[elp] <topic>` + "`" + `, for example ` + "`" + `:h command` + "`" + ` to get list of available command in ***Command*** mode

Anyways, here is some main vim keys.
You can also find more information about some specific mode by running *:help <mode>* (not yet tho)

## **Main keys**
### **Movement**
just like in vim:
- ` + "`" + `h` + "`" + ` - move left
- ` + "`" + `j` + "`" + ` - move down
- ` + "`" + `k` + "`" + ` - move up
- ` + "`" + `l` + "`" + ` - move right

You can also type something like *12k* to move 12 lines up

Then you have:
- ` + "`" + `G` + "`" + `- Move to the last line of the file
- ` + "`" + `gg` + "`" + ` - Move to the first line of the file

### **Commands**:
- ` + "`" + `:q` + "`" + ` - quit
- ` + "`" + `:w` + "`" + ` - save (write)
- ` + "`" + `:x` + "`" + ` / ` + "`" + `:wq` + "`" + ` - quit and save (write)

### **How do you type?**
You can type in *INSERT* mode. Here is how you can enter it:
- ` + "`" + `i` + "`" + ` - set mode to ***INSERT*** before the cursor
- ` + "`" + `a` + "`" + ` - set mode to ***INSERT*** after the cursor
- ` + "`" + `I` + "`" + ` - set mode to ***INSERT*** at the first char of the line
- ` + "`" + `A` + "`" + ` - set mode to ***INSERT*** at the end of the line

And here is some helpful vim motions:
- ` + "`" + `o` + "`" + ` - make a new line below and set mode to ***INSERT***
- ` + "`" + `O` + "`" + ` - make a new line above and set mode to ***INSERT***
`
View Source
var Command = `` /* 642-byte string literal not displayed */
View Source
var Modes = `# Supported Modes:

Now Bard supports next vim modes:
 - ***normal*** mode - main mode where you can move around
 - ***insert*** mode - here you can type (not described in help yet)
 - ***command*** mode - used for running some commands
 - ***visual*** mode - used for text selection (not described in help yet)
 - ***replace*** mode - used for char replacement (not described in help yet)

For more information type ` + "`" + `:h[help] <mode>` + "`" + ``
View Source
var Noraml = `` /* 935-byte string literal not displayed */

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL