Skip to content

Commit

Permalink
Merge pull request #756 from fox0430/develop
Browse files Browse the repository at this point in the history
v0.2.0
  • Loading branch information
fox0430 authored Jul 7, 2020
2 parents cfbf1c1 + 65332fb commit c55dbad
Show file tree
Hide file tree
Showing 41 changed files with 3,176 additions and 1,048 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A command line based editor inspired by vi/vim written in Nim.
This project's goal is a very customizable, high productivity, high performance and funny animation editor.


![moe](https://user-images.githubusercontent.com/15966436/83775986-96ace180-a6c2-11ea-878c-63632fa8888a.png)
![moe](https://user-images.githubusercontent.com/15966436/86624198-df2b2800-bffd-11ea-9a37-c3caea2a3ccc.png)

## Features

Expand Down
134 changes: 123 additions & 11 deletions documents/configfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ You can use the example -> https://github.com/fox0430/moe/blob/master/example/mo

### Standard table
Color theme (String)
default is ```"vivid"```. ```"vivid"``` or ```"dark"``` or ```"light"``` or ```"vscode"```
```"vivid"``` or ```"dark"``` or ```"light"``` or ```"vscode"```
default is ```"dark"```.
```
theme
```
Expand Down Expand Up @@ -62,20 +63,20 @@ default is true
autoIndent
```

Set cursor shape of the terminal emulator you are using (String) ```"block"``` or ```"ibeam"```
default is block
Set cursor shape of the terminal emulator you are using (String) ```"blinkBlock"``` or ```"blinkIbeam"``` or ```noneBlinkBlock``` or ```noneBlinkIbeam```
default is ```"blinkBlock"```
```
defaultCursor
```

Set cursor shape in normal mode (String) ```"block"``` or ```"ibeam"```
default is block
Set cursor shape in normal mode (String) ```"blinkBlock"``` or ```"blinkIbeam"``` or ```noneBlinkBlock``` or ```noneBlinkIbeam```
default is ```"blinkBlock"```
```
normalModeCursor
```

Set cursor shape in insert mode (String) ```"block"``` or ```"ibeam"```
default is ibeam
Set cursor shape in insert mode (String) ```"blinkBlock"``` or ```"blinkIbeam"``` or ```noneBlinkBlock``` or ```noneBlinkIbeam```
default is ```"blinkIbeam"```

```
insertModeCursor
Expand Down Expand Up @@ -157,6 +158,12 @@ default is true
highlightFullWidthSpace
```

Highlight trailing spaces (bool)
default is true
```
highlightTrailingSpaces
```

### TabLine table
Show all bufer in tab line (bool)
default is false
Expand Down Expand Up @@ -219,6 +226,12 @@ default is true
gitbranchName
```

Show/Hide git branch name in status bar in inactive window (bool)
default is false
```
showGitInactive
```

### BuildOnSave table

Enable/Disable build on save (bool)
Expand All @@ -237,6 +250,35 @@ Override commands executed at build (string)
command
```

### WorkSpace table

Enable/Disable workspace bar (bool)
default is false
```
useBar
```

### Highlight table

Highlighting any word (array)

defaut
```
["TODO", "WIP", "NOTE"]
```

```
reservedWord
```

### Filer table

Show/hidden unicode icons (bool)
default is true
```
showIcons
```

### Color and theme
-- Available colors --

Expand Down Expand Up @@ -545,6 +587,16 @@ Background color of mode text in the status bar in normal mode
statusBarModeNormalModeBg
```

Character color of Status bar in normal mode when inactive
```
statusBarNormalModeInactive
```

Status bar base color in normal mode when inactive
```
statusBarNormalModeInactiveBg
```

Character color of Status bar in insert mode
```
statusBarInsertMode
Expand All @@ -565,6 +617,16 @@ Background color of mode text in the status bar in insert mode
statusBarModeInsertModeBg
```

Character color of Status bar in insert mode when inactive
```
statusBarInsertModeInactive
```

Status bar base color in insert mode when inactive
```
statusBarInsertModeInactiveBg
```

Character color of Status bar in visual mode
```
statusBarVisualMode
Expand All @@ -585,6 +647,16 @@ Background color of mode text in the status bar in visual mode
statusBarModeVisualModeBg
```

Character color of Status bar in visual mode when inactive
```
statusBarVisualModeInactive
```

Status bar base color in visual mode when inactive
```
statusBarVisualModeInactiveBg
```

Character color of Status bar replace in mode
```
statusBarReplaceMode
Expand All @@ -605,6 +677,16 @@ Background color of mode text in the status bar in replace mode
statusBarModeReplaceModeBg
```

Character color of Status bar replace in mode when inactive
```
statusBarReplaceModeInactive
```

Status bar base color in replace mode when inactive
```
statusBarReplaceModeInactiveBg
```

Character color of Status bar in filer mode
```
statusBarFilerMode
Expand All @@ -625,6 +707,16 @@ Background color of mode text in the status bar in filer mode
statusBarModeFilerModeBg
```

Character color of Status bar in filer mode when inactive
```
statusBarFilerModeInactive
```

Status bar base color in filer mode when inactive
```
statusBarFilerModeInactiveBg
```

Character color of Status bar in ex mode
```
statusBarExMode
Expand All @@ -645,6 +737,16 @@ Background color of mode text in the status bar in ex mode
statusBarModeExModeBg
```

Character color of Status bar in ex mode when inactive
```
statusBarExModeInactive
```

Status bar base color in ex mode when inactive
```
statusBarExModeInactiveBg
```

Current git branch text color
```
statusBarGitBranch
Expand Down Expand Up @@ -836,6 +938,16 @@ Full width space background color
highlightFullWidthSpaceBg
```

Trailing space color
```
highlightTrailingSpaces
```

Trailing space background color
```
highlightTrailingSpacesBg
```

Workspace bar text color
```
workSpaceBar
Expand All @@ -846,12 +958,12 @@ Workspace bar background color
workSpaceBarBg
```

TODO highlight text color
Reserved word text color
```
todo
reservedWord
```

TODO highlight background color
Reserved word background color
```
todoBg
reservedWordBg
```
47 changes: 43 additions & 4 deletions documents/howtouse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# How to use


## Exiting

Check command bar

```:w``` - Write file
Expand All @@ -11,7 +13,9 @@ Check command bar
```:wqa``` - Write and quit all window
```:qa!``` - Force quit all window


## Normal mode

```h``` - ←
```j``` or ```+``` - ↓
```k``` or ```-``` - ↑
Expand Down Expand Up @@ -45,7 +49,8 @@ Check command bar
```I``` - Same as 0a

```>``` - Indent
```<``` - Unindent
```<``` - Unindent
```==``` Auto indent

```dd``` - Delete(cut) a line
```d$``` or ```D``` - Delete the characters under the cursor until the end of the line
Expand Down Expand Up @@ -79,7 +84,13 @@ Check command bar
```/``` - Search text
```:``` - Start ex mode

```Ctrl-w c``` - Close current window

```/keyword``` - Search forward
```?keyword``` - Search backward

## Visual (block) mode

```d ```or ```x``` - Delete(cut) text
```y``` - Copy text
```r``` - Replace character
Expand All @@ -98,25 +109,46 @@ Check command bar

```Esc``` - Start normal mode


## Replace mode

```Esc``` - Start normal mode


## Insert mode
```Esc``` - Start normal mode

```Ctrl-e``` Insert the character which is below the cursor
```Ctrl-y``` Insert the character which is above the cursor
```Ctrl-i``` Insert a tab

```Ctrl-t``` Add indent in current line
```Ctrl-d``` Delete indent in current line

```Backspace``` or ```Ctrl-h``` Delete the character before the cursor

```Ctrl-w``` Delete the word before the cursor
```Ctrl-u``` Delete characters before the cursor in current line

```Esc``` or ```Ctrl-[``` - Start normal mode


## Filer mode

```D``` - Delete file
```g``` - Go to top of list
```G``` - Go to last of list
```i``` - Detail information


## Ex mode

```number``` - Jump to line number : Exmaple ```:10```
```!``` shell command - Shell command execution

```e``` filename - Open file

```/keyword``` - Search text, file or directory
```ene``` - Create new empty buffer
```new``` - Create new empty buffer in split window horizontally
```vnew``` - Create new empty buffer in split window vertically

```%s/keyword1/keyword2/``` - Replace text (normal mode only)

Expand All @@ -129,7 +161,9 @@ Check command bar
```buf``` - Open buffer manager

```vs``` - Vertical split window
```vs filename``` - Open in vertical split window
```sv``` - Horizontal split window
```sp filename``` - Open in horizontal split window

```cws``` - Create new work space
```ws number``` - Change current work space : Example ```ws 2```
Expand All @@ -153,8 +187,13 @@ Check command bar
```highlightfullspace on``` or ```highlightfullspace off``` - Change setting to highlight full width space
```buildonsave on``` or ```buildonsave off``` - Change setting to build on save
```indentationlines on ``` or ```indentationlines off``` - Change setting to indentation lines
```showGitInactive on``` or ```showGitInactive off``` - Change status bar setting to show/hide git branch name in inactive window
```noh``` - Turn off highlights
```icon``` - Setting show/hidden icons in filer mode
```deleteTrailingSpaces``` - Delete trailing spaces

```log``` - Open messages log viwer

```help``` - Open help

```putConfigFile``` - Put a sample configuration file in ~/.config/moe
Loading

0 comments on commit c55dbad

Please sign in to comment.