-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from pike-text-editor/next-previous-buffer
Next previous buffer
- Loading branch information
Showing
3 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## Configuration | ||
|
||
The editor is configured using a toml file, by default searched for at `$XDG_CONFIG_HOME/pike/pike.toml`. | ||
You can run pike with `-c/--config [path]` for a custom config path. | ||
|
||
### Keymap | ||
|
||
Located in the `keymaps` section. The keybinds follow VSCode notation, e.g. `ctrl+shift+p`, `ctrl+alt+del` and | ||
are defined as key-value pairs. Example: | ||
|
||
```toml | ||
[keymaps] | ||
"ctrl+s" = "open_file" | ||
"ctrl+y" = "open_file" | ||
``` | ||
|
||
The following actions are bindable: | ||
|
||
| Action | Description | Default | Config definition | | ||
|---------------------------|-------------------------------------------------------------------|--------------------------|----------------------------------| | ||
| Open file | Opens a popup where a relative path should be inserted | ctrl+o | "open_file" | | ||
| Open new buffer | Creates a new, empty buffer not bound to a file for editing | ctrl+n | "new_buffer" | | ||
| Switch to next buffer | Moves focus to the next buffer in the list | ctrl+h | "next_buffer" | | ||
| Switch to previous buffer | Moves focus to the previous buffer in the list | ctrl+l | "previous_buffer" | | ||
| Search in current buffer | Searches for a specific term within the currently active buffer | ctrl+f | "search_in_current_buffer" | | ||
| Replace in current buffer | Replaces text within the current buffer based on a search query | ctrl+j | "replace_in_current_buffer" | | ||
| Save changes | Saves the current buffer to its associated file | ctrl+s | "save" | | ||
| Undo last change | Reverts the most recent change in the current buffer | ctrl+z | "undo" | | ||
| Redo last change | Reapplies the most recently undone change in the current buffer | ctrl+y | "redo" | | ||
| Quit | Closes the application | ctrl+q | "quit" | | ||
|
||
Keybindings which contain multiple modifiers are not yet supported and will be added | ||
in the future (<https://docs.rs/crossterm/latest/crossterm/event/struct.KeyboardEnhancementFlags.html>). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters