mobile-shell / mobile-shell/mosh
Unable to paste code with indentation into mosh
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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