mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
Update sudo layer doc (#2011)
* Update sudo layer doc * Update sudo layer doc * Update wiki
This commit is contained in:
parent
be32977fd3
commit
d09bfba5e1
@ -1085,7 +1085,8 @@ Files manipulation commands (start with f):
|
||||
| `SPC f C d` | convert file from unix to dos encoding |
|
||||
| `SPC f C u` | convert file from dos to unix encoding |
|
||||
| `SPC f D` | delete a file and the associated buffer (ask for confirmation) |
|
||||
| `SPC f E` | open a file with elevated privileges (sudo edit)(TODO) |
|
||||
| `SPC f E` | open a file with elevated privileges (sudo layer) (TODO) |
|
||||
| `SPC f W` | save a file with elevated privileges (sudo layer) |
|
||||
| `SPC f f` | open file |
|
||||
| `SPC f F` | try to open the file under point |
|
||||
| `SPC f o` | open a file using the default external program(TODO) |
|
||||
|
34
docs/layers/sudo.md
Normal file
34
docs/layers/sudo.md
Normal file
@ -0,0 +1,34 @@
|
||||
---
|
||||
title: "SpaceVim sudo layer"
|
||||
description: "sudo layer provides ability to read and write file elevated privileges in SpaceVim"
|
||||
---
|
||||
|
||||
# [Available Layers](../) >> sudo
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [Description](#description)
|
||||
- [Install](#install)
|
||||
- [Key bindings](#key-bindings)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## Description
|
||||
|
||||
sudo layer provides ability to read and write file elevated privileges.
|
||||
|
||||
## Install
|
||||
|
||||
To use this configuration layer, update custom configuration file with:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "sudo"
|
||||
```
|
||||
|
||||
## Key bindings
|
||||
|
||||
| Key Binding | Description |
|
||||
| ----------- | ------------------------------------ |
|
||||
| `SPC f E` | open a file with elevated privileges (TODO) |
|
||||
| `SPC f W` | save a file with elevated privileges |
|
@ -70,6 +70,7 @@ The next release is v0.9.0.
|
||||
- Update doc for bootstrap function ([#1980](https://github.com/SpaceVim/SpaceVim/pull/1980))
|
||||
- Update doc for debug upstream plugins ([#1981](https://github.com/SpaceVim/SpaceVim/pull/1981))
|
||||
- Update doc windows key bindings ([#1995](https://github.com/SpaceVim/SpaceVim/pull/1995))
|
||||
- Add doc for sudo layer ([#2011](https://github.com/SpaceVim/SpaceVim/pull/2011))
|
||||
|
||||
### Others
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user