requestmapper icon indicating copy to clipboard operation
requestmapper copied to clipboard

please support custom settings

Open meidea opened this issue 5 years ago • 9 comments

Issue

Can you support setting the length of the search box ?

The text of the search box should be trimmed before matching.

Specifications

  • Version of the plugin: 0.15
  • IntelliJ IDEA version: 2019.2

meidea avatar Aug 21 '19 05:08 meidea

@meidea could you explain more about your case? I can get the idea

viartemev avatar Aug 21 '19 16:08 viartemev

@viartemev Our request path is a bit long, so I want to customize the length of the search box. eg: /api/v1/userplatform/activity/listByTagWithOutDetail

When I search for GET , it should be the same as GET; GET .trim() = GET

meidea avatar Aug 22 '19 02:08 meidea

I use space delimiter for splitting method and path. I can't get your idea about space :( image

viartemev avatar Aug 22 '19 08:08 viartemev

@viartemev Please input /super , add a space at the end;

meidea avatar Aug 22 '19 09:08 meidea

Oh, I believe @meidea means that you should trim whitespaces from start and end of search term before actually searching

asm0dey avatar Aug 22 '19 11:08 asm0dey

@meidea I got it. Would you mind to make a PR for it? I can help you if you need.

viartemev avatar Aug 22 '19 11:08 viartemev

@asm0dey Thank you !

meidea avatar Aug 22 '19 11:08 meidea

@viartemev You are the best!

meidea avatar Aug 22 '19 11:08 meidea

Seems like both problems (window size and that search will not work if whitespace on the end) are not on this project side (they came from idea)

I've tried to implement "ignore whitespace on the end" feature, but it didn't worked. Source code (as I know it's useless now) available in the branch https://github.com/ikopysov/requestmapper/tree/%23201

ikopysov avatar Sep 28 '19 02:09 ikopysov