The best free editors for development and documentation: Atom

Text editors as well as development tools have become quite a lot and it's difficult to choose from them necessary. I suggest that you familiarize yourself with the best representatives of this class of programs from those that are available for Linux OS and have open source code.
 
The best free editors for development and documentation: Atom
 
The opening of the season, or rather of the seasons, is Atom, because of the incredible combination of modern design, flexibility and extensions. However, in the pursuit of features developers overlooked a small, but important detail because of which a lot of inconvenience.
somehow wrote about it in the context of comparing text editors and development tools for Windows, but since then, a lot of water has flowed and users of Linux OS will not be surprised by the fact that a good editor is also free.
 
The installation of the editor is no different from installing any other package from the repositories, but for Gentoo Atom has not yet stabilized.
 
(2:53) $ eix -e atom
* app-editors /atom
Available versions:
(0) ~ ???
(beta)[M]~ ???_beta3
{test PYTHON_TARGETS = "python2_7"}
Homepage: https://atom.io
Description: A hackable text editor for the 21st Century

 
You can set an unstable option by first writing
 
app-editors /atom ~ amd64
 

to file /etc/portage/package.accept_keywords . However, this gives only an old version.


 
    (2:56) $ sudo emerge -av app-editors /atom
These are the packages that would be merged, in order:
Calculating dependencies done!
<зависимые пакеты>
app-editors /atom-??? :: gentoo

 

Therefore, I suggest cutting corners a little. Download the last deb file and install it with the command dpkg , which is also available in Gentoo.


 
    (2:62) $ sudo dpkg --no-force-depends -i atom-amd64.deb    

 

The command issues a cloud of warnings, but the editor is quietly installed as a result.


 

Features of the atomic project


 

The short line of the project is the slogan a hackable text editor for the 21st Century . This can be translated as Easily reprogrammed text editor for the 21st century .


 

It is this feature that is probably key. Atom not only has a powerful tool for the needs of a technical writer and developer, but also has the ability to change and customize anything for you.


 

You can even change the appearance of the editor, if you know jаvascript, for a large part of the readers of Huber it's not a matter of judging by cloud tags . In fact, everything is a bit different


 

Almost all settings are stored in CSON files and look something like this:


 
    "*":
core:
telemetryConsent: "limited"
themes:[
"one-dark-ui"
"base16-tomorrow-light-theme"
]
"exception-reporting":
userId: "b5dd74b8-b105-47ef-b89b-4e0f21b8d946"

 


 

If it reminds you of JSON, then you are not so far from the truth, it's his cousin, so to speak. Perhaps CSON not so verviglazny more readable due to the fact that it has less brackets, there is no need to take everything in quotes and screen. For comparison, the same object is in two dialects.


 
JSON object [/b]
    {
"greatDocumentaries":[
"earthlings.com",
"forksoverknives.com",
"cowspiracy.com"
],
"importantFacts": {
"emissions": "Livestock and their byproducts account for at least 3?000 million tons of carbon dioxide (CO2) per year, or 51% of all global greenhouse gas emissions.nGoodland, R Anhang, J." Livestock and Climate Change: What if the key actors in the climate change were the pigs, chickens and cows? "nWorldWatch, November /December 2009. Worldwatch Institute, Washington, DC, USA .pp 10-19.new http://www.worldwatch.org/node/6294" ,
"milk": "?000 gallons of water are required to produce 1 gallon of milk.n" Water trivia facts. "United States Environmental Protection Agency.nhttp: //water.epa.gov/learn/kids/drinkingwater/water_trivia_facts.cfm # _edn11 ",
"more": "http://cowspiracy.com/facts"
}
}

 

And the same thing in CSON.


 
CSON object [/b]
    # Comments !!!
