Atom (text editor): Difference between revisions

From ArchWiki
(Archive page, flagged for a week)
Tag: Replaced
 
(40 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[[Category:Development]]
[[Category:Text editors]]
[[ja:Atom]]
[[zh-hans:Atom]]
[https://atom.io/ Atom] is an open-source text editor developed by GitHub that is licensed under the MIT License. It is written predominantly in CoffeeScript and JavaScript and uses Node.js as its runtime environment. It is extensively extensible via use of over 5,000 available packages and 1,000 themes. It uses its own package manager for managing these packages and themes, apm.


== Installation ==
#redirect [[ArchWiki:Archive]]
 
[[Category:Archive]]
The following packages provide Atom:
 
* {{Pkg|atom}}
* {{AUR|atom-editor-bin}}
* {{AUR|atom-editor-git}}
* {{AUR|atom-editor-beta}}
* {{AUR|atom-editor-beta-bin}}
* ''atom'' from the unofficial [[Unofficial user repositories#atom|atom]] repository. {{Note|Bugs regarding binary packages from the ''atom'' repository can be reported on [https://github.com/tensor5/arch-atom/issues GitHub]. Bugs regarding Atom itself should be reported upstream.}}
 
== Packages ==
Its packages can be installed from within Atom itself or from the command-line using the apm command. The correct syntax of apm is:
 
$ apm install ''package_name1'' ''package_name2'' ''package_name3'' ...
 
Several packages come preinstalled with Atom, notable packages that are not, include:
* [https://atom.io/packages/build build] which enables Atom to compile source code.
* [https://atom.io/packages/git-plus git-plus] which allows one to manage git repositories from within Atom.
* [https://atom.io/packages/language-archlinux language-archlinux] which provides syntax-highlighting for PKGBUILDs (if installed along with the [https://atom.io/packages/language-unix-shell language-unix-shell] package) along with support for running several tests and other actions on PKGBUILDs without a terminal (including [[makepkg]], [[namcap]], ''updpkgsums'', etc.).
* [https://atom.io/packages/markdown-writer markdown-writer] which turns Atom into an efficient Markdown writer.
* [https://atom.io/packages/script script] which enables Atom the ability to run scripts, based on file names.
* [https://atom.io/packages/terminal-fusion terminal-fusion] which adds an embedded terminal window to Atom.
 
== Troubleshooting ==
=== Environment variables not sourced ===
You may experience some problems with packages using environments variables, like [https://atom.io/packages/go-plus go-plus] ({{ic|$GOPATH not found}}). Moreover, it only appears when atom is opened by your file manager. (Because this one is DBUS-spawned, thus it does not inherit variables defined in {{ic|.bashrc}}).
A solution is to make available your variables to DBUS-spawned processes, by following [[Systemd/User#Environment variables]].
 
More info on this issue in [[Environment variables#Per user]].
 
=== Unable to delete files ===
By default, [https://electron.atom.io/ Electron] apps use {{ic|gvfs-trash}} to delete files. For users not using [[GNOME]] the {{ic|ELECTRON_TRASH}} environmental variable can be used to specify which trash utility should be used.
 
For example, for deleting files under [[Plasma]]:
$ ELECTRON_TRASH=kioclient5 atom
 
At the time of writing, Electron supports {{ic|kioclient5}}, {{ic|kioclient}}, {{ic|trash-cli}} and {{ic|gvfs-trash}} (default). More info is available at this [https://github.com/electron/electron/pull/7178 Github pull request page].
 
=== Black window content on startup ===
With some video devices, such as the one for [[VirtualBox]] guests, Atom wont render the window content without GPU acceleration disabled by starting it with the {{ic|--disable-gpu}} flag, or by editing {{ic|.atom/config.cson}} and adding/changing the config parameter {{ic|useHardwareAcceleration: false}} under the {{ic|editor}} section.
 
=== Spell Checker not working ===
Make sure you have hunspell installed with a [https://www.archlinux.org/packages/?sort=&q=hunspell&maintainer=&flagged= suitable dictionary pack].

Latest revision as of 13:41, 6 February 2024

Redirect to: