updating w3m splits to be faster in iterm2

This commit is contained in:
JesseBot 2022-12-02 14:37:05 +01:00
parent d98cdbabf6
commit 25ced3f34d
3 changed files with 7 additions and 4 deletions

View file

@ -15,7 +15,6 @@ parser = argparse.ArgumentParser()
parser.add_argument("html_file",
help="html or website to view in w3m in an iterm2 split")
args = parser.parse_args()
print()
async def main(connection):
@ -28,7 +27,8 @@ async def main(connection):
# Create split pane to the right and make the right one active
left_pane = app.current_terminal_window.current_tab.current_session
right_pane = await left_pane.async_split_pane(vertical=True)
right_pane = await left_pane.async_split_pane(vertical=True,
profile="Minimal Profile")
# send the command to the newly created split
w3m = ("w3m -sixel -o auto_image=TRUE -o display_image=1 -T text/html"