Как сделать консоль в атоме

Обновлено: 08.07.2024

The latest stable version of atom-console is available through Atom's package manager in the settings or via apm install atom-console .

Install the latest Github release (may be unstable) with:

Usage

Toggle atom-console with alt-ctrl-x , then enter any command specified within Atom. To see all available commands, open atom-console and type 'help'. To search for commands, type 'find'. Auto-complete with tab .

Some currently included non-Atom commands include commands bound to all grammar options in Atom ( [lang]-mode ) and package-install . A list of all built-in custom commands can be found in the commands section.

As development continues, more custom commands will be added, especially ones inspired by Emac's M-x console.

Commands

Atom Console contains all of Atom's commands available via the command palette, as well as a growing list of custom commands, such as [lang]-mode , package-install . and shell .

For more information and a complete list of custom commands, see the command documentation.

Keymaps

Keymap Effect
ctrl-alt-x Toggle atom-console
ctrl-alt-g Stop currently executing tool
ctrl-alt-c Focus atom-console

Contributing

If you've developed a neat tool that you think everyone would love, feel free to submit a pull request!

Troubleshooting

If some commands do not work immediately after installation, try reloading Atom with ⌃⌥⌘L (ctrl-option-cmd-L) and using atom-console .

License

This package is available as open source under the terms of the MIT License.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

(a fork of super-awesome atom package - thedaniel/terminal-panel) Plugin for ATOM Editor.

Short note

This project uses jquery-autocomplete-js for autocompletion.

Development

This project is in alpha stage. Please contribute this project if you liked it. All the help is welcome. Thank you.

Usage

