Pasting into web evernote appears double-spaced from OSX Terminal - macos

On osx I want to copy output on terminal screen to evernote.com (the web version). I can do that, but it appears double-spaced.
However, if I take the same terminal output and instead paste into another editor, say Atom, then copy that same text from Atom and back into Evernote (the web version), the text appears normally spaced.
What's up???
Opening chrome developer tools, shows in the double-spaced case, the text is surrounded by paragraph tags, <p>, but in the normal case, the text is surrounded by line break, <br>, tags.
Is the problem some setting in Terminal, the clipboard itself, or Evernote?

It may be pasting with formatting, try right clicking and paste as plaintext or paste without formatting. FWIW the web version currently uses TinyMCE as the editor.

Didn't know about right-clicking within Evernote to paste content, as akhaku mentioned, so tried that, found no plain text option, but the "Paste and Match Style" did the trick.
Here's an image capture from the web interface to Evernote.
Notice the top half appears double-spaced. This was done with a simple copy (highlight with mouse then copy via Command-C) in the OSX terminal into Evernotes' web editor via OSX paste (Command-V).
The bottom half shows the result after right-clicking instead within Evernote, and choosing "Paste and Match Style".
Snapshot of results of pastes into Evernote

Related

Using highlighting and middle click for copy/paste in RStudio

In linux I frequently highlight text with the mouse to copy, and middle click somewhere else to paste. In RStudio, this does not work, forcing the use of Ctrl+C and Ctrl+V or right-click menus. I often want to quickly copy segments of text between the console, editor, and browsers. Is there a way to get highlight+middleclick working?
This problem has been noted by the RStudio developers and added to their list. Unfortunately, that was five years ago, so don't hold your breath...
There are a lot of alternatives to RStudio. I haven't tried them all but RKward supports middle clicks.

Copy to clipboard from IPython using Windows 7

I am running IPython on Windows 7 and can use the %paste magic command to paste from the clipboard. However, I cannot copy from IPython to the clipboard. I want to copy code snippets from IPython and paste them back to a text editor.
Anyone know a fix for this?
Found this gist to add a %copy magic command, my fork adds supports osx/linux/windows platforms.
I have yet to test it on windows, so please tell me if you encounter any issues.
As mentioned by #AdrianRatnapala, you can right-click in the terminal window and select Mark, mark the code snippets you want to copy, and then right-click (the marked content is copied to the clipboard when you right-click).
A more "permanent way" to use this feature is to right-click on the title bar of the terminal window and choose Properties. Under the Options tab, tick the box next to QuickEdit Mode and save this setting.
A third option is to use IPython's Qt Console. You can use this by entering ipython qtconsole in the command prompt.
A real permanent mode is to do what sodd has told, but a little bit different:
Right click in the top of the shell window, but use default instead properties option, also select options and Quick edit mode. Now this setting will survive in the next shell activations.
So it's very easy to copy and paste
Drag and drop to draw a rectangle inside shell screen and press Enter. The content is is in Clipboard. After, if you can paste this in the shell it's just press Right key or outside, use the usual Ctrl+V.
The cool thing is that you can now omit the number of commands in the copy.

save webpage as a url file and open with chrome

How can I simply save a webpage in chrome as a text based url file that when clicked in finder opens the webpage in chrome?
Here is what I have so far found and tried: the following code:
[InternetShortcut]
URL=http://http://stackoverflow.com/
(it needs an empty line at the end too but I couldn't get that shown in the code above). When saved as a .url file and kept simply in my filesystem, and click on it it opens the webpage directly in safari (since I am on a mac with osx). I want this to open in Chrome, but changing the "open with" settings opens the file as a text file; it doesn't execute and take me to that webpage.
I was in your exact same situation Geoff, and I was able to find this after digging through a ton of forums.
Open up Chrome/Firefox and go to the web page you were wanting to save.
Look at the address bar.
Find the padlock icon that is just to the left of your URL string. It may look like a page, or a lock, or a lock with a yellow triangle.
Click and drag it to the Desktop and then drop it.
This will create a webloc file, and for me it shows a Safari icon as the file image, even says Safari is the default program to open it. However, when I click on it, it always opens up in Chrome! :)
Hope this helps.
Using Chrome Version 29.0.1547.76
OSX 10.9.2
https://stackoverflow.com/a/22768604/10258377
Thank you #AZRckCrwler.
I would like to make it easier to understand base on his answer.
Find the padlock icon that is just to the left of your URL string. It may look like a page, or a lock, or a lock with a yellow triangle.
You can see the circle that I marked, then drag & drop here.

Open an empty editor in XCode

Sometimes I'll have a blob of text in my clipboard that I want to paste into a text file. Most often I open up another text editor (like TextWrangler) and paste it in there, but it seems a little clunky switching between that and xcode. Is there a way to open an empty text editor in Xcode without creating a new file? I don't want to save anything, I just want to look at the text I've copied.
That's not possible unfortunately. (as of Xcode 4.4).

How to prevent Firefox from copying numbers or #'s when copy and pasting on a Mac?

When I copy and paste from a website that formats their text using <*li>, I get numbers or #'s when I paste into any text editor on my Mac (running Snow Leopard). Is there anything I can get that is equivalent to Windows Notepad, that will NOT copy the formatting, and just give me the text? Example of a site that I copy/paste from that gives me #'s or numbers:
http://themeshaper.com/wordpress-theme-sidebar-template/
Use Paste As Plain Text in Word or Open Office or use a pure text editor like SciTE.
Most Cocoa applications that have a text editing interface have a Paste and Match Style option in the Edit menu. This will paste the text without pasting formatting.

Resources