Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iTerm2 v3 conversion of tabs to spaces on paste

Tags:

iterm2

When pasting text containing tabs into a terminal window, iTerm2 (version 3) asked if I wanted to change the tabs into spaces. I agreed and set that as the default. Now, I need iTerm2 to stop converting the tabs into spaces. How do I do this?

I've looked through the preferences and hidden settings but couldn't find anything obvious. Even the preference to suppress the prompt t convert tabs to spaces is set to "No".

like image 928
Rob Philipp Avatar asked Jun 10 '16 12:06

Rob Philipp


People also ask

How do I copy and paste items in iTerm2?

You can use arrow keys and enter to make a selection, or you can click on an item to choose it, and it will be pasted. If you enable the Save copy/pate history to disk preference then these values will persist across sessions of iTerm2. Resets the internal state of the emulator and clears the screen.

How to restore windows in iTerm2?

All iTerm2 tabs will be shown tiled on the main screen. You can mouse over a tab to see it larger, and clicking on it will restore the windows and select that tab and bring its window to the front.

How can I customize iTerm2?

Quite a bit of customization is also possible by writing shell scripts. iTerm2 has sophisticated Applescript support allowing one to write stand-alone scripts to launch the application and open multiple sessions with profiles into either new tabs or new windows.

How do I view all tabs in iTerm2?

All iTerm2 tabs will be shown tiled on the main screen. You can mouse over a tab to see it larger, and clicking on it will restore the windows and select that tab and bring its window to the front. You can search the contents of all tabs by typing in the search field that appears on the left.


2 Answers

Use

defaults write com.googlecode.iterm2 AboutToPasteTabsWithCancel 0

to disable the feature.

like image 108
Matjaž Straus Istenič Avatar answered Oct 02 '22 16:10

Matjaž Straus Istenič


Preferences -> Advanced -> "Suppress warning about pasting tabs with offer to convert them to spaces".

Enable that to "No" and it will popup again, allowing you to change it (and store if preferred).

like image 43
Charlie Dalsass Avatar answered Oct 02 '22 15:10

Charlie Dalsass