The Wiert Corner – irregular stream of stuff

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

  • My badges

  • Twitter Updates

    • RT @michaelbolton: 1) Your periodic reminder: a test is not something we *write*. We write text and programs. A test is an experiment you *… 22 minutes ago
    • RT @BiancaPrins: Voor ons allemaal, een #draadje om tot het einde te lezen..... Juist nu (Volgt nog meer in de komende dagen) https://t.co… 22 minutes ago
    • RT @McKayMSmith: 90) His entire life, Ben has chosen to place his faith in the law. “Law, not war” has been his motto for decades. “I hav… 23 minutes ago
    • RT @McKayMSmith: 82) “It's possible to take the most fundamental, strongly held ideas and change them. What makes people change? Sometimes… 24 minutes ago
    • RT @McKayMSmith: 65) “Now I will tell you something very profound, which I have learned after many years. War makes murderers out of otherw… 27 minutes ago
  • 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,640 other followers

Archive for the ‘Text Editors’ Category

Omg this is awesome. Synchronize settings etc between Atom installs! …

Posted by jpluimers on 2018/02/27

[WayBack] Omg this is awesome. Synchronize settings etc between Atom installs!https://atom.io/packages/sync-settings#atomio – Roderick Gadellaa – Google+

I revisited this and it’s awesome.

Note that – as usual – when you sync settings for packages that have external dependencies, these dependencies depend on your platform of choice.

Which means that if for instance depend on Pandoc and you use both a Mac and Windows, you need Pandoc installations plus all dependencies on those platforms before syncing your settings.

–jeroen

Posted in Atom, Power User, Text Editors | Leave a Comment »

Atom.io package pandoc convert requires pdflatex for converting to pdf

Posted by jpluimers on 2018/02/20

It’s a bit hard to copy the error messages that only last a second or so, but I finally managed to:

File 0Project 0No Issues20170204.rst1:1
LF19 L | 168 W | 2329 CUTF-8reStructuredTextmaster1
[pandoc-convert]
Command failed: /usr/local/bin/pandoc --standalone --to=latex --output=/Users/jeroenp/20170204.rst.pdf /Users/jeroenp/20170204.rst pandoc: pdflatex not found. pdflatex is needed for pdf output.

In order to have pdflatex on my Mac OS X installation, I had to do this:

brew install Caskroom/cask/mactex

This will install pdflatex as

/Library/TeX/texbin/pdflatex

–jeroen

Posted in Atom, Power User, Text Editors | Leave a Comment »

When Atom crashes you’re guided to use safe-mode, but safe-mode cannot disable packages

Posted by jpluimers on 2018/02/15

When you get a Window like this upon Atom.io start, and starting to report a bug, they guide you to a “start Atom in safe mode first, then try to disable all packages to sort out if it’s a package issue” and point to [WayBackDebugging: using safe mode.

The problem here is that when you start Atom in safe mode (from the console using atom --safe) then in the preferences you cannot disable packages: clicking on the “Disable” button has absolutely no effect.

This was with atom --version

atom --version
Atom : 1.12.8
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0

I worked around this by editing ~/.atom/config.cson as that already contained a section like this:

  core:
    disabledPackages: [
      "nav-panel"
    ]

So I wrote a poor-mans little script that generated the inner portion of that block:

pushd ~/.atom && ls -1d packages/*/ | sed 's/packages\// "/g' | sed 's/\//"/g' && popd

which got me this nice list:

"atom-beautify"
"atom-html-preview"
"atom-keyboard-macros"
"atom-wrap-in-tag"
"autocomplete-xml"
"broadcast"
"close-tags"
"color-picker"
"counter"
"emmet"
"export-html"
"file-icons"
"git-plus"
"language-batch"
"language-bbcode"
"language-innosetup"
"language-pascal"
"language-plantuml"
"language-restructuredtext"
"language-routeros-script"
"linter"
"nav-panel-plus"
"nav-panel"
"omnisharp-atom"
"pandoc-convert"
"plantuml-preview"
"print-atom"
"rot13"
"rst-preview-pandoc"
"sort-lines"
"sync-settings"
"tabs-to-spaces"
"xml-formatter"
"xml-tools"

From there, I did a binary search for the offending package: broadcast so I’ve filed an issue there.

–jeroen

Read the rest of this entry »

Posted in Atom, Power User, Text Editors | 1 Comment »

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, 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, Development, JavaScript/ECMAScript, Node.js, Power User, Scripting, Software Development, Text Editors | Leave a Comment »

 
%d bloggers like this: