basgren / railways

A plugin for RubyMine and IntelliJ IDEA Ultimate that adds a panel with routes of Ruby on Rails application.
MIT License
46 stars 18 forks source link

Add regex support -- feature #28

Closed thestelz closed 6 years ago

thestelz commented 6 years ago

I would like to request the feature of adding of a wild card or regex to search for a route. Currently when searching for a route, it has to be in the exact way that it's typed in the routes.rb file.


Example:

When typing companies/ I want to add a wild card (*) after the slash (/), but if the route doesn't have the * in it, it doesn't match anything.

screen shot 2017-10-20 at 4 41 26 pm

screen shot 2017-10-20 at 4 41 44 pm

screen shot 2017-10-20 at 4 41 55 pm


Settings:

screen shot 2017-10-20 at 4 44 32 pm

Thanks for the awesome plugin!

thestelz commented 6 years ago

Forgot to include info about what version I'm using:

RubyMine 2017.2.4
Build #RM-172.4155.44, built on September 26, 2017
JRE: 1.8.0_152-release-915-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13

Just in case you need/want it.

basgren commented 6 years ago

Thank you! Will consider this feature soon.

basgren commented 6 years ago

Finally got my hands on it :) @thestelz feel free to check 0.8.9 version with wildcard functionality. Please let me know if you find any issues.

thestelz commented 6 years ago

Sweet! Thanks @basgren!!

Just downloaded it and it works like a charm!