Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: generated vimdoc #82

Merged
merged 1 commit into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions doc/smart-splits.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*smart-splits.txt* Last change: 2023 April 12
*smart-splits.txt* Last change: 2023 April 14

==============================================================================
Table of Contents *smart-splits-table-of-contents*
Expand All @@ -8,7 +8,7 @@ Configuration ................................... |smart-splits-configuration|
Hooks ................................................... |smart-splits-hooks|
Usage ................................................... |smart-splits-usage|
Key Mappings ..................................... |smart-splits-key-mappings|
Lua API: ............................................. |smart-splits-lua-api:|
Lua API ............................................... |smart-splits-lua-api|
Multiplexer Integrations ............. |smart-splits-multiplexer-integrations|
Tmux ..................................................... |smart-splits-tmux|
Wezterm ............................................... |smart-splits-wezterm|
Expand Down Expand Up @@ -86,12 +86,14 @@ Defaults are shown below:
ignored_buftypes = { 'NvimTree' },
-- the default number of lines/columns to resize by at a time
default_amount = 3,
-- whether to wrap to opposite side when cursor is at an edge
-- e.g. by default, moving left at the left edge will jump
-- to the rightmost window, and vice versa, same for up/down.
-- NOTE: `wrap_at_edge = false` is not supported on Kitty terminal
-- Desired behavior when your cursor is at an edge and you
-- are moving towards that same edge:
-- 'wrap' => Wrap to opposite side
-- 'split' => Create a new split in the desired direction
-- 'stop' => Do nothing
-- NOTE: `at_edge = 'wrap'` is not supported on Kitty terminal
-- multiplexer, as there is no way to determine layout via the CLI
wrap_at_edge = true,
at_edge = 'wrap',
-- when moving cursor between splits left or right,
-- place the cursor on the same row of the *screen*
-- regardless of line numbers. False by default.
Expand Down Expand Up @@ -137,6 +139,10 @@ Defaults are shown below:
-- this functionality is only supported on tmux and Wezterm due to kitty
-- not having a way to check if a pane is zoomed
disable_multiplexer_nav_when_zoomed = true,
-- Supply a Kitty remote control password if needed,
-- or you can also set vim.g.smart_splits_kitty_password
-- see https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.remote_control_password
kitty_password = nil,
})
<

Expand All @@ -148,7 +154,7 @@ The hook table allows you to define callbacks for the `on_enter` and


==============================================================================
EXAMPLES: *smart-splits-examples:*
EXAMPLES *smart-splits-examples*


Integration with bufresize.nvim
Expand Down Expand Up @@ -254,7 +260,7 @@ Otherwise, here are some recommended mappings.
<


LUA API: *smart-splits-lua-api:*
LUA API *smart-splits-lua-api*

>lua
-- resizing splits
Expand All @@ -268,13 +274,13 @@ LUA API: *smart-splits-lua-api:*
require('smart-splits').resize_left(amount)
require('smart-splits').resize_right(amount)
-- moving between splits
-- pass same_row as a boolean to override the default
-- for the move_cursor_same_row config option.
-- You can override config.at_edge and
-- config.move_cursor_same_row via opts
-- See Configuration.
require('smart-splits').move_cursor_up()
require('smart-splits').move_cursor_up({ same_row = boolean, at_edge = 'wrap' | 'split' | 'stop' })
require('smart-splits').move_cursor_down()
require('smart-splits').move_cursor_left(same_row)
require('smart-splits').move_cursor_right(same_row)
require('smart-splits').move_cursor_left()
require('smart-splits').move_cursor_right()
-- Swapping buffers directionally with the window to the specified direction
require('smart-splits').swap_buf_up()
require('smart-splits').swap_buf_down()
Expand Down Expand Up @@ -410,7 +416,7 @@ Add the following snippet to your `~/.config/wezterm/wezterm.lua`:

KITTY *smart-splits-kitty*

**Note** `config.wrap_at_edge = false` is not supoprted in Kitty terminal
**Note** `config.at_edge = 'wrap'` is not supoprted in Kitty terminal
multiplexer due to inability to determine pane layout from CLI.

Add the following snippet to `~/.config/kitty/kitty.conf`, adjusting the
Expand Down
4 changes: 2 additions & 2 deletions doc/tags
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
screen smart-splits.txt /*screen*
smart-splits-configuration smart-splits.txt /*smart-splits-configuration*
smart-splits-credits smart-splits.txt /*smart-splits-credits*
smart-splits-examples: smart-splits.txt /*smart-splits-examples:*
smart-splits-examples smart-splits.txt /*smart-splits-examples*
smart-splits-hooks smart-splits.txt /*smart-splits-hooks*
smart-splits-install smart-splits.txt /*smart-splits-install*
smart-splits-key-mappings smart-splits.txt /*smart-splits-key-mappings*
smart-splits-kitty smart-splits.txt /*smart-splits-kitty*
smart-splits-lua-api: smart-splits.txt /*smart-splits-lua-api:*
smart-splits-lua-api smart-splits.txt /*smart-splits-lua-api*
smart-splits-multiplexer-integrations smart-splits.txt /*smart-splits-multiplexer-integrations*
smart-splits-table-of-contents smart-splits.txt /*smart-splits-table-of-contents*
smart-splits-tmux smart-splits.txt /*smart-splits-tmux*
Expand Down