{"action":"closed","issue":{"url":"https://api.github.com/repos/inmite/android-butterknife-zelezny/issues/31","labels_url":"https://api.github.com/repos/inmite/android-butterknife-zelezny/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/inmite/android-butterknife-zelezny/issues/31/comments","events_url":"https://api.github.com/repos/inmite/android-butterknife-zelezny/issues/31/events","html_url":"https://github.com/inmite/android-butterknife-zelezny/issues/31","id":47374796,"number":31,"title":"Improvement : remove common section of an ID","user":{"login":"Trikke","id":2961842,"avatar_url":"https://avatars.githubusercontent.com/u/2961842?v=3","gravatar_id":"","url":"https://api.github.com/users/Trikke","html_url":"https://github.com/Trikke","followers_url":"https://api.github.com/users/Trikke/followers","following_url":"https://api.github.com/users/Trikke/following{/other_user}","gists_url":"https://api.github.com/users/Trikke/gists{/gist_id}","starred_url":"https://api.github.com/users/Trikke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trikke/subscriptions","organizations_url":"https://api.github.com/users/Trikke/orgs","repos_url":"https://api.github.com/users/Trikke/repos","events_url":"https://api.github.com/users/Trikke/events{/privacy}","received_events_url":"https://api.github.com/users/Trikke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-31T09:27:03Z","updated_at":"2015-02-06T15:09:52Z","closed_at":"2015-02-06T15:09:52Z","body":"Hi,\r\n\r\nfirst of all, thanks for making our developer lives easier. But i got one small request for an improvement, if you'd think it's possible/handy.\r\n\r\nI usually create resource id's for views based on the viewgroup or item they are in. If i make a fragment xml named `fragment_profile`, then all my views/layouts inside that xml will be called `fragment_profile_some_way_to_indentify_view`. A view that shows the name of a user in that xml would be called `fragment_profile_user_name_title`. I do this because on large projects you can run into collisions if there would be several fragments that include a textview to show a user's name.\r\n\r\nWhen then generating the code with your plugin, all my views will be called `mFragmentProfileUserName` and so on. So the question is if you could detect if there is a common string across all the id's you find and remove that in the variable name section. There could even be a tick next to 'create viewholder', to toggle this behaviour. ( 'full variable name' or something )\r\n\r\nI'd like to hear your thoughts on this."}}