{"action":"created","issue":{"url":"https://api.github.com/repos/johnbillion/query-monitor/issues/302","repository_url":"https://api.github.com/repos/johnbillion/query-monitor","labels_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/302/comments","events_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/302/events","html_url":"https://github.com/johnbillion/query-monitor/issues/302","id":288087909,"number":302,"title":"Contract long file paths","user":{"login":"johnbillion","id":208434,"avatar_url":"https://avatars2.githubusercontent.com/u/208434?v=4","gravatar_id":"","url":"https://api.github.com/users/johnbillion","html_url":"https://github.com/johnbillion","followers_url":"https://api.github.com/users/johnbillion/followers","following_url":"https://api.github.com/users/johnbillion/following{/other_user}","gists_url":"https://api.github.com/users/johnbillion/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbillion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbillion/subscriptions","organizations_url":"https://api.github.com/users/johnbillion/orgs","repos_url":"https://api.github.com/users/johnbillion/repos","events_url":"https://api.github.com/users/johnbillion/events{/privacy}","received_events_url":"https://api.github.com/users/johnbillion/received_events","type":"User","site_admin":false},"labels":[{"id":126989770,"url":"https://api.github.com/repos/johnbillion/query-monitor/labels/dispatcher:html","name":"dispatcher:html","color":"eeeeee","default":false},{"id":737606280,"url":"https://api.github.com/repos/johnbillion/query-monitor/labels/priority:1","name":"priority:1","color":"111111","default":false},{"id":2304607,"url":"https://api.github.com/repos/johnbillion/query-monitor/labels/type:enhancement","name":"type:enhancement","color":"eeeeee","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-12T11:20:31Z","updated_at":"2018-04-24T20:16:51Z","closed_at":"2018-04-24T20:16:51Z","author_association":"OWNER","body":"One thing that causes the layout of QM to easily get messed up is long file paths. Here are two examples:\r\n\r\n![query-monitor-queries](https://user-images.githubusercontent.com/208434/34872545-280af05e-f789-11e7-8b06-d10962f0c0cf.png)\r\n\r\n![x17fbk](https://user-images.githubusercontent.com/208434/34872589-5d446f7a-f789-11e7-9c8c-510862c8f90d.jpg)\r\n\r\nWhat can be done in order to display these file paths better and/or make them shorter?\r\n\r\nOptions: (which aren't exclusive to one another)\r\n\r\n* Strip the leading `wp-content/plugins` and `wp-content/themes` segments.\r\n* Contract the file path (see below).\r\n* Don't display the file path at all, put it behind a toggle.\r\n\r\nThe iTerm2 app for Mac contracts file paths in the `Recent Directories` pane by shortening each segment of the path. For example, this file path:\r\n\r\n    /sites/fresh/branches/4.8/src/wp-includes/rest-api/fields\r\n\r\ncan end up being displayed as:\r\n\r\n    /s/f/b/4/s/w/rest-api/fields\r\n\r\nThis behaviour is okay, but I would rather not contract the first segment of the path because it can be an important piece of information when the user wants to open the file.\r\n\r\nOn a related note, I've seen some apps which shorten function names when they contain namespaces. For example:\r\n\r\n    \\My\\Long\\Plugin\\NameSpace\\App\\function_name()\r\n\r\ncan be shown as:\r\n\r\n    \\My\\...\\App\\function_name()\r\n\r\nThoughts and ideas welcome."},"comment":{"url":"https://api.github.com/repos/johnbillion/query-monitor/issues/comments/384065468","html_url":"https://github.com/johnbillion/query-monitor/issues/302#issuecomment-384065468","issue_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/302","id":384065468,"user":{"login":"johnbillion","id":208434,"avatar_url":"https://avatars2.githubusercontent.com/u/208434?v=4","gravatar_id":"","url":"https://api.github.com/users/johnbillion","html_url":"https://github.com/johnbillion","followers_url":"https://api.github.com/users/johnbillion/followers","following_url":"https://api.github.com/users/johnbillion/following{/other_user}","gists_url":"https://api.github.com/users/johnbillion/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbillion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbillion/subscriptions","organizations_url":"https://api.github.com/users/johnbillion/orgs","repos_url":"https://api.github.com/users/johnbillion/repos","events_url":"https://api.github.com/users/johnbillion/events{/privacy}","received_events_url":"https://api.github.com/users/johnbillion/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T20:16:51Z","updated_at":"2018-04-24T20:16:51Z","author_association":"OWNER","body":"I've decided not to do anything with this for now. QM 3.0 hides most paths behind a toggle by default, which mostly eliminate the problem of suboptimal layouts."}}
{"actor":{"display_login":"johnbillion"}}