improve terminal buffers
This commit is contained in:
@@ -6,78 +6,67 @@ Ctrl-w c - Close current window
|
||||
Ctrl-w o - Close all windows except current one
|
||||
|
||||
-- Window Navigation
|
||||
Ctrl-w h - Move to window on the left
|
||||
Ctrl-w j - Move to window below
|
||||
Ctrl-w k - Move to window above
|
||||
Ctrl-w l - Move to window on the right
|
||||
Ctrl-h - Move to window on the left
|
||||
Ctrl-j - Move to window below
|
||||
Ctrl-k - Move to window above
|
||||
Ctrl-l - Move to window on the right
|
||||
|
||||
-- Window Moving/Rearranging
|
||||
Ctrl-w H - Move current window to far left
|
||||
Ctrl-w J - Move current window to bottom
|
||||
Ctrl-w K - Move current window to top
|
||||
Ctrl-w L - Move current window to far right
|
||||
Ctrl-w r - Rotate windows downward/rightward
|
||||
Ctrl-w R - Rotate windows upward/leftward
|
||||
Ctrl-w x - Exchange current window with next one
|
||||
|
||||
-- Window Resizing
|
||||
Ctrl-w = - Make all windows equal size
|
||||
Ctrl-w _ - Maximize height of current window
|
||||
Ctrl-w | - Maximize width of current window
|
||||
Ctrl-w > - Increase width by 1 column
|
||||
Ctrl-w < - Decrease width by 1 column
|
||||
Ctrl-w + - Increase height by 1 row
|
||||
Ctrl-w - - Decrease height by 1 row
|
||||
Ctrl-w > - Increase width by 5 column
|
||||
Ctrl-w < - Decrease width by 5 column
|
||||
Ctrl-w + - Increase height by 5 row
|
||||
Ctrl-w - - Decrease height by 5 row
|
||||
|
||||
-- Window Special Commands
|
||||
Ctrl-w T - Move current window to new tab
|
||||
Ctrl-w } - Preview definition in new window
|
||||
Ctrl-w z - Close preview window
|
||||
Ctrl-w ] - Split window and jump to definition
|
||||
Ctrl-w f - Split window and edit file under cursor
|
||||
Ctrl-w i - Split window and show declaration
|
||||
Ctrl-w ^ - Split window and edit alternate file
|
||||
|
||||
-- Tab
|
||||
gt :tabnext - Go to next tab
|
||||
gT :tabprevious - Go to previous tab
|
||||
{n}gt :tabnext {n} - Go to tab number {n}
|
||||
<Leader>tn :tabnew - Create a new tab - Suggested
|
||||
<Leader>tc :tabclose - Close current tab - Suggested
|
||||
<Leader>to :tabonly - Close all other tabs - Suggested
|
||||
<Leader>t{n} {n}gt - Go to tab {n} - Suggested
|
||||
<Leader>tm. :tabmove +1 - Move tab right - Suggested
|
||||
<Leader>tm, :tabmove -1 - Move tab left - Suggested
|
||||
<Leader>t] :tabnext - Go to next tab
|
||||
<Leader>t[ :tabprevious - Go to previous tab
|
||||
<Leader>tn :tabnew - Create a new tab
|
||||
<Leader>tc :tabclose - Close current tab
|
||||
<Leader>to :tabonly - Close all other tabs
|
||||
<Leader>{n} :{n}gt - Go to tab {n}
|
||||
|
||||
-- Buffer
|
||||
<Leader>bl :ls - List all buffers - Suggested
|
||||
<Leader>bd :bdelete - Delete current buffer - Suggested
|
||||
<Leader>bn :bnext - Go to next buffer - Suggested
|
||||
<Leader>bp :bprevious - Go to previous buffer - Suggested
|
||||
<Leader>b{n} :buffer {n} - Go to buffer {n} - Suggested
|
||||
<Leader>bb :b<Space> - Start buffer selection - Suggested
|
||||
<Leader>bo :bufdo bd|1bd - Delete all other buffers - Suggested
|
||||
-- note: mainly using the telescope one
|
||||
<Leader>space telescope.buffers - open buffers with telescope. there can navigate and delete
|
||||
<Leader>bl :ls - List all buffers
|
||||
<Leader>bd :bdelete - Delete current buffer
|
||||
<Leader>bn :bnext - Go to next buffer
|
||||
<Leader>bp :bprevious - Go to previous buffer
|
||||
<Leader>b{n} :buffer {n} - Go to buffer {n}
|
||||
<Leader>bb :b<Space> - Start buffer selection
|
||||
<Leader>bo :bufdo bd|1bd - Delete all other buffers
|
||||
|
||||
-- Telescope
|
||||
<Leader>sf telescope.find_files - Search Files
|
||||
<Leader>sg telescope.live_grep - Search by Grep
|
||||
<Leader>sb telescope.buffers - Search Buffers
|
||||
<Leader>sh telescope.help_tags - Search Help
|
||||
<Leader>sp telescope.projects - Search Projects
|
||||
<Leader>sm telescope.marks - Search Marks
|
||||
<Leader>sc telescope.commands - Search Commands
|
||||
<Leader>sk telescope.keymaps - Search Keymaps
|
||||
<Leader>ss telescope.git_status - Search Git Status
|
||||
<Leader>sw telescope.grep_string - Search current Word
|
||||
<Leader>sd telescope.diagnostics - Search Diagnostics
|
||||
<Leader>sr telescope.lsp_references - Search References
|
||||
<Leader>ff telescope.find_files - Search Files
|
||||
<Leader>fg telescope.live_grep - Search by Grep
|
||||
<Leader>fb telescope.buffers - Search Buffers
|
||||
<Leader>fh telescope.help_tags - Search Help
|
||||
<Leader>fp telescope.projects - Search Projects
|
||||
<Leader>fm telescope.marks - Search Marks
|
||||
<Leader>fc telescope.commands - Search Commands
|
||||
<Leader>fk telescope.keymaps - Search Keymaps
|
||||
<Leader>fs telescope.git_status - Search Git Status
|
||||
<Leader>fw telescope.grep_string - Search current Word
|
||||
<Leader>fd telescope.diagnostics - Search Diagnostics
|
||||
<Leader>fr telescope.lsp_references - Search References
|
||||
|
||||
-- Neo-tree
|
||||
<Leader>e :Neotree toggle - Explorer Toggle
|
||||
<Leader>E :Neotree focus - Explorer Focus
|
||||
<Leader>ef :Neotree float - Explorer Float
|
||||
<Leader>eb :Neotree buffers - Explorer Buffers
|
||||
<Leader>eg :Neotree git_status - Explorer Git
|
||||
<Leader>e :NvimTree toggle - Explorer Toggle
|
||||
<Leader>E :NvimTree focus - Explorer Focus
|
||||
|
||||
-- Harpoon
|
||||
<Leader>h harpoon_ui.toggle_menu - Harpoon Menu
|
||||
|
||||
Reference in New Issue
Block a user