How to turn off word wrap in iTerm2?

后端 未结 3 1274
梦毁少年i
梦毁少年i 2021-01-30 03:49

How to turn off word wrap in iTerm2? Is there a specific command to do so or in the preferences? I am trying to avoid having the text run down to the next line. I would rather s

3条回答
  •  悲哀的现实
    2021-01-30 04:50

    It appears that iTerm2 does not have the ability to turn off word wrap. There is an open issue (iTerm2 issue #1790) reported to "Provide toggle to turn on/off line wrapping".

    The description of that issue reads:

    Looks like a conversation was had in the Google Groups about this but no one ever actually filed a feature request.

    http://groups.google.com/group/iterm2-discuss/browse_thread/thread/e0f4e9b552d8acd4

    In general I don't like having horizontal scrollbars and prefer to have the lines wrap, but there are occasions...such as looking at long stack traces, that I'd rather just have sequentially indented lines line up and just be forced to scroll to the right to expose all the details. To accomplish this task now, I end up making the text incredibly small so I can read stack traces lined up, but even that doesn't always work.

    In October, 2014, the creator of iTerm2 commented regarding the feature request to toggle word wrap, "I'd like to do this but it's a lot of work, so feel free to send a pull request, but don't be [a jerk]."

    In April, 2015, the milestone for the feature request was changed to "Future Release".

提交回复
热议问题