{"action":"created","issue":{"url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/1652","repository_url":"https://api.github.com/repos/Tatoeba/tatoeba2","labels_url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/1652/labels{/name}","comments_url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/1652/comments","events_url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/1652/events","html_url":"https://github.com/Tatoeba/tatoeba2/issues/1652","id":353359475,"node_id":"MDU6SXNzdWUzNTMzNTk0NzU=","number":1652,"title":"search should retain the settings used for the most recent search","user":{"login":"alanfgh","id":1213027,"node_id":"MDQ6VXNlcjEyMTMwMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/1213027?v=4","gravatar_id":"","url":"https://api.github.com/users/alanfgh","html_url":"https://github.com/alanfgh","followers_url":"https://api.github.com/users/alanfgh/followers","following_url":"https://api.github.com/users/alanfgh/following{/other_user}","gists_url":"https://api.github.com/users/alanfgh/gists{/gist_id}","starred_url":"https://api.github.com/users/alanfgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanfgh/subscriptions","organizations_url":"https://api.github.com/users/alanfgh/orgs","repos_url":"https://api.github.com/users/alanfgh/repos","events_url":"https://api.github.com/users/alanfgh/events{/privacy}","received_events_url":"https://api.github.com/users/alanfgh/received_events","type":"User","site_admin":false},"labels":[{"id":81021558,"node_id":"MDU6TGFiZWw4MTAyMTU1OA==","url":"https://api.github.com/repos/Tatoeba/tatoeba2/labels/enhancement","name":"enhancement","color":"009800","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T12:32:27Z","updated_at":"2018-08-29T03:46:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"REQUEST: A search, especially for a logged-in user, should retain all the settings used for the most recent search, except perhaps for the search string itself.\r\n\r\nI typically do searches like this:\r\n\r\n\"Choose all English sentences owned by self-identified natives containing the specified search string that are directly linked to Russian sentences; list them in random order.\"\r\n\r\nor like this:\r\n\r\n\"Choose all Russian sentences by self-identified natives containing the specified search string that are directly linked to English sentences; list them in random order.\"\r\n\r\nor like the previous query except excluding rather than limiting the results to sentences that are directly linked to English sentences.\r\n\r\nWhile a few of the parameters differ between the searches, a number of the non-default parameters (\"owned by a self-identified native\", \"list in random order\") are constant across all of them. I find it annoying to have to set the same settings for each query. I realize that it's possible to set up bookmarks to recurring queries, but this is a pain to do for every type of query on every device on which I might be running them. It seems to me that using the parameters for the last search is a good starting point for a new search.\r\n\r\nEven if it turns out that many people want to keep the existing behavior, where default parameters are chosen for all the parameters, I would be happy to have an option that uses the \"sticky\" behavior instead, and I wouldn't mind having to select it once explicitly."},"comment":{"url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/comments/416814671","html_url":"https://github.com/Tatoeba/tatoeba2/issues/1652#issuecomment-416814671","issue_url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/1652","id":416814671,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjgxNDY3MQ==","user":{"login":"jiru","id":5107734,"node_id":"MDQ6VXNlcjUxMDc3MzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5107734?v=4","gravatar_id":"","url":"https://api.github.com/users/jiru","html_url":"https://github.com/jiru","followers_url":"https://api.github.com/users/jiru/followers","following_url":"https://api.github.com/users/jiru/following{/other_user}","gists_url":"https://api.github.com/users/jiru/gists{/gist_id}","starred_url":"https://api.github.com/users/jiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiru/subscriptions","organizations_url":"https://api.github.com/users/jiru/orgs","repos_url":"https://api.github.com/users/jiru/repos","events_url":"https://api.github.com/users/jiru/events{/privacy}","received_events_url":"https://api.github.com/users/jiru/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T03:46:29Z","updated_at":"2018-08-29T03:46:29Z","author_association":"MEMBER","body":"A very easy way to solve your problem (but probably not the best) is to add an additional \"search\" button that would open the search in a new tab or window instead of the current page. This way, you could for example open https://tatoeba.org/sentences/advanced_search, fill the form, click on that new \"Advanced search (new tab/window)\" button, then change just one criterion and run the search again. This can be achieved with [that kind of code](https://stackoverflow.com/questions/5709590/submit-a-form-in-a-new-tab#answer-19692174). I don’t like this solution however, because it adds yet another element to this already bloated form."}}
{"actor":{"display_login":"jiru"}}