Skip to content

Commands

Tommaso Negri edited this page Jan 3, 2022 · 9 revisions

All the commands availble in the extension.

Types of commands:

Extension

Open Alternate File

Switch between controller/models/etc and their respective test files.

ID: tommasonegri.rails.commands.openAlternateFile

Open Latest Migration

Open the latest migration in the project.

ID: tommasonegri.rails.commands.migrations.openLatest

List Migrations

Display a list of all the migrations in the project and let the user open the selected one.

ID: tommasonegri.rails.commands.migrations.list

Migrate

A wrapper for rails db:migrate.

ID: tommasonegri.rails.commands.migrations.migrate

Rollback

A wrapper for rails db:rollback.

ID: tommasonegri.rails.commands.migrations.rollback

Search Documentation

Display a list of documentations to search in and ask for research terms.

The search will use the site:documentation.website feature of DuckDuckGo.

ID: tommasonegri.rails.commands.documentation.search

Routes

Open the Rails Routes web interface /rails/info/routes.

ID: tommasonegri.rails.commands.info.routes

Project Properties

Open the Rails Project Properties web interface /rails/info/properties.

ID: tommasonegri.rails.commands.info.properties

Rails Guides

Open the Rails Guides website in your favorite web browser.

ID: tommasonegri.rails.commands.documentation.openRailsGuides

Rails API

Open the Rails API website in your favorite web browser.

ID: tommasonegri.rails.commands.documentation.openRailsAPI

Rails Forum

Open the Rails Forum website in your favorite web browser.

ID: tommasonegri.rails.commands.documentation.openRailsForum

Turbo Reference

Open the Turbo Reference website in your favorite web browser.

ID: tommasonegri.rails.commands.documentation.openTurboReference

Stimulus Reference

Open the Stimulus Reference website in your favorite web browser.

ID: tommasonegri.rails.commands.documentation.openStimulusReference

Extension Wiki

Open the Extension Wiki website in your favorite web browser.

ID: tommasonegri.rails.commands.documentation.openExtensionWiki

Editor

ERB Tag Switcher

Quickly switch between <%, <%= & <%# with a single shortcut.

Select a text to wrap it in ERB tags or just use ⌘-shift-> to create a tag and start typing the expression.

ID: tommasonegri.rails.commands.erb.tagSwitcher

Command Palette

Reload Extension

Force the extension and all the correlated services to reload.

ID: tommasonegri.rails.commands.reload

Reload About Rails Sidebar

Force the About Rails sidebar view to reload itself and all the data.

ID: tommasonegri.rails.commands.sidebar.aboutRails.reload

Kill Puma Server

A wrapper for pkill -9 -f 'rb-fsevent|rails|spring|puma'.

You can use this command for killing al the leftover processes that might cause issues after for example a Nova crash.

ID: tommasonegri.rails.commands.pumaServer.kill

Update Stimulus Manifest

A wrapper for bin/rails stimulus:manifest:update.

You can use this command for updating your Stimulus manifest file.

ID: tommasonegri.rails.commands.stimulus.manifest.update

Pin Package to Importmap

A wrapper for bin/importmap pin.

You can use this command for pinning packages to importmap.

ID: tommasonegri.rails.commands.importmap.pin

Unpin Package from Importmap

A wrapper for bin/importmap pin.

You can use this command for unpinning packages from importmap.

ID: tommasonegri.rails.commands.importmap.unpin