# An array without commas!
greatDocumentaries:[
'earthlings.com'
'forksoverknives.com'
'cowspiracy.com'
]
# Object without quotes!
importantFacts:
# Stake out a few lines! Do not escape quotes!
emissions: '' '
Livestock and their byproducts account for at least 3?000 million tons of carbon dioxide (CO2) per year, or 51% of all worldwide greenhouse gas emissions.
Goodland, R Anhang, J. "Livestock and Climate Change: What were the key actors in the climate change were pigs, chickens and cows?"
WorldWatch, November /December 2009. Worldwatch Institute, Washington, DC, USA. Pp. 10-19.
http://www.worldwatch.org/node/6294
'' '
milk: '' '
?000 gallons of water are required to produce 1 gallon of milk.
"Water trivia facts." United States Environmental Protection Agency.
http://water.epa.gov/learn/kids/drinkingwater/water_trivia_facts.cfm#_edn11
'' '
more: 'http://cowspiracy.com/facts'

 

Styles edited through the changes * .less files. For example, in order to change the status bar status is necessary in the file ~ /.atom /styles.less prescribe.


 
    .status-bar {
color: white;
background-color: black;
}

 


 

By the way, why * .less instead of * .css ? Less is a preprocessing processor for CSS. However, it is possible with a calm soul in * .less files to write usual CSS styles, the handler perceives both variants equally.


 

Key bindings Also edited by editing the CSON file, the settings are stored in the file. ~. /atom /keymap.cson


 
    'atom-text-editor':
'enter': 'editor: newline'
'atom-text-editor[mini]input ':
'enter': 'core: confirm'

 

This is the setting for the two different contexts of the key. Enter : in edit mode and in the selection mode of several hint options.


 

Global settings are specified in the file ~. /atom /config.cson


 


 

In addition, you can set the settings separately for each AP, or markup language from the same file ~. /atom /config.cson . Something can be configured through the graphical interface.


 


 

Unlike global and point settings, the initialization script is ~. /atom /init.coffee is written on CoffeeScript . In the screenshots 2-4 you can see where to edit the script: Edit ⇒ Init Script . The code in the initialization script has full access to Atom API , it can also be written in plain jаvascript and called ~. /atom /init.js .


 

Packages and modularity


 

No editor is perfect, but if it has a clear API for extensions, then it can be sufficiently approximated to the ideal. I did not have enough extensions for editing technical texts:


 
  •  
  • asciidoc-preview  
  • wordcount  

 

and they are installed even without restarting the program.


 


 

Extensions Atom it is convenient not only to consume, but also to create. For this there is package-generator , in the menu it can be called from Packages ⇒ Package Generator . Calling the Extension Wizard utility will result in the creation of the skeletal structure of the new project in ~ /.atom /packages .


 
    my-package /
├ grammars /
├─ keymaps /
├─ lib /
├─ menus /
├ spec /
├─ snippets /
├─ styles /
├─index.js
└─ package.json

 

GitHub-ness


 

Another highlight of the editor is that his author is sawing not anybody on GitHub, but GitHub itself. Due to this, Atom is initially integrated with GItHub th through the same extension.


 


 

List of functions git accessible via the tab Git :


 
  •  
  • Initialize  
  • Clone  
  • Branch  
  • Stage  
  • Discard  
  • Commit  
  • Amend  
  • Push  
  • Pull  
  • Resolve conflicts  
  • View Pull Requests  

 

Through the key bindings, the same functions are available.


 

Actually editor


 

Editing the code, or technical text in Atom is very convenient, except for one misunderstanding, which I will say in the subtitle of the tar spoon. There are all the necessary tools: automatic addition and podstalkki, snippets, syntax checking.


 


 

For the desired Markdown authors, there is a preview, syntax highlighting and table creation via table + tab .


 
    | | Header One | Header Two |
| | : ------------- | : ------------- |
| | Item One | Item Two |

 
Disadvantages of
 
The most important of them is a lazy spell-check, alas for another it can not be called. Checking the spelling is a complete seam, when it's not about the AP, but about the ordinary language. For some reason I do not understand, spelling does not work for the Russian language for Markdown, Asciidoc, and other types of files. It would seem a small flaw, but because of it you can not normally use the editor.
 
There is also no support for
R
, the same Vim does not have the listed deficiencies, although not "editorth century of the 21st century ".
 
In general, I think Atom is a useful and useful editor who will mature to the right stage and be able to become if not a replacement for Vim, then at least his senior assistant.
+ 0 -

Add comment