Just press shift-enter or just Ctrl + ` (control + backtick) and enjoy your cool ATOM terminal :D Try pressing the ctrl in the terminal for dynamic suggestions list!

Screenshot

Terminal with fancy file links and interactive interface.

Fancy custom highlighting rules.

There's also nice looking easy-to-use command finder dialog (just to search your custom commands and terminal build-ins):

A screenshot of atom-terminal-panel package

Feature

  • multiple terminal
  • colorful status icon
  • kill long live process
  • fancy ls (with custom extension colouring!)
    • Do you wanna have a blue or a green executables? Do the yellow shell scripts look nice?
    • Just like in normal, native terminal.
    • Just type ? , easy right?)
    • Do you want a current time, computer name or a cwd in your command prompt? There's no problem.
    • You don't have to play with dirty shell script files!
    • Now you can quickly access your command just by pressing one button
    • To add new commands just write your own /or download existing plugin!
    • And copy it to the ./commands directory! - Easy, right?

    And a lot more! See it by yourself!

    Plugins

    This ATOM plugin is modular. You can create your own commands or download existing from the other users. The release contains also the built-in plugins (for file system management etc.).

    Terminal-commands.json

    The terminal-commands.json is the main configuration file for this package. If it's not present (or the JSON syntax is invalid) a new config file is created (in folder .atom).

    The config file contains:

    • custom commands definitions
    • rules (defininig highlights, regex replacement for text etc.)

    The sample config file can look like:

    The above configuration file will create highlight rule for all lines containing "warning: " text (this lines will be colored yellow).

    Creating custom terminal shortcuts

    You can create your own shortcuts buttons, which are placed on the terminal toolbar. To do it just put a new entry in the toolbar property:

    E.g. creating a button, which displays all avaliable terminal bultin commands:

    Another example. Now the button will move the terminal to the C: directory:

    You can add also tooltips describing the button functions:

    And now creating custom actions:

    Actions allows you to run your commands as atom commands or bind them to the specified keys. From the moment of the terminal initialization a new atom command is created - atom-terminal-panel:test , which will execute the hello_world command in the terminal.

    You can now bind the command to the specified keys by editing your keymap.cson :

    Defining custom commands

    Each command is defined in the commands entry the following way:

    'command0', 'command1'. are the commands that will be invoked by the user entry. Example involving g++ usage:

    As you can see you are able to build the current C/C++ project using only a single command. You may also try creating a build command accepting single file path (simple source file path) and the auto_build command, which will execute build command with %(file) parameter. E.g.

    Defining custom rules

    The highlight rules that are placed in rules property can be defined using two methods. The simple way looks like:

    Or more complex (and also more powerful) way:

    The REGEXP will be replaced with REPLACEMENT and all the line with matched token will be colored to red(matchLine:true).

    And specify how many lines under the match should be replaced:

    This rule will be applied to the entire line with the match and the next 3 lines (below it). Note that, the matchNextLines option can be used only with matchLine set to true , otherwise it's got no meaning.

    Getting more from custom patterns

    You can event make your patterns to be applied to the html code. Adding the forced option to the match :

    From now your pattern will be applied to the html code, so it may seriously broke entire terminal output! The forced patterns must be carefully designed to correctly manipulate the html code. If you're a beginner you should do most things without using forced patterns.

    More about regex rules

    You can use the following properties in regex matches:

    • matchLine - bool value specifies if the regex should be applied to the whole line
    • matchNextLines - integer value specifies how many lines after the line containing current match should be also matched
    • replace - text that the match will be replaced with

    Special annotation

    You can use special annotation (on commands/rules definitions or in settings - command prompt message/current file path replacement) which is really powerful:

    • (R - can be used in the rules user definitions)
    • (T - can be directly typed to the terminal)
    • (A - can be used from the terminal API)

    A few words about indexing in variables. The variable components are always indexed from 0, so %(path:0) refers to the first path component. You can also reference last element of the path using negative values: %(path:-1) is last element, %(path:-2) the seconds last etc. The same for referencing passed parameters - %(INDEX) and project directories - %(project:INDEX) .

    Text formatting

    Please use the %(^. ) modifiers to format the text:

    Internally defined commands

    You can take advantage of commands like memdump which prints information about all loaded commands (internal, not native!). Here the list of all commands:

    • ls
    • new FILENAME - creates new empty file in current working directory and opens it instantly in editor view
    • edit FILENAME - opens a given file in editor
    • link FILENAME - creates new file link (you can use it to open a file)
    • rm FILENAME - removes file in current working directory
    • memdump or ? - prints information about all loaded commands
    • clear - clears console output
    • cd - moves to a given path
    • update - reloads plugin config (terminal-commands.json)
    • reload - reloads atom window

    Included example commands:

    • compile - compiles current file using g++
    • run - runs the previously compiled file
    • test FILENAME - runs the test on the compiled application FILENAME is a FILE0.in file and the compiled application name must be FILE.exe e.g. test test5.in means test.exe test.txt', null, state

    You can also call other useful console methods:

    • state.message 'MESSAGE' - displays a message (can contains css/html formatting)
    • state.rawMessage 'MESSAGE' - displays a message without parsing special sequences like %(link). %(endlink) or %(cwd) etc.
    • state.clear - clears console output
    • state.consoleLink 'FILENAME' - creates console link to a given file (returns text which will be replaced with interactive file link)
    • state.consoleLabel 'TYPE', 'TEXT' - creates console label just like %(label:TYPE:text:TEXT)

    Hotkeys

    • shift-enter toggle current terminal
    • command-shift-t new terminal
    • command-shift-j next terminal
    • command-shift-k prev terminal
    • ` - toggle terminal
    • escape (in focused input box) - close terminal
    • Make a more cool terminal cursor.
    • More interactive stuff
    • Maybe a little bash parser written in javascript?
    • Some about stdinput (which is currently really bad)

    Example configuration

    Here it is, the example configuration (terminal-commands.json) - that you can see on the preview images. To use it just copy it to your ./atom/terminal-commands.json file (if the file doesn't exist call update command and it should be created).

    The regex rules preview can be easily checked by invoking echo command (e.g. echo warn test warning messages. ).

    Note that after each config update you must call update command otherwise changes will take no effects.

    Experiments

    This package is in alpha development phase. You can enable experimental features, which may be added to the software in incoming releases.

    I think this package is bad news.

    Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

    Эта публикация удалена, так как она нарушает рекомендации по поведению и контенту в Steam. Её можете видеть только вы. Если вы уверены, что публикацию удалили по ошибке, свяжитесь со службой поддержки Steam.

    Этот предмет несовместим с ATOM RPG. Пожалуйста, прочитайте справочную статью, почему этот предмет может не работать в ATOM RPG.

    Этот предмет виден только вам, администраторам и тем, кто будет отмечен как создатель.

    Доступность: только для друзей

    В результатах поиска этот предмет сможете видеть только вы, ваши друзья и администраторы.



    Консольные команды для Atom RPG. С помощью них вы сможете либо сделать себя настоящим виртуальным божеством, либо просто добавить парочку патронов, которых не хватает для убийства надоедливого противника.
    Вся информация взята из открытых источников





    Этот предмет добавлен в избранное.



    Deidara
    Не в сети

    22 мар. 2019 в 20:27

    22 мар. 2019 в 21:02

    4,087 уникальных посетителей
    174 добавили в избранное





    Как активировать консоль в Atom RPG



    Основные команды в Atom RPG



    Как добавить предметы в инвентарь



    Список ID всех предметов в Atom RPG



    Как активировать консоль в Atom RPG

    Основные команды в Atom RPG

    Как добавить предметы в инвентарь

    Благодаря консольным командам вы сможете снабдить своего героя практически любыми вещами, имеющимися в игре, начиная от расходных материалов и заканчивая оружием. Для этого вам нужно написать в консоли следующую фразу:

    В статье рассказывается о некоторых моментах по работе с Atom, которые не совсем очевидны для пользователей Notepad++.

    В статье рассказывается о некоторых моментах по работе с Atom, которые не совсем очевидны для пользователей Notepad++.

    Содержание

    В своё время я пытался перейти с Notepad++ на Sublime Text. Не получилось: не сумел найти все нужные для меня фишки из Notepad++ для нормальной работы. Сейчас попробую перейти на Atom.

    Статьи по Atom

    Вначале ознакомитесь с функционалам при установке дополнительных пакетов из статьи Настройка текстового редактора Atom и дополнительные пакеты.

    Открытие файлов через контекстное меню

    После установки программы в Windows появляется контекстное меню, через которое можно сразу открыть файл в Atom:

    2015-12-05_144334

    Как вызвать командную строку Atom

    2015-12-05_165055

    Через Ctrl + Shift + P .

    Как поменять язык подсветки синтаксиса кода

    Внизу справа имеется возможность поменять подсветку синтаксиса.

    2015-12-05_164542

    Как найти файл в папке проекта по его имени

    2015-12-05_171351

    Как второй документ отобразить рядом с первым документом

    Эта функция часто используется в Notepad++. Тут она тоже есть: правая кнопка по табу с документом и выбираем куда продублиовать документ. Единственный минус, что в первой области документ остается открытым тоже, но его там можно просто закрыть.

    2015-12-05_172836

    2015-12-05_172853

    2015-12-05_172915

    Как сварачивать код

    Подведите курсор на номера строк. И там появятся стрелочки, нажимая на которые, код свернется.

    2015-12-05_173707

    2015-12-05_173720

    Как найти что-то в файле

    Делается через стандартное сочетание клавиш Ctrl + F . Также там отображается число найденных мест.

    2015-12-05_175429

    Как заменить что-то в файле

    Аналогично через Ctrl + F :

    2015-12-05_175656

    Как найти в файлах всей папки

    Делается через сочетание клавиш Shift + Ctrl + F . Замена во всех файлах проекта также делается.

    2015-12-05_222153

    Можно также там задавать фильтр для файлов, по которым производится поиск.

    Можно ли добавить окно интерактивной консоли в Atom? Обратите внимание, что это похоже на статью в добавление сеанса прямой консоли в LightTable , за исключением того, что это для Atom.


    По сути, меня интересует встроенная эмуляция терминала, которую Geany может выполнять:

    Есть ли способ сделать это в текстовом редакторе Atom от Github?

    В статье рассказывается о некоторых моментах по работе с Atom, которые не совсем очевидны для пользователей Notepad++.

    В статье рассказывается о некоторых моментах по работе с Atom, которые не совсем очевидны для пользователей Notepad++.

    Содержание

    В своё время я пытался перейти с Notepad++ на Sublime Text. Не получилось: не сумел найти все нужные для меня фишки из Notepad++ для нормальной работы. Сейчас попробую перейти на Atom.

    Статьи по Atom

    Вначале ознакомитесь с функционалам при установке дополнительных пакетов из статьи Настройка текстового редактора Atom и дополнительные пакеты.

    Открытие файлов через контекстное меню

    После установки программы в Windows появляется контекстное меню, через которое можно сразу открыть файл в Atom:


    Как вызвать командную строку Atom


    Через Ctrl + Shift + P .

    Как поменять язык подсветки синтаксиса кода

    Внизу справа имеется возможность поменять подсветку синтаксиса.


    Как найти файл в папке проекта по его имени


    Как второй документ отобразить рядом с первым документом

    Эта функция часто используется в Notepad++. Тут она тоже есть: правая кнопка по табу с документом и выбираем куда продублиовать документ. Единственный минус, что в первой области документ остается открытым тоже, но его там можно просто закрыть.




    Как сварачивать код

    Подведите курсор на номера строк. И там появятся стрелочки, нажимая на которые, код свернется.



    Как найти что-то в файле

    Делается через стандартное сочетание клавиш Ctrl + F . Также там отображается число найденных мест.


    Как заменить что-то в файле

    Аналогично через Ctrl + F :


    Как найти в файлах всей папки

    Делается через сочетание клавиш Shift + Ctrl + F . Замена во всех файлах проекта также делается.


    Можно также там задавать фильтр для файлов, по которым производится поиск.


    Как показать невидимые символы

    Отмена показа невидимых символов осуществляется аналогичным способом.


    Как продублировать текущую строку

    Через Ctrl + Shift + D .


    Как закомментировать выделенные строчки


    Как объединить выделенные строки в одну


    Через Ctrl + Alt + F2 .

    Переход между отметками осуществляется через F2 .


    Как вызвать автодополнение принудительно

    Через Ctrl + Space .


    Как сделать все буквы заглавными/маленькими в выделенном тексте

    Через Ctrl + K + U , чтоб все буквы стали большими.

    Через Ctrl + K + L , чтоб все буквы стали маленькими.

    An Emacs-style console interface for Atom.

    Features

    • Execute any Atom command from a convenient console, as opposed to the built in command palette.
    • Execute custom commands!
    • Autocomplete!
    • Convenient tools: a bash shell, calculator, package installation, aliases, and more!

    Installation

    The latest stable version of atom-console is available through Atom’s package manager in the settings or via apm install atom-console .

    Install the latest Github release (may be unstable) with:

    Usage

    Toggle atom-console with alt-ctrl-x , then enter any command specified within Atom. To see all available commands, open atom-console and type ‘help’. To search for commands, type ‘find’. Auto-complete with tab .

    Some currently included non-Atom commands include commands bound to all grammar options in Atom ( [lang]-mode ) and package-install . A list of all built-in custom commands can be found in the commands section.

    As development continues, more custom commands will be added, especially ones inspired by Emac’s M-x console.

    Commands

    Atom Console contains all of Atom’s commands available via the command palette, as well as a growing list of custom commands, such as [lang]-mode , package-install . and shell .

    For more information and a complete list of custom commands, see the command documentation.

    Keymaps

    Keymap Effect
    ctrl-alt-x Toggle atom-console
    ctrl-alt-g Stop currently executing tool
    ctrl-alt-c Focus atom-console

    Contributing

    If you’ve developed a neat tool that you think everyone would love, feel free to submit a pull request!

    Troubleshooting

    If some commands do not work immediately after installation, try reloading Atom with ⌃⌥⌘L (ctrl-option-cmd-L) and using atom-console .

    License

    This package is available as open source under the terms of the MIT License.

    I think this package is bad news.

    Good catch. Let us know what about this package looks wrong to you, and we’ll investigate right away.

    Инструкция по установке, настройке и использованию самого передового на сегодняшний день редактора кода


    Не так давно все переходили с какого-нибудь TextMate на SublimeText и это было реально своевременно круто. Но когда в индустрию редакторов кода вошёл GitHub, сразу стало понятно за кем будущее.

    Atom — это быстроразвивающийся редактор кода от GitHub с открытым исходным кодом и растущим сообществом. Абсолютно бесплатный, ультра современный, легко настраиваемый через человекопонятный интерфейс, но пока что чуть медленный — в этом весь Atom.

    На мой взгляд, на сегодняшний день это лучший редактор кода, который способен изменить индустрию и остаться в ней на очень долгое время.

    Для установки вам необходимо быть обладателем одной из описанных на сайте Atom систем:

    OS X 10.8 or later, Windows 7 & 8, RedHat Linux, and Ubuntu Linux

    Так как я работаю на Mac, то большая часть инструкции будет для него, иногда с информацией для Windows.

    Скачайте дистрибутив и установите его как полагается в вашей системе. На Mac OS X нужно перенести приложение в папку приложений (Applications), на Windows запустить установочный дистрибутив.

    После этого откройте Atom и давайте перейдём к настройке.

    Для того, что бы всё было удобно, я расскажу вам как настроить сам Atom, вашу систему, какие пакеты поставить, что они дают, как их использовать и какую тему подсветки синтаксиса выбрать.

    Настройка Atom

    После установки Atom сразу готов к работе и настроен в соответствии с последними тенденциями. Вам нужно настроить всего две вещи.

    Добавьте разметку отступов
    Зайдите в настройки Atom → Preferences → Settings и поставьте галочку на Show Indent Guide. Это включит отображение специальных полосочек, которые помогают видеть вложенность кода.

    (UPDATE: не актуально) Настройте правильную работу autocomplete
    Autocomplete — это инструмент для автоматического написания кода. Зайдите в Atom → Open Your Keymap и вставьте в конец документа следующий код:

    Настройка Mac OS X

    В современных редакторах кода можно раздвигать курсор на несколько строк. Что бы это делать на Mac, нужно выключить пару стандартных сочетаний клавиш. Зайдите в системные настройки  → System Preferences → Keyboard → Shortcuts → Mission Control и снимите галочки на двух пунктах:

    Mission Control
    Занимает сочетание клавиш ^↑

    Application windows
    Занимает сочетание клавиш ^↓

    Теперь, когда будете играться с кодом, попробуйте по нажимать Shift-Ctrl-↑ и Shift-Ctrl-↓. Вы можете редактировать несколько строк одновременно. Также можно вставлять дополнительные курсоры в любые места в коде зажав Cmd и просто кликая в необходимое место.

    Установка пакетов

    Packages — это небольшие, но очень удобные дополнения, которые расширяют возможности Atom.

    Для установки пакетов зайдите в Atom → Preferences → Install и через строку поиска найдите и установите следующие пакеты:

    Atom-color-highlight
    Подсвечивает цветовые величины в коде

    Autocomplete-css
    Упрощает написание CSS

    Autocomplete-paths
    Упрощает написание путей к файлам проекта

    Autocomplete-plus
    Упрощает автоматическое написание кода

    Emmet
    Незаменимый инструмент дзен коддера, ускоряет написание HTML кода в разы

    Выбор темы подсветки кода

    Моя любимая тема Twilight не поставляется с Atom, скорей всего потому, что эта тема пришла из другого редактора кода TextMate. Несмотря на новизну Atom, к сожалению, я пока не нашёл для себя ни одной нормальной темы поставляемой с ним.

    Для установки Twilight, нужно опять зайти в установку как в прошлый раз, только в этот раз в строке поиска нужно выбрать Themes, вместо Packages. Найти Twilight и установить.

    После того, как пакеты и темы поставлены, перезагрузите Atom для того, что бы всё точно заработало (полностью закройте программу и откройте снова).

    Что бы попробовать новые установки и настройки в действии давайте сделаем несколько упражнений.

    Emmet в действии

    Создайте новый файл и сохраните его, назовите “index.html”, естественно без кавычек. Для правильной работы всех помощников Atom, так называемых сниппетов (snippets) и для правильной подсветки кода (syntax highlighting) обязательно нужно указывать правильное расширение файла (.html в данном случае).

    Итак, пишем в документе восклицательный знак и нажимаем Tab. Emmet развернёт вам базовую структуру HTML.

    Подробней об использовании Emmet читайте в документации на официальном сайте.

    Когда пакет будет установлен, нажмите кнопку Settings под именем пакета и в поле Language выберите Русский: Затем вам останется перезагрузить редактор. Теперь главное меню и контекстное меню будут на русском: Как видите, получить русский язык в Atom не так сложно.

    Как запустить программу в атом?

    1. Щелкните по пакетам —> палитра команд — > выберите переключатель .
    2. Введите установить пакеты и темы .
    3. Найдите скрипт и установите его.
    4. Нажмите Command + I , чтобы запустить код (на Mac)

    Как установить тему атом?

    Как скомпилировать в Atom?

    Как полностью удалить Atom?

    Чтобы удалить Atom:

    Как запустить скрипт на Python в Windows?

    Python-код можно запустить одним из следующих способов:

    1. С помощью командной строки операционной системы (shell или терминал);
    2. С помощью конкретной версии Python или Anaconda;
    3. Использовать Crontab;
    4. Запустить код с помощью другого Python-скрипта;
    5. С помощью файлового менеджера;
    6. Использовать интерактивный режим Python;

    Как настроить Python на Windows?

    Читайте также: