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,861 other subscribers

Archive for the ‘Text Editors’ Category

Running/execute an Atom.io command not present in the menu/toolbar isn’t that obvious

Posted by jpluimers on 2018/02/15

Took me a while to figure out that you can run any command in Atom.io, even if it’s not in the menu or toolbar:

This isn’t very clear in Atom, but what you’re after is this menu item: Toggle Command Palette

Mac OS X: Shift+Command+P:

Mac OS X: Shift+Command+P

Windows: Ctrl+Shift+P

Windows: Ctrl+Shift+P

–jeroen

via: [WayBackWhere can I run Atom command? – Stack Overflow

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

Reinstalling atom.io: getting the user-installed package list then re-installing it.

Posted by jpluimers on 2018/01/02

Sometimes your Atom installation gets so unstable that the quickest solution is a reinstall. For that you need to get a list of user-installed packages, then re-install them.

On Windows your Atom Package Manager apm is here (but not in the path), where the first is version specific and the latter the most recent version:

%LOCALAPPDAT%\atom\app-1.18.0\resources\cli\apm.cmd
%LOCALAPPDATA%\atom\bin\apm.cmd

On Mac OS X, it is here and in the path:

/usr/local/bin/apm
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm

Save your packages:

apm list --installed --bare > package-list.txt

Install packages:

apm install --packages-file package-list.txt

For my own memory, the settings folders:

  • Windows: %USERPROFILE%\.atom
  • Mac OS X: ~/.atom

–jeroen

via:

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

github – Open Atom editor from command line – Stack Overflow

Posted by jpluimers on 2017/11/17

I have the Atom editor and was wondering how you can open a file or folder from the terminal in Atom. I am using a Mac. I am looking for a way to do this: atom . (opens folder) atom file.js (

The answer to it isn’t any good any more (since then, Atom has evolved), but this comment works splendid:

I solved the issue by choosing “Install Shell Commands” under the “Atom” menu.

It will add a script in /usr/local/bin/atom that starts Atom with the parameters you entered.

Thanks [WayBackrxgx!

[WayBackgithub – Open Atom editor from command line – Stack Overflow

–jeroen

PS: Reminder to self to add a screenshot.

Posted in Apple, atom editor, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, macOS 10.12 Sierra, OS X 10.11 El Capitan, Power User, Text Editors | Leave a Comment »

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 »

How does one configure Notepad++ to use spaces instead of tabs? – Stack Overflow

Posted by jpluimers on 2017/09/27

The StackOverflow screenshot it out-dated so a new one is below.

  1. In the Settings menu, choose Preferences...
  2. In the Preferences dialog, choose Language
  3. Ensure the (default empty) Replace by space checkbox is checked
  4. Optionally change the Tab size from 4 to another suitable value

I prefer these settings: 

via: How does one configure Notepad++ to use spaces instead of tabs? – Stack Overflow [WayBack]

–jeroen

Read the rest of this entry »

Posted in Notepad++, Power User, Text Editors, Windows | 1 Comment »

How to change the Notepad++ editor’s font – via Notepad++ Community

Posted by jpluimers on 2017/09/04

Paraphrased Steps (thanks guy038); Screenshots below.

  1. Choose the menu option Settings  -> Style Configurator…
  2. In the Style configurator dialog, choose the Global Styles under Language
  3. Then, under Style, select the Default Style (this won’t work for Global Override unless you have that one override everything)
  4. Finally, in the Font Style area, you can select your favourite Font name and/or its Size and apearance (Bold, Italic, Underscore)
  5. Confirm with Save & Close when you like the new font settings.

The cool thing is that if you have a file open, you will immediately see the effects even before pressing Save & Close.

Source: No way to change editor’s font? | Notepad++ Community [WayBack]

–jeroen

Read the rest of this entry »

Posted in Notepad++, Power User, Text Editors, Windows | 1 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 »