2022-02-27 13:16:53 +00:00
|
|
|
# Full List of Messages
|
|
|
|
|
|
|
|
xplr messages categorized based on their purpose.
|
|
|
|
|
|
|
|
## Categories
|
|
|
|
|
|
|
|
- [Exploring](#exploring)
|
|
|
|
- [Screen](#screen)
|
|
|
|
- [Navigation](#navigation)
|
2022-10-27 17:29:12 +00:00
|
|
|
- [Virtual Root](#virtual-root)
|
2022-02-27 13:16:53 +00:00
|
|
|
- [Reading Input](#reading-input)
|
|
|
|
- [Switching Mode](#switching-mode)
|
|
|
|
- [Switching Layout](#switching-layout)
|
|
|
|
- [Executing Commands](#executing-commands)
|
|
|
|
- [Calling Lua Functions](#calling-lua-functions)
|
|
|
|
- [Select Operations](#select-operations)
|
|
|
|
- [Filter Operations](#filter-operations)
|
|
|
|
- [Sort Operations](#sort-operations)
|
2022-09-25 07:22:24 +00:00
|
|
|
- [Search Operations](#search-operations)
|
2022-02-27 13:16:53 +00:00
|
|
|
- [Mouse Operations](#mouse-operations)
|
|
|
|
- [Fifo Operations](#fifo-operations)
|
|
|
|
- [Logging](#logging)
|
|
|
|
- [Debugging](#debugging)
|
|
|
|
- [Quit Options](#quit-options)
|
|
|
|
|
|
|
|
### Exploring
|
|
|
|
|
|
|
|
#### ExplorePwd
|
|
|
|
|
|
|
|
Explore the present working directory and register the filtered nodes.
|
|
|
|
This operation is expensive. So, try to avoid using it too often.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ExplorePwd"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ExplorePwd`
|
|
|
|
|
|
|
|
#### ExplorePwdAsync
|
|
|
|
|
|
|
|
Explore the present working directory and register the filtered nodes
|
|
|
|
asynchronously. This operation happens asynchronously. That means, the
|
|
|
|
xplr directory buffers won't be updated immediately. Hence, it needs to
|
|
|
|
be used with care and probably with special checks in place. To explore
|
|
|
|
$PWD synchronously, use `ExplorePwd` instead.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ExplorePwdAsync"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ExplorePwdAsync`
|
|
|
|
|
|
|
|
#### ExploreParentsAsync
|
|
|
|
|
|
|
|
Explore the present working directory along with its parents and
|
|
|
|
register the filtered nodes. This operation happens asynchronously.
|
|
|
|
That means, the xplr directory buffers won't be updated immediately.
|
|
|
|
Hence, it needs to be used with care and probably with special checks
|
|
|
|
in place. To explore just the `$PWD` synchronously, use `ExplorePwd`
|
|
|
|
instead.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ExploreParentsAsync"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ExploreParentsAsync`
|
|
|
|
|
|
|
|
### Screen
|
|
|
|
|
|
|
|
#### ClearScreen
|
|
|
|
|
|
|
|
Clear the screen.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-20 12:22:58 +00:00
|
|
|
- Lua: `"ClearScreen"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ClearScreen`
|
|
|
|
|
|
|
|
#### Refresh
|
|
|
|
|
|
|
|
Refresh the screen.
|
|
|
|
But it will not re-explore the directory if the working directory is
|
|
|
|
the same. If there is some change in the working directory and you want
|
|
|
|
to re-explore it, use the `Explore` message instead.
|
|
|
|
Also, it will not clear the screen. Use `ClearScreen` for that.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"Refresh"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `Refresh`
|
|
|
|
|
|
|
|
### Navigation
|
|
|
|
|
|
|
|
#### FocusNext
|
|
|
|
|
|
|
|
Focus next node.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"FocusNext"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusNext`
|
|
|
|
|
|
|
|
#### FocusNextByRelativeIndex
|
|
|
|
|
|
|
|
Focus on the `n`th node relative to the current focus where `n` is a
|
|
|
|
given value.
|
|
|
|
|
|
|
|
Type: { FocusNextByRelativeIndex = int }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ FocusNextByRelativeIndex = 2 }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusNextByRelativeIndex: 2`
|
|
|
|
|
|
|
|
#### FocusNextByRelativeIndexFromInput
|
|
|
|
|
|
|
|
Focus on the `n`th node relative to the current focus where `n` is read
|
|
|
|
from the input buffer.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"FocusNextByRelativeIndexFromInput"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusNextByRelativeIndexFromInput`
|
|
|
|
|
|
|
|
#### FocusPrevious
|
|
|
|
|
|
|
|
Focus on the previous item.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"FocusPrevious"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusPrevious`
|
|
|
|
|
|
|
|
#### FocusPreviousByRelativeIndex
|
|
|
|
|
|
|
|
Focus on the `-n`th node relative to the current focus where `n` is a
|
|
|
|
given value.
|
|
|
|
|
|
|
|
Type: { FocusPreviousByRelativeIndex = int }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `{ FocusPreviousByRelativeIndex = 2 }`
|
|
|
|
- YAML: `FocusPreviousByRelativeIndex: 2`
|
|
|
|
|
|
|
|
#### FocusPreviousByRelativeIndexFromInput
|
|
|
|
|
|
|
|
Focus on the `-n`th node relative to the current focus where `n` is
|
|
|
|
read from the input buffer.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"FocusPreviousByRelativeIndexFromInput"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusPreviousByRelativeIndexFromInput`
|
|
|
|
|
|
|
|
#### FocusFirst
|
|
|
|
|
|
|
|
Focus on the first node.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"FocusFirst"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusFirst`
|
|
|
|
|
|
|
|
#### FocusLast
|
|
|
|
|
|
|
|
Focus on the last node.
|
|
|
|
|
|
|
|
Example:
|
2022-04-09 09:15:39 +00:00
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"FocusLast"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusLast`
|
|
|
|
|
|
|
|
#### FocusPath
|
|
|
|
|
|
|
|
Focus on the given path.
|
|
|
|
|
|
|
|
Type: { FocusPath = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `{ FocusPath = "/path/to/file" }`
|
|
|
|
- YAML: `FocusPath: /path/to/file`
|
|
|
|
|
|
|
|
#### FocusPathFromInput
|
|
|
|
|
|
|
|
Focus on the path read from input buffer.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"FocusPathFromInput"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusPathFromInput`
|
|
|
|
|
|
|
|
#### FocusByIndex
|
|
|
|
|
|
|
|
Focus on the absolute `n`th node where `n` is a given value.
|
|
|
|
|
|
|
|
Type: { FocusByIndex = int }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ FocusByIndex = 2 }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusByIndex: 2`
|
|
|
|
|
|
|
|
#### FocusByIndexFromInput
|
|
|
|
|
|
|
|
Focus on the absolute `n`th node where `n` is read from the input buffer.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"FocusByIndexFromInput"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusByIndexFromInput`
|
|
|
|
|
|
|
|
#### FocusByFileName
|
|
|
|
|
|
|
|
Focus on the file by name from the present working directory.
|
|
|
|
|
|
|
|
Type: { FocusByFileName = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ FocusByFileName = "filename.ext" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `FocusByFileName: filename.ext`
|
|
|
|
|
2022-09-26 04:33:16 +00:00
|
|
|
#### ScrollUp
|
|
|
|
|
|
|
|
Scroll up by terminal height.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `"ScrollUp"`
|
|
|
|
- YAML: `ScrollUp`
|
|
|
|
|
|
|
|
#### ScrollDown
|
|
|
|
|
|
|
|
Scroll down by terminal height.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `"ScrollDown"`
|
|
|
|
- YAML: `ScrollDown`
|
|
|
|
|
|
|
|
#### ScrollUpHalf
|
|
|
|
|
|
|
|
Scroll up by half of terminal height.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `"ScrollUpHalf"`
|
|
|
|
- YAML: `ScrollUpHalf`
|
|
|
|
|
|
|
|
#### ScrollDownHalf
|
|
|
|
|
|
|
|
Scroll down by half of terminal height.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `"ScrollDownHalf"`
|
|
|
|
- YAML: `ScrollDownHalf`
|
|
|
|
|
2022-02-27 13:16:53 +00:00
|
|
|
#### ChangeDirectory
|
|
|
|
|
|
|
|
Change the present working directory ($PWD)
|
|
|
|
|
|
|
|
Type: { ChangeDirectory = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ ChangeDirectory = "/path/to/directory" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ChangeDirectory: /path/to/directory`
|
|
|
|
|
|
|
|
#### Enter
|
|
|
|
|
|
|
|
Enter into the currently focused path if it's a directory.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"Enter"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `Enter`
|
|
|
|
|
|
|
|
#### Back
|
|
|
|
|
|
|
|
Go back to the parent directory.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"Back"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `Back`
|
|
|
|
|
|
|
|
#### LastVisitedPath
|
|
|
|
|
|
|
|
Go to the last path visited.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"LastVisitedPath"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `LastVisitedPath`
|
|
|
|
|
|
|
|
#### NextVisitedPath
|
|
|
|
|
|
|
|
Go to the next path visited.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"NextVisitedPath"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `NextVisitedPath`
|
|
|
|
|
|
|
|
#### FollowSymlink
|
|
|
|
|
|
|
|
Follow the symlink under focus to its actual location.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-10-27 17:35:48 +00:00
|
|
|
- Lua: `"FollowSymlink"`
|
|
|
|
- YAML: `FollowSymlink`
|
2022-02-27 13:16:53 +00:00
|
|
|
|
2022-10-27 17:29:12 +00:00
|
|
|
### Virtual Root
|
|
|
|
|
2022-10-27 10:44:56 +00:00
|
|
|
#### SetVroot
|
|
|
|
|
2022-10-27 17:29:12 +00:00
|
|
|
Sets the virtual root for isolating xplr navigation, similar to
|
|
|
|
`--vroot`, but temporary (can be reset back to initial value).
|
2022-10-27 10:44:56 +00:00
|
|
|
If the $PWD is outside the vroot, xplr will automatically enter vroot.
|
|
|
|
|
|
|
|
Type: { SetVroot = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-10-27 17:35:48 +00:00
|
|
|
- Lua: `{ SetVroot = "/tmp" }`
|
|
|
|
- YAML: `SetVroot: /tmp`
|
2022-10-27 10:44:56 +00:00
|
|
|
|
2022-10-27 17:29:12 +00:00
|
|
|
#### UnsetVroot
|
|
|
|
|
|
|
|
Unset the virtual root temporarily (can be reset back to the initial
|
|
|
|
value).
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `"UnsetVroot"`
|
|
|
|
- YAML: `UnsetVroot`
|
|
|
|
|
|
|
|
#### ToggleVroot
|
|
|
|
|
|
|
|
Toggle virtual root between unset, initial value and $PWD.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `"ToggleVroot"`
|
|
|
|
- YAML: `ToggleVroot`
|
|
|
|
|
2022-10-27 10:44:56 +00:00
|
|
|
#### ResetVroot
|
|
|
|
|
2022-10-27 17:29:12 +00:00
|
|
|
Reset the virtual root back to the initial value.
|
2022-10-27 10:44:56 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `"ResetVroot"`
|
|
|
|
- YAML: `ResetVroot`
|
|
|
|
|
2022-02-27 13:16:53 +00:00
|
|
|
### Reading Input
|
|
|
|
|
2022-05-20 17:05:20 +00:00
|
|
|
#### SetInputPrompt
|
|
|
|
|
|
|
|
Set the input prompt temporarily, until the input buffer is reset.
|
|
|
|
|
2022-05-20 17:53:39 +00:00
|
|
|
Type: { SetInputPrompt = string }
|
2022-05-20 17:05:20 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `{ SetInputPrompt = "→" }`
|
|
|
|
- YAML: `SetInputPrompt: →`
|
|
|
|
|
2022-02-27 13:16:53 +00:00
|
|
|
#### UpdateInputBuffer
|
|
|
|
|
|
|
|
Update the input buffer using cursor based operations.
|
|
|
|
|
|
|
|
Type: { UpdateInputBuffer = [Input Opertaion](https://xplr.dev/en/input-operation) }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ UpdateInputBuffer = "GoToPreviousWord" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `UpdateInputBuffer: GoToPreviousWord`
|
|
|
|
|
|
|
|
#### UpdateInputBufferFromKey
|
|
|
|
|
|
|
|
Update the input buffer from the key read from keyboard input.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"UpdateInputBufferFromKey"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `UpdateInputBufferFromKey`
|
|
|
|
|
|
|
|
#### BufferInput
|
|
|
|
|
|
|
|
Append/buffer the given string into the input buffer.
|
|
|
|
|
|
|
|
Type: { BufferInput = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ BufferInput = "foo" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `BufferInput: foo`
|
|
|
|
|
|
|
|
#### BufferInputFromKey
|
|
|
|
|
|
|
|
Append/buffer the characted read from a keyboard input into the
|
|
|
|
input buffer.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"BufferInputFromKey"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `BufferInputFromKey`
|
|
|
|
|
|
|
|
#### SetInputBuffer
|
|
|
|
|
|
|
|
Set/rewrite the input buffer with the given string.
|
|
|
|
When the input buffer is not-null (even if empty string)
|
|
|
|
it will show in the UI.
|
|
|
|
|
|
|
|
Type: { SetInputBuffer = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SetInputBuffer = "foo" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SetInputBuffer: foo`
|
|
|
|
|
|
|
|
#### RemoveInputBufferLastCharacter
|
|
|
|
|
|
|
|
Remove input buffer's last character.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"RemoveInputBufferLastCharacter"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `RemoveInputBufferLastCharacter`
|
|
|
|
|
|
|
|
#### RemoveInputBufferLastWord
|
|
|
|
|
|
|
|
Remove input buffer's last word.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"RemoveInputBufferLastWord"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `RemoveInputBufferLastWord`
|
|
|
|
|
|
|
|
#### ResetInputBuffer
|
|
|
|
|
|
|
|
Reset the input buffer back to null. It will not show in the UI.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ResetInputBuffer"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ResetInputBuffer`
|
|
|
|
|
|
|
|
### Switching Mode
|
|
|
|
|
|
|
|
#### SwitchMode
|
|
|
|
|
|
|
|
Switch input [mode](https://xplr.dev/en/modes).
|
|
|
|
|
|
|
|
Type : { SwitchMode = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SwitchMode = "default" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: SwitchMode: default
|
|
|
|
|
|
|
|
> **NOTE:** To be specific about which mode to switch to, use
|
|
|
|
> `SwitchModeBuiltinKeepingInputBuffer` or
|
|
|
|
> `SwitchModeCustomKeepingInputBuffer` instead.
|
|
|
|
|
|
|
|
#### SwitchModeKeepingInputBuffer
|
|
|
|
|
|
|
|
Switch input [mode](https://xplr.dev/en/modes).
|
|
|
|
It keeps the input buffer.
|
|
|
|
|
|
|
|
Type: { SwitchModeKeepingInputBuffer = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SwitchModeKeepingInputBuffer = "default" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SwitchModeKeepingInputBuffer: default`
|
|
|
|
|
|
|
|
> **NOTE:** To be specific about which mode to switch to, use
|
|
|
|
> `SwitchModeBuiltinKeepingInputBuffer` or
|
|
|
|
> `SwitchModeCustomKeepingInputBuffer` instead.
|
|
|
|
|
|
|
|
#### SwitchModeBuiltin
|
|
|
|
|
|
|
|
Switch to a [builtin mode](https://xplr.dev/en/modes#builtin).
|
|
|
|
It clears the input buffer.
|
|
|
|
|
|
|
|
Type: { SwitchModeBuiltin = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SwitchModeBuiltin = "default" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SwitchModeBuiltin: default`
|
|
|
|
|
|
|
|
#### SwitchModeBuiltinKeepingInputBuffer
|
|
|
|
|
|
|
|
Switch to a [builtin mode](https://xplr.dev/en/modes#builtin).
|
|
|
|
It keeps the input buffer.
|
|
|
|
|
|
|
|
Type: { SwitchModeBuiltinKeepingInputBuffer = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SwitchModeBuiltinKeepingInputBuffer = "default" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SwitchModeBuiltinKeepingInputBuffer: default`
|
|
|
|
|
|
|
|
#### SwitchModeCustom
|
|
|
|
|
|
|
|
Switch to a [custom mode](https://xplr.dev/en/modes#custom).
|
|
|
|
It clears the input buffer.
|
|
|
|
|
|
|
|
Type: { SwitchModeCustom = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SwitchModeCustom = "my_custom_mode" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SwitchModeCustom: my_custom_mode`
|
|
|
|
|
|
|
|
#### SwitchModeCustomKeepingInputBuffer
|
|
|
|
|
|
|
|
Switch to a [custom mode](https://xplr.dev/en/modes#custom).
|
|
|
|
It keeps the input buffer.
|
|
|
|
|
|
|
|
Type: { SwitchModeCustomKeepingInputBuffer = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SwitchModeCustomKeepingInputBuffer = "my_custom_mode" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SwitchModeCustomKeepingInputBuffer: my_custom_mode`
|
|
|
|
|
|
|
|
#### PopMode
|
|
|
|
|
|
|
|
Pop the last mode from the history and switch to it.
|
|
|
|
It clears the input buffer.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"PopMode"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `PopMode`
|
|
|
|
|
|
|
|
#### PopModeKeepingInputBuffer
|
|
|
|
|
|
|
|
Pop the last mode from the history and switch to it.
|
|
|
|
It keeps the input buffer.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `PopModeKeepingInputBuffer`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `PopModeKeepingInputBuffer`
|
|
|
|
|
|
|
|
### Switching Layout
|
|
|
|
|
|
|
|
#### SwitchLayout
|
|
|
|
|
|
|
|
Switch [layout](https://xplr.dev/en/layouts).
|
|
|
|
|
|
|
|
Type: { SwitchLayout = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SwitchLayout = "default" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SwitchLayout: default`
|
|
|
|
|
|
|
|
> **NOTE:** To be specific about which layout to switch to, use `SwitchLayoutBuiltin` or
|
|
|
|
> `SwitchLayoutCustom` instead.
|
|
|
|
|
|
|
|
#### SwitchLayoutBuiltin
|
|
|
|
|
|
|
|
Switch to a [builtin layout](https://xplr.dev/en/layouts#builtin).
|
|
|
|
|
|
|
|
Type: { SwitchLayoutBuiltin = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SwitchLayoutBuiltin = "default" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SwitchLayoutBuiltin: default`
|
|
|
|
|
|
|
|
#### SwitchLayoutCustom
|
|
|
|
|
|
|
|
Switch to a [custom layout](https://xplr.dev/en/layouts#custom).
|
|
|
|
|
|
|
|
Type: { SwitchLayoutCustom = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SwitchLayoutCustom = "my_custom_layout" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SwitchLayoutCustom: my_custom_layout`
|
|
|
|
|
|
|
|
### Executing Commands
|
|
|
|
|
|
|
|
#### Call
|
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
Like `Call0`, but it uses `\n` as the delimiter in input/output pipes,
|
|
|
|
hence it cannot handle files with `\n` in the name.
|
|
|
|
You may want to use `Call0` instead.
|
|
|
|
|
|
|
|
#### Call0
|
|
|
|
|
2022-02-27 13:16:53 +00:00
|
|
|
Call a shell command with the given arguments.
|
|
|
|
Note that the arguments will be shell-escaped.
|
|
|
|
So to read the variables, the `-c` option of the shell
|
|
|
|
can be used.
|
2022-10-24 13:30:06 +00:00
|
|
|
You may need to pass `ExplorePwd` depending on the expectation.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
Type: { Call0 = { command = "string", args = { "list", "of", "string" } }
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
- Lua: `{ Call0 = { command = "bash", args = { "-c", "read -p test" } } }`
|
|
|
|
- YAML: `Call0: { command: bash, args: ["-c", "read -p test"] }`
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
#### CallSilently
|
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
Like `CallSilently0`, but it uses `\n` as the delimiter in input/output
|
|
|
|
pipes, hence it cannot handle files with `\n` in the name.
|
2022-10-24 18:56:53 +00:00
|
|
|
You may want to use `CallSilently0` instead.
|
2022-10-24 13:30:06 +00:00
|
|
|
|
|
|
|
#### CallSilently0
|
|
|
|
|
|
|
|
Like `Call0` but without the flicker. The stdin, stdout
|
2022-02-27 13:16:53 +00:00
|
|
|
stderr will be piped to null. So it's non-interactive.
|
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
Type: { CallSilently0 = { command = "string", args = {"list", "of", "string"} } }
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
- Lua: `{ CallSilently0 = { command = "tput", args = { "bell" } } }`
|
|
|
|
- YAML: `CallSilently0: { command: tput, args: ["bell"] }`
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
#### BashExec
|
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
Like `BashExec0`, but it uses `\n` as the delimiter in input/output
|
|
|
|
pipes, hence it cannot handle files with `\n` in the name.
|
|
|
|
You may want to use `BashExec0` instead.
|
|
|
|
|
|
|
|
#### BashExec0
|
|
|
|
|
2022-02-27 13:16:53 +00:00
|
|
|
An alias to `Call: {command: bash, args: ["-c", "{string}"], silent: false}`
|
|
|
|
where `{string}` is the given value.
|
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
Type: { BashExec0 = "string" }
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
- Lua: `{ BashExec0 = "read -p test" }`
|
|
|
|
- YAML: `BashExec0: "read -p test"`
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
#### BashExecSilently
|
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
Like `BashExecSilently0`, but it uses `\n` as the delimiter in
|
|
|
|
input/output pipes, hence it cannot handle files with `\n` in the name.
|
2022-10-24 18:56:53 +00:00
|
|
|
You may want to use `BashExecSilently0` instead.
|
2022-10-24 13:30:06 +00:00
|
|
|
|
|
|
|
#### BashExecSilently0
|
|
|
|
|
|
|
|
Like `BashExec0` but without the flicker. The stdin, stdout
|
2022-02-27 13:16:53 +00:00
|
|
|
stderr will be piped to null. So it's non-interactive.
|
|
|
|
|
2022-10-24 18:56:53 +00:00
|
|
|
Type: { BashExecSilently0 = "string" }
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-10-24 13:30:06 +00:00
|
|
|
- Lua: `{ BashExecSilently0 = "tput bell" }`
|
|
|
|
- YAML: `BashExecSilently0: "tput bell"`
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
### Calling Lua Functions
|
|
|
|
|
|
|
|
#### CallLua
|
|
|
|
|
|
|
|
Call a Lua function.
|
|
|
|
|
|
|
|
A [Lua Context](https://xplr.dev/en/lua-function-calls#lua-context)
|
|
|
|
object will be passed to the function as argument.
|
|
|
|
The function can optionally return a list of messages for xplr to
|
|
|
|
handle after the executing the function.
|
|
|
|
|
|
|
|
Type: { CallLua = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ CallLua = "custom.some_custom_funtion" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `CallLua: custom.some_custom_funtion`
|
|
|
|
|
|
|
|
#### CallLuaSilently
|
|
|
|
|
|
|
|
Like `CallLua` but without the flicker. The stdin, stdout
|
|
|
|
stderr will be piped to null. So it's non-interactive.
|
|
|
|
|
|
|
|
Type: { CallLuaSilently = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ CallLuaSilently = "custom.some_custom_function" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `CallLuaSilently: custom.some_custom_function`
|
|
|
|
|
|
|
|
#### LuaEval
|
|
|
|
|
|
|
|
Execute Lua code without needing to define a function.
|
|
|
|
|
|
|
|
If the `string` is a callable, xplr will try to call it with with the
|
|
|
|
[Lua Context](https://xplr.dev/en/lua-function-calls#lua-context)
|
|
|
|
argument.
|
|
|
|
|
|
|
|
Type: { LuaEval = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ LuaEval = [[return { { LogInfo = io.read() } }]] }`
|
|
|
|
- Lua: `{ LuaEval = [[function(app) return { { LogInfo = app.pwd } } end]] }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `LuaEval: "return { { LogInfo = io.read() } }"`
|
|
|
|
- YAML: `LuaEval: "function(app) return { { LogInfo = app.pwd } } end"`
|
|
|
|
|
|
|
|
#### LuaEvalSilently
|
|
|
|
|
|
|
|
Like `LuaEval` but without the flicker. The stdin, stdout
|
|
|
|
stderr will be piped to null. So it's non-interactive.
|
|
|
|
|
|
|
|
Type: { LuaEvalSilently = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ LuaEvalSilently = [[return { { LogInfo = "foo" } }]] }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `LuaEvalSilently: "return { { LogInfo = 'foo' } }"`
|
|
|
|
|
|
|
|
### Select Operations
|
|
|
|
|
|
|
|
#### Select
|
|
|
|
|
|
|
|
Select the focused node.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"Select"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `Select`
|
|
|
|
|
|
|
|
#### SelectAll
|
|
|
|
|
|
|
|
Select all the visible nodes.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"SelectAll"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SelectAll`
|
|
|
|
|
|
|
|
#### SelectPath
|
|
|
|
|
|
|
|
Select the given path.
|
|
|
|
|
|
|
|
Type: { SelectPath = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ SelectPath = "/path/to/file" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `SelectPath: /path/to/file`
|
|
|
|
|
|
|
|
#### UnSelect
|
|
|
|
|
|
|
|
Unselect the focused node.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"UnSelect"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `UnSelect`
|
|
|
|
|
|
|
|
#### UnSelectAll
|
|
|
|
|
|
|
|
Unselect all the visible nodes.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"UnSelectAll"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `UnSelectAll`
|
|
|
|
|
|
|
|
#### UnSelectPath
|
|
|
|
|
|
|
|
UnSelect the given path.
|
|
|
|
|
|
|
|
Type: { UnSelectPath = "string)" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ UnSelectPath = "/path/to/file" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `UnSelectPath: /path/to/file`
|
|
|
|
|
|
|
|
#### ToggleSelection
|
|
|
|
|
|
|
|
Toggle selection on the focused node.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ToggleSelection"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML `ToggleSelection`
|
|
|
|
|
|
|
|
#### ToggleSelectAll
|
|
|
|
|
|
|
|
Toggle between select all and unselect all.
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ToggleSelectAll"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ToggleSelectAll`
|
|
|
|
|
|
|
|
#### ToggleSelectionByPath
|
|
|
|
|
|
|
|
Toggle selection by file path.
|
|
|
|
|
|
|
|
Type: { ToggleSelectionByPath = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ ToggleSelectionByPath = "/path/to/file" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ToggleSelectionByPath: /path/to/file`
|
|
|
|
|
|
|
|
#### ClearSelection
|
|
|
|
|
|
|
|
Clear the selection.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ClearSelection"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ClearSelection`
|
|
|
|
|
|
|
|
### Filter Operations
|
|
|
|
|
|
|
|
#### AddNodeFilter
|
|
|
|
|
|
|
|
Add a [filter](https://xplr.dev/en/filtering#filter) to exclude nodes
|
|
|
|
while exploring directories.
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
|
|
|
Filters get automatically cleared when changing directories.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Type: { AddNodeFilter = { filter = [Filter](https://xplr.dev/en/filtering#filter), input = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ AddNodeFilter = { filter = "RelativePathDoesStartWith", input = "foo" } }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `AddNodeFilter: { filter: RelativePathDoesStartWith, input: foo }`
|
|
|
|
|
|
|
|
#### RemoveNodeFilter
|
|
|
|
|
|
|
|
Remove an existing [filter](https://xplr.dev/en/filtering#filter).
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Type: { RemoveNodeFilter = { filter = [Filter](https://xplr.dev/en/filtering), input = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ RemoveNodeFilter: { filter: "RelativePathDoesStartWith", input: "foo" } }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `RemoveNodeFilter: { filter: RelativePathDoesStartWith, input: foo }`
|
|
|
|
|
|
|
|
#### ToggleNodeFilter
|
|
|
|
|
|
|
|
Remove a [filter](https://xplr.dev/en/filtering#filter) if it exists,
|
|
|
|
else, add a it.
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Type: { ToggleNodeFilter = { filter = [Filter](https://xplr.dev/en/filtering), input = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ ToggleNodeFilter = { filter = "RelativePathDoesStartWith", input = "foo" } }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ToggleNodeFilter: { filter: RelativePathDoesStartWith, input: foo }`
|
|
|
|
|
|
|
|
#### AddNodeFilterFromInput
|
|
|
|
|
|
|
|
Add a node [filter](https://xplr.dev/en/filtering#filter) reading the
|
|
|
|
input from the buffer.
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Type: { AddNodeFilterFromInput = [Filter](https://xplr.dev/en/filtering) }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ AddNodeFilterFromInput = "RelativePathDoesStartWith" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `AddNodeFilterFromInput: RelativePathDoesStartWith`
|
|
|
|
|
|
|
|
#### RemoveNodeFilterFromInput
|
|
|
|
|
|
|
|
Remove a node [filter](https://xplr.dev/en/filtering#filter) reading
|
|
|
|
the input from the buffer.
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Type: { RemoveNodeFilterFromInput = [Filter](https://xplr.dev/en/filtering) }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ RemoveNodeFilterFromInput = "RelativePathDoesStartWith" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `RemoveNodeFilterFromInput: RelativePathDoesStartWith`
|
|
|
|
|
|
|
|
#### RemoveLastNodeFilter
|
|
|
|
|
|
|
|
Remove the last node [filter](https://xplr.dev/en/filtering).
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"RemoveLastNodeFilter"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `RemoveLastNodeFilter`
|
|
|
|
|
|
|
|
#### ResetNodeFilters
|
|
|
|
|
|
|
|
Reset the node [filters](https://xplr.dev/en/filtering) back to the
|
|
|
|
default configuration.
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ResetNodeFilters"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ResetNodeFilters`
|
|
|
|
|
|
|
|
#### ClearNodeFilters
|
|
|
|
|
|
|
|
Clear all the node [filters](https://xplr.dev/en/filtering).
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ClearNodeFilters"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ClearNodeFilters`
|
|
|
|
|
|
|
|
### Sort Operations
|
|
|
|
|
|
|
|
#### AddNodeSorter
|
|
|
|
|
|
|
|
Add a [sorter](https://xplr.dev/en/sorting#sorter) to sort nodes while
|
|
|
|
exploring directories.
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Type: { AddNodeSorter = { sorter = [Sorter](https://xplr.dev/en/sorting#sorter), reverse = bool } }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ AddNodeSorter = { sorter = "ByRelativePath", reverse = false } }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `AddNodeSorter: { sorter: ByRelativePath, reverse: false }`
|
|
|
|
|
|
|
|
#### RemoveNodeSorter
|
|
|
|
|
|
|
|
Remove an existing [sorter](https://xplr.dev/en/sorting#sorter).
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Type: { RemoveNodeSorter = [Sorter](https://xplr.dev/en/sorting#sorter) }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ RemoveNodeSorter = "ByRelativePath" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `RemoveNodeSorter: ByRelativePath`
|
|
|
|
|
|
|
|
#### ReverseNodeSorter
|
|
|
|
|
|
|
|
Reverse a node [sorter](https://xplr.dev/en/sorting#sorter).
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Type: { ReverseNodeSorter = [Sorter](https://xplr.dev/en/sorting#sorter) }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ ReverseNodeSorter = "ByRelativePath" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ReverseNodeSorter: ByRelativePath`
|
|
|
|
|
|
|
|
#### ToggleNodeSorter
|
|
|
|
|
|
|
|
Remove a [sorter](https://xplr.dev/en/sorting#sorter) if it exists,
|
|
|
|
else, add a it.
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Type: { ToggleNodeSorter = { sorter = [Sorter](https://xplr.dev/en/sorting#sorter), reverse = bool } }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ ToggleSorterSorter: { sorter = "ByRelativePath", reverse = false } }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ToggleSorterSorter: {sorter: ByRelativePath, reverse: false }`
|
|
|
|
|
|
|
|
#### ReverseNodeSorters
|
|
|
|
|
|
|
|
Reverse the node [sorters](https://xplr.dev/en/sorting#sorter).
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ReverseNodeSorters"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ReverseNodeSorters`
|
|
|
|
|
|
|
|
#### RemoveLastNodeSorter
|
|
|
|
|
|
|
|
Remove the last node [sorter](https://xplr.dev/en/sorting#sorter).
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"RemoveLastNodeSorter"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `RemoveLastNodeSorter`
|
|
|
|
|
|
|
|
#### ResetNodeSorters
|
|
|
|
|
|
|
|
Reset the node [sorters](https://xplr.dev/en/sorting#sorter) back to
|
|
|
|
the default configuration.
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ResetNodeSorters"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ResetNodeSorters`
|
|
|
|
|
|
|
|
#### ClearNodeSorters
|
|
|
|
|
|
|
|
Clear all the node [sorters](https://xplr.dev/en/sorting#sorter).
|
2022-09-25 07:22:24 +00:00
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
2022-02-27 13:16:53 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ClearNodeSorters"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ClearNodeSorters`
|
|
|
|
|
2022-09-25 07:22:24 +00:00
|
|
|
### Search Operations
|
|
|
|
|
|
|
|
#### SearchFuzzy
|
|
|
|
|
|
|
|
Search files using fuzzy match algorithm.
|
|
|
|
It keeps the filters, but overrides the sorters.
|
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
|
|
|
It gets reset automatically when changing directory.
|
|
|
|
|
|
|
|
Type: { SearchFuzzy = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `{ SearchFuzzy = "pattern" }`
|
|
|
|
- YAML: `SearchFuzzy: pattern`
|
|
|
|
|
|
|
|
#### SearchFuzzyFromInput
|
|
|
|
|
|
|
|
Calls `SearchFuzzy` with the input taken from the input buffer.
|
|
|
|
You need to call `ExplorePwd` or `ExplorePwdAsync` explicitely.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `"SearchFuzzyFromInput"`
|
|
|
|
- YAML: `SearchFuzzyFromInput`
|
|
|
|
|
|
|
|
#### AcceptSearch
|
|
|
|
|
|
|
|
Accepts the search by keeping the latest focus while in search mode.
|
|
|
|
Automatically calls `ExplorePwd`.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `"AcceptSearch"`
|
|
|
|
- YAML: `AcceptSearch`
|
|
|
|
|
|
|
|
#### CancelSearch
|
|
|
|
|
|
|
|
Cancels the search by discarding the latest focus and recovering
|
|
|
|
the focus before search.
|
|
|
|
Automatically calls `ExplorePwd`.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
- Lua: `"CancelSearch"`
|
|
|
|
- YAML: `CancelSearch`
|
|
|
|
|
2022-02-27 13:16:53 +00:00
|
|
|
### Mouse Operations
|
|
|
|
|
|
|
|
#### EnableMouse
|
|
|
|
|
|
|
|
Enable mouse
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"EnableMouse"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `EnableMouse`
|
|
|
|
|
|
|
|
#### DisableMouse
|
|
|
|
|
|
|
|
Disable mouse
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"DisableMouse"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `DisableMouse`
|
|
|
|
|
|
|
|
#### ToggleMouse
|
|
|
|
|
|
|
|
Toggle mouse
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"ToggleMouse"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ToggleMouse`
|
|
|
|
|
|
|
|
### Fifo Operations
|
|
|
|
|
|
|
|
#### StartFifo
|
|
|
|
|
|
|
|
Start piping the focused path to the given fifo path
|
|
|
|
|
|
|
|
Type: { StartFifo = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ StartFifo = "/tmp/xplr.fifo }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `StartFifo: /tmp/xplr.fifo`
|
|
|
|
|
|
|
|
#### StopFifo
|
|
|
|
|
|
|
|
Close the active fifo and stop piping.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"StopFifo"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `StopFifo`
|
|
|
|
|
|
|
|
#### ToggleFifo
|
|
|
|
|
|
|
|
Toggle betwen {Start|Stop}Fifo
|
|
|
|
|
|
|
|
Type: { ToggleFifo = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ ToggleFifo = "/path/to/fifo" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `ToggleFifo: /path/to/fifo`
|
|
|
|
|
|
|
|
### Logging
|
|
|
|
|
|
|
|
#### LogInfo
|
|
|
|
|
|
|
|
Log information message.
|
|
|
|
|
|
|
|
Type: { LogInfo = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ LogInfo = "launching satellite" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `LogInfo: launching satellite`
|
|
|
|
|
|
|
|
#### LogSuccess
|
|
|
|
|
|
|
|
Log a success message.
|
|
|
|
|
|
|
|
Type: { LogSuccess = "String" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ LogSuccess = "satellite reached destination" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `LogSuccess: satellite reached destination`
|
|
|
|
|
|
|
|
#### LogWarning
|
|
|
|
|
|
|
|
Log an warning message.
|
|
|
|
|
|
|
|
Type: { LogWarning = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ LogWarning = "satellite is heating" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `LogWarning: satellite is heating`
|
|
|
|
|
|
|
|
#### LogError
|
|
|
|
|
|
|
|
Log an error message.
|
|
|
|
|
|
|
|
Type: { LogError = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ LogError = "satellite crashed" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `LogError: satellite crashed`
|
|
|
|
|
|
|
|
### Debugging
|
|
|
|
|
|
|
|
#### Debug
|
|
|
|
|
|
|
|
Write the application state to a file, without quitting. Also helpful
|
|
|
|
for debugging.
|
|
|
|
|
|
|
|
Type: { Debug = "string" }
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `{ Debug = "/path/to/file" }`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `Debug: /path/to/file`
|
|
|
|
|
|
|
|
### Quit Options
|
|
|
|
|
|
|
|
#### Quit
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"Quit"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `Quit`
|
|
|
|
|
|
|
|
Quit with returncode zero (success).
|
|
|
|
|
|
|
|
#### PrintPwdAndQuit
|
|
|
|
|
|
|
|
Print $PWD and quit.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"PrintPwdAndQuit"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `PrintPwdAndQuit`
|
|
|
|
|
|
|
|
#### PrintFocusPathAndQuit
|
|
|
|
|
|
|
|
Print the path under focus and quit. It can be empty string if there's
|
|
|
|
nothing to focus.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"PrintFocusPathAndQuit"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `PrintFocusPathAndQuit`
|
|
|
|
|
|
|
|
#### PrintSelectionAndQuit
|
|
|
|
|
|
|
|
Print the selected paths and quit. It can be empty is no path is
|
|
|
|
selected.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"PrintSelectionAndQuit"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `PrintSelectionAndQuit`
|
|
|
|
|
|
|
|
#### PrintResultAndQuit
|
|
|
|
|
|
|
|
Print the selected paths if it's not empty, else, print the focused
|
|
|
|
node's path.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"PrintResultAndQuit"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `PrintResultAndQuit`
|
|
|
|
|
|
|
|
#### PrintAppStateAndQuit
|
|
|
|
|
|
|
|
Print the state of application in YAML format. Helpful for debugging or
|
|
|
|
generating the default configuration file.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"PrintAppStateAndQuit"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `PrintAppStateAndQuit`
|
|
|
|
|
|
|
|
#### Terminate
|
|
|
|
|
|
|
|
Terminate the application with a non-zero return code.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2022-05-16 11:54:32 +00:00
|
|
|
- Lua: `"Terminate"`
|
2022-02-27 13:16:53 +00:00
|
|
|
- YAML: `Terminate`
|
|
|
|
|
|
|
|
## Also See:
|
|
|
|
|
|
|
|
- [Message](message.md)
|