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

Add option to quote the command sent to the terminal #414

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
documented and added option to default config
  • Loading branch information
Felix Cusson committed Mar 18, 2023
commit e165f3f549b587dba8f33c63f05fef18d6aa84d6
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ require("toggleterm").setup{
direction = 'vertical' | 'horizontal' | 'tab' | 'float',
close_on_exit = true, -- close the terminal window when the process exits
shell = vim.o.shell, -- change the default shell
quote_command = false, -- put quotes arround the command sent to the terminal, required for Windows using git bash
auto_scroll = true, -- automatically scroll to the bottom on terminal output
-- This field is only relevant if direction is set to 'float'
float_opts = {
Expand Down
1 change: 1 addition & 0 deletions doc/toggleterm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ show what options are available. It is not written to be used as is.
direction = 'vertical' | 'horizontal' | 'tab' | 'float',
close_on_exit = true, -- close the terminal window when the process exits
shell = vim.o.shell, -- change the default shell
quote_command = false -- put quotes around the command being sent to the terminal. Required for Windows using git bash
auto_scroll = true, -- automatically scroll to the bottom on terminal output
-- This field is only relevant if direction is set to 'float'
float_opts = {
Expand Down
1 change: 1 addition & 0 deletions lua/toggleterm/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ local config = {
direction = "horizontal",
shading_factor = constants.shading_amount,
shell = vim.o.shell,
quote_command = false,
autochdir = false,
auto_scroll = true,
winbar = {
Expand Down