mobile-shell / mobile-shell/mosh

Unable to paste code with indentation into mosh

Open
#1,066 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
14.5k
Forks
865
PR merge metrics
No merged PRs in 30d

Description

I get errors when I paste indented code from my Mac into mosh. The indentations add up each line and the text gets further out with each indented line. This makes my Python code not run.

Use case: I often use Spark clusters from the master node via ssh and want to use mosh to do the same without worrying about the connection dropping and losing my work. As far as connections staying up it is great, but I can't paste code from a file and watch it run, which kills me. I end up trying to remove indentation and do things all in one line, and finally give up and use ssh, which drops connections :( I've tried screen and tmux.

Is there a way to get this to work through mosh? It works seamlessly through ssh.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the indentation growth when pasting Python code from a Mac into a mosh session, then compare the same paste through ssh and with screen or tmux. Done means indented code pastes and runs correctly through mosh without the indentation accumulating on successive lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.