ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Goto​Ruby​Gem

by ZainIftikhar7vals MacLinux ALL

Quickly access the code of any installed gem.

Details

  • 0.3.0
  • github.​com
  • github.​com
  • 11 months ago
  • 51 minutes ago
  • 11 months ago

Installs

  • Total 71
  • Win 0
  • Mac 41
  • Linux 30
May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Goto Ruby Gem 0.3.0

This plugin is designed for Ruby projects and allows you to quickly access the code of any installed gem. It opens the gem's source code in a new Sublime Text window for easy inspection.

gif

Installation

  1. Open Sublime Text.
  2. Press Ctrl + Shift + P (Linux) or Cmd + Shift + P (Mac) to open the Command Palette.
  3. Type Install Package and press Enter.
  4. Type “GotoRubyGem” and press Enter to install.

How to Use

  1. Press Ctrl + Shift + P (Linux) or Cmd + Shift + P (Mac) in Sublime Text.
  2. Type “Goto Ruby Gem” and press enter.
  3. It will display a list of all installed gems.
  4. Select a gem from the list, and the plugin will open its source code in a new window.

Specifying Custom Directories (optional)

For specifying custom directories from which gems should be searched:

Store configurations directly in Sublime Text's settings: Open Preferences > Package Settings > GotoRubyGem and refer to Settings - Default for an example. You can customize GotoRubyGem using the following configurations:

  • use_custom_gems_directories:
    • Controls whether to use custom directories for gem searching.
    • Default: false
    • Options:
    • true: Enables searching in custom gem directories specified in custom_gems_directories.
    • false: Uses the default gem directory for searching.
  • custom_gems_directories:
    • A list of absolute paths where gems should be searched.
    • Usage:
    • Specify paths only if use_custom_gems_directories is set to true.
    • If empty and use_custom_gems_directories is true, no gems will be searched.

Example Configuration:

Now Gems will only be searched inside /home/vals/.rvm/rubies/ruby-3.1.4/lib/ruby/gems/3.1.0/gems

{
    "use_custom_gems_directories": true,
    "custom_gems_directories": [
        "/home/vals/.rvm/rubies/ruby-3.1.4/lib/ruby/gems/3.1.0/gems"
    ]
  }

limitations

  • Experimental support for Sublime Text for Linux/Mac with RVM/rbenv.

Enjoy exploring gem code easily with Goto Ruby Gem!

Feedback

Your feedback and suggestions are valuable! Feel free to open issues or contribute to the project.