mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-22 23:10:20 +09:00
Return current commit hash and branch of repository where file in buffer is located instead of current directory.
22 lines
953 B
Markdown
22 lines
953 B
Markdown
# Status
|
|
|
|
The status plugin provides some functions for modifying the status line.
|
|
|
|
Using the `statusformatl` and `statusformatr` options, the exact contents
|
|
of the status line can be modified. Please see the documentation for
|
|
those options (`> help options`) for more information.
|
|
|
|
This plugin provides functions that can be used in the status line format:
|
|
|
|
* `status.branch`: returns the name of the current git branch in the repository
|
|
where the file is located.
|
|
* `status.hash`: returns the hash of the current git commit in the repository
|
|
where the file is located.
|
|
* `status.paste`: returns "" if the paste option is disabled and "PASTE"
|
|
if it is enabled.
|
|
* `status.lines`: returns the number of lines in the buffer.
|
|
* `status.vcol`: returns the visual column number of the cursor.
|
|
* `status.bytes`: returns the number of bytes in the current buffer.
|
|
* `status.size`: returns the size of the current buffer in a human-readable
|
|
format.
|