The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for the ‘atom editor’ Category

Issues are disabled at tohosokawa/rst-preview-pandoc: reStructuredText preview in Atom using Pandoc

Posted by jpluimers on 2017/11/08

No more issue reporting: tohosokawa/rst-preview-pandoc: reStructuredText preview in Atom using Pandoc

This is a very useful Atom.io package, but it has one big issue: when you close a preview window then re-opening it, the settings are restored to the default -frst -thtml --webtex ones.

As I’m an Atom.io n00b, I need to dig into this another time.

Notes:

I want the defaults to include --standalone --toc --toc-depth=5 or at least --standalone --toc.

For now I’ve hardcoded them.

–jeroen

Posted in atom editor, CoffeeScript, Development, JavaScript/ECMAScript, Power User, Scripting, Software Development, Text Editors | Leave a Comment »

The strange case of some applications not being able to copy/paste on the Mac OS X clipboard

Posted by jpluimers on 2017/07/19

I’ve not tracked down the cause yet, but these seem to be related:

  1. The Mac OS X build of Atom IO
  2. WinBox v 3.4 WineBottle version from Winbox for Mac in an embedded Wine environment – Joshaven.com
  3. pbcopy / pbpaste that allow command-line copy/pasting
  4. none of these being able to copy/paste any more and return error level 1 like terminal – pbcopy exits code 1, no error message – Ask Different but not even running tmux or screen which means this solution does not apply: ChrisJohnsen/tmux-MacOSX-pasteboard: Notes and workarounds for accessing the Mac OS X pasteboard in tmux sessions.
  5. I didn’t have Mouse Keys turned on
  6. Other applications (Chrome, FireFox, TextEdit, Finder, etc) still being able to copy/paste between each other

I’ve “fixed” 4. by doing this as recommended at osx – Copy and Cut sometimes don’t work – Ask Different:

launchctl list | grep com.apple.pboard

If the pboard daemon is running, then stop and start it. If it’s not running, start it:

launchctl stop com.apple.pboard
launchctl start com.apple.pboard

Now 4. works again if I restart each application, 6. still works, but these applications still cannot copy/paste to 1. 2. and 3.

What does work is a full reboot, but that takes a while (especially Chrome re-loading lots of Windows: I need to get more organised here).

It might be that I need to restart each application in 6.

Grrr…..

–jeroen

Posted in *nix, *nix-tools, Apple, atom editor, Hardware, iMac, Internet, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MikroTik, Network-and-equipment, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User, routers, Text Editors, tmux | 4 Comments »

Printing from the Atom editor

Posted by jpluimers on 2017/05/04

Atom is a great editor, but printing from it is still lacking, even though the issue has been opened again.

There is export-html, but it only prints the current source code, not the built-in Markdown Preview or add-on reStructuredText Preview Pandoc packages “Toggle Preview” views.

By name print-atom looks promising, but contrary to the advertised “Print current atom window using print dialog”, it prints the whole Atom UI, which is of no use at all.

The little red icon isn't an adornment. Even though it doesn't look like a button: It's clickable!

The little red icon isn’t an adornment. Even though it doesn’t look like a button: It’s clickable!

Then there is broadcast which at first only worked for me in 1.6.2 but not in 1.7.2. I even removed the whole ~/.atom directory to get it working: to no avail. It finally occurred to me that in the lower right there was a tiny red icon (which was blue in 1.6.2).

Below is the process to fix broadcast, and after that you can live-view from your web browser through http://localhost:8000 either of the rendered source text in the Atom editor, or the Preview pane in the Atom editor.

Even though hardly documented, these are the broadcast settings:

Only enable

Only enable “Broadcast To Others” if you want to access port 8000 from another machine.

Getting broadcast to work again

  • wasn’t caused by changes in the theming between 1.6.2 and 1.7.2 (where lots of colours changed)
  • wasn’t just an adornment: it’s in fact clickable

As soon as you click it you see this in the right pane:

Read the rest of this entry »

Posted in atom editor, Development, Lightweight markup language, MarkDown, Power User, reStructuredText, Software Development, Text Editors | Leave a Comment »

Launch & Run Multiple Instances of Any Application in Mac OS X

Posted by jpluimers on 2017/04/17

I needed a second instance of Atom to run on a second monitor:

open -n /Applications/Atom.app

Or even shorter:

open -na Atom

I got there via: Launch & Run Multiple Instances of Any Application in Mac OS X

The reason is that searching for Mac OS X start second Atom instance does not reveal satisfactory results, as the tips in these links all fail:

–jeroen

 

Posted in Apple, atom editor, Mac OS X / OS X / MacOS, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User, Text Editors | Leave a Comment »

atom-keyboard-macros: tried, doesn’t work reliably – anyone who knows a better one?

Posted by jpluimers on 2016/09/28

One of the things I missed in the Atom editor is a keyboard macro recording/playback.

I tried atom-keyboard-macros but it doesn’t work reliably.

Not sure where it fails as the failure patterns are inconclusive.

Anyone having a better experience?

–jeroen

Posted in atom editor, Development, Hardware, Keyboards and Keyboard Shortcuts, KVM keyboard/video/mouse, Power User, Scripting, Software Development, Text Editors | Leave a Comment »