Reputation: 1824
I installed "Terminal IDE" on my phone. However, I would like to copy certain URLs into a vim file. This is what I am currently doing:
I have tried to paste in bash, paste in vim using P
, and "*p
, and I even tried to look for where the clipboard is stored. I do not have a rooted phone so that last part was kind of difficult.
Is there a way to get stuff from the Android clipboard into Terminal IDE or any terminal emulator?
I have version 2.3.4
Upvotes: 8
Views: 29766
Reputation: 9
/data/local/nhsystem/kali-arm64/root/Downloads/
Here is ur root download folder create a txt file paste ur copied text and type cat <your_file> Select text and paste in terminal
Upvotes: -1
Reputation: 236
Android Terminal Editor (Jack Palevich), in the Android market, allows you to paste content saved to your clipboard (on the actual device) into the command line.
In your case, after copying the URL from the browser, open up the terminal and long-press anywhere in the terminal until a box pops up with a list of options. The list should have a paste option, and it will paste the last thing added to your clipboard.
Also, you don't need root to use it for basic commands.
Upvotes: 4
Reputation: 17833
friend as direct way .. I don't think its possible .. but here two ideas how you may implement your target: First ONE: programmatically:
1-copy any address you'd like from browser and anything..
2-develop an application/service copies your copied text to logCat
ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
String copytext=clipboard.getText().toString();
Log.v("URLS", copytext);
3-so link on logcat, filter it by URLS and get all your links .. 4-may be you will need to trim text from other information you got in log cat, if you hate this, you can send results to file by:
adb logcat -s URLS > fileName
so you may find this file where you execute this command, lets say @ /home/user/, so file @ this folder .. if you need to go further, develop a program(in any language) to read this file and get the last line, and add it to your clipboard on your operation system.
so you have it ..
Second solution:with browser. just sync your chrome browser with you gmail.. bookmark link and you have @ your desktop chrome browser :-) and thats done.
good luck...
Upvotes: 2