Ish: Feature Request: Copy to and paste from clipboard

Created on 3 Nov 2018  Â·  18Comments  Â·  Source: ish-app/ish

Currently, it is possible to copy selected text to a clipboard by tapping “Copy” on the context menu, but it seems that it is impossible to paste from it on iSH.

bd0bd83f-a3d0-4927-aef5-36ce444fccad

I believe both of them are essential. Besides, keyboard shortcuts like CMD+V are also welcome if possible.

  • [x] Custom popup menu
  • [x] Paste button in toolbar
  • [x] Hardware keyboard shortcut

Most helpful comment

Looking at the blink source code, a custom popup menu doesn't seem too hard. I've added a task list to the issue.

All 18 comments

Pasting is indeed impossible, mostly because I'm not sure what the best UI would be for it. Long press maybe? Or a button in the toolbar?

I prefer a button in inputAccessoryView or the standard keyboard’s paste button like the following image.

0c0eeeb8-a7dc-491b-bd10-0757ca5c4cb4

In the other hand, for instance, Blink has a “Paste” item in the context menu. It’s a little bit weird, but it works.

7db925c1-ea84-4206-bbdd-18196a78971f

Looking at the blink source code, a custom popup menu doesn't seem too hard. I've added a task list to the issue.

I got the context menu working.

Hardware keyboard shortcut apparently comes for free with context menu support.

Context menu is great, though very difficult to bring up without a keyboard. I agree with what @kkk669 requested, if possible.

In the latest beta I am no longer able to copy after selecting some text.

I have the same issue, only a “paste” option appears.

I guess because WebKit is no longer the first responder. I'll have to implement -copy myself, which shouldn't be hard.

In the latest TestFlight build 35, when I just long press text to select it on iSH, it will be copied into the pasteboard even if I don’t tap the “Copy” item. Is this a bug?

I’m using 3rd generation 12.9” iPad Pro with iOS 12.1.1.

Sent with GitHawk

@kkk669 I cannot reproduce it.. I am iOS 12.1 tho, it might be a small bug with iOS 12.1.1

@ELChris414 I also reproduced it on iPad Air 2 w/ iOS 12.1 and iPhone XS with iOS 12.1.1. So, it’s not iOS 12.1.1 bug.

Sent with GitHawk

How to reproduce it: https://youtu.be/OoDOArAkhSg

  1. Select text
  2. Tap “Paste” item

Sent with GitHawk

Saw the video, still cannot reproduce. This is weird. It just keeps pasting my last copied, it does not renew the copy

I can replicate this on iOS 12.1.1. Please, create a new issue for this. Thanks

@Mnpn03 Thanks. I created #174.

There's now a paste button on the toolbar, so I'll close this.

Now that iOS 13.7 has introduced a copy/paste dialog within the touch-keyboardless full screen view of the scrollback, I totally forgot about iSH’s button and was absentmindedly trying to paste by using the floating dialog. It is possible, but very tricky; the kb has to stay hidden, which it thoroughly dislikes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MasonProtter picture MasonProtter  Â·  3Comments

m4rkw picture m4rkw  Â·  5Comments

abraxxa picture abraxxa  Â·  4Comments

tommythorn picture tommythorn  Â·  4Comments

travis-mark picture travis-mark  Â·  5Comments