Atom как открыть консоль

Обновлено: 05.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 < test5.in

    Internal configuration

    You can modify the extensions.less file and add your own extension colouring rules. E.g:

    Simple like making a cup of fresh coffee. Just dot, extension name and CSS formatting.

    The ./config/terminal-style.less contains the general terminal stylesheet: E.g.

    You can modify it to make the terminal look cooler.

    Creating more advanced custom functions (plugins)

    The ./commands directory contains the plugins (you can add your own commands). Each plugin exports a list of all custom commands (each plugin directory must contain index.coffee file - its entry point, which looks like described below) E.g.

    The state is the terminal view object and the args - the array of all passesd parameters. Your custom functional command can also create console links using state.consoleLink path , labels using state.consoleLabel type, text or execute other commands: E.g.

    But if you're using state.exec you must remember about passing not only command string but also state and args parameters (array of refernced parameters). The array of the referenced parameters contains all parameters which will be referenced by a command string (element at zero index in array will be used for %(0) replacement). If the command string do not reference its parameters you can pass only a null value. As you can see all terminal messages are displayed automatically (just return the string message). but you can also print them manually:

    You can specify the command description, example usage and if the plugin command is outdated - make it deprecated:

    You can also export new variables:

    In the given example the variable can be acessed by typing %(name) .

    More about console

    As you can see in previous examples we were calling state.exec . This method accepts tree parametes: command , args_reference , state command is the string command to be executed e.g. echo test or format C: args_reference is the array containing all reference arguments e.g. if you passes a ['arg0', 'arg1'] as parameter the %(0) sequence will be replaced with arg0 text and %(1) with arg1 . If this paramter is undefined or null the command is executed normally and the %(0) sequences are simply removed. state - the console view object e.g. state.exec 'echo test > 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.

    Доступность: скрытый

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

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

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


    Оценок: 107

    Консольные команды

    От Deidara

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


    1


    2

    В избранное

    В избранном

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


    Deidara
    Не в сети

    22 мар. 2019 в 20:27

    22 мар. 2019 в 21:02

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

    Оглавление руководства



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


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


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


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


    Комментарии

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

    Для активации консоли нужно нажать Numpad * и Numpad 0 вместе. Появится новое окно для команд. Сразу же введите в него надпись «youshallnotpass» (без ковычек). Теперь вы можете спокойно вводить любые коды.

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

    radiation [n] – устанавливает уровень отравления радиацией на n-единиц («0» полностью убирает радиационное отравление).
    hunger [n] – устанавливает уровень голода на n-единиц.
    toxic [n] – устанавливает уровень токсинов на n-единиц.
    AP [n] – устанавливает количество очков действий на n-единиц (полезно в бою).
    KillAll – позволяет убить всех существ на карте.
    AddXP [n] – добавляет персонажу очки опыта в количестве n-единиц.
    AddLevel [n] – повышает уровень персонажа на n-единиц.
    Teleport – позволяет мгновенно телепортироваться в место, куда указывает курсор мышки.
    Help – на экране появятся все имеющиеся в игре консольные команды.
    UnlockCraft – позволяет выучить все рецепты крафта, имеющиеся в игре.
    UnlockMap – позволяет открыть всю карту (вы увидите расположение всех основных объектов на глобальной карте).
    Pobeda – позволяет получить в пользование советский автомобиль ГАЗ (можно применить только вне населенных пунктов).
    addfuel [n] – добавляет топливо в бак автомобиля.
    Hero – позволяет создать идеального персонажа с максимально прокаченными характеристиками и навыками.
    AddItem [x] [n] – добавляет в инвентарь персонажа выбранную вещь (подробнее описано ниже).
    Items – позволяет увидеть список всех предметов в игре.

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

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

    AddItem [x] [n] – вместо «x» необходимо вписать ID (идентификационный номер) нужной вещи, а вместо «n» – желаемое количество.
    Допустим, вам нужны два автомата АК-47. В этом случае напишите: AddItem [AK47] [2] и нажмите на «Enter». После этого в вашем рюкзаке появится необходимое оружие. Ниже мы укажем названия всех предметов.

    В статье рассказывается о некоторых моментах по работе с 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

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

    2015-12-05_222202

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

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