{"action":"created","issue":{"url":"https://api.github.com/repos/coteditor/CotEditor/issues/533","repository_url":"https://api.github.com/repos/coteditor/CotEditor","labels_url":"https://api.github.com/repos/coteditor/CotEditor/issues/533/labels{/name}","comments_url":"https://api.github.com/repos/coteditor/CotEditor/issues/533/comments","events_url":"https://api.github.com/repos/coteditor/CotEditor/issues/533/events","html_url":"https://github.com/coteditor/CotEditor/issues/533","id":143266924,"number":533,"title":"「ソート・反転・重複を削除」機能は、テキスト未選択時は動作しないけれど… / Availability of text action menu items","user":{"login":"tsawada2","id":9572430,"avatar_url":"https://avatars.githubusercontent.com/u/9572430?v=3","gravatar_id":"","url":"https://api.github.com/users/tsawada2","html_url":"https://github.com/tsawada2","followers_url":"https://api.github.com/users/tsawada2/followers","following_url":"https://api.github.com/users/tsawada2/following{/other_user}","gists_url":"https://api.github.com/users/tsawada2/gists{/gist_id}","starred_url":"https://api.github.com/users/tsawada2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsawada2/subscriptions","organizations_url":"https://api.github.com/users/tsawada2/orgs","repos_url":"https://api.github.com/users/tsawada2/repos","events_url":"https://api.github.com/users/tsawada2/events{/privacy}","received_events_url":"https://api.github.com/users/tsawada2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coteditor/CotEditor/labels/better%20to%20fix","name":"better to fix","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"1024jp","id":1165044,"avatar_url":"https://avatars.githubusercontent.com/u/1165044?v=3","gravatar_id":"","url":"https://api.github.com/users/1024jp","html_url":"https://github.com/1024jp","followers_url":"https://api.github.com/users/1024jp/followers","following_url":"https://api.github.com/users/1024jp/following{/other_user}","gists_url":"https://api.github.com/users/1024jp/gists{/gist_id}","starred_url":"https://api.github.com/users/1024jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024jp/subscriptions","organizations_url":"https://api.github.com/users/1024jp/orgs","repos_url":"https://api.github.com/users/1024jp/repos","events_url":"https://api.github.com/users/1024jp/events{/privacy}","received_events_url":"https://api.github.com/users/1024jp/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/coteditor/CotEditor/milestones/29","html_url":"https://github.com/coteditor/CotEditor/milestones/2.5.0","labels_url":"https://api.github.com/repos/coteditor/CotEditor/milestones/29/labels","id":1572762,"number":29,"title":"2.5.0","description":"","creator":{"login":"1024jp","id":1165044,"avatar_url":"https://avatars.githubusercontent.com/u/1165044?v=3","gravatar_id":"","url":"https://api.github.com/users/1024jp","html_url":"https://github.com/1024jp","followers_url":"https://api.github.com/users/1024jp/followers","following_url":"https://api.github.com/users/1024jp/following{/other_user}","gists_url":"https://api.github.com/users/1024jp/gists{/gist_id}","starred_url":"https://api.github.com/users/1024jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024jp/subscriptions","organizations_url":"https://api.github.com/users/1024jp/orgs","repos_url":"https://api.github.com/users/1024jp/repos","events_url":"https://api.github.com/users/1024jp/events{/privacy}","received_events_url":"https://api.github.com/users/1024jp/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":2,"state":"open","created_at":"2016-02-09T15:31:03Z","updated_at":"2016-03-24T14:57:35Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-03-24T14:49:53Z","updated_at":"2016-03-27T08:40:42Z","closed_at":null,"body":"不具合報告というより要望に近いかもしれません：\r\n\r\n## 環境 \r\n\r\n- CotEditor: 2.4.4 (111)\r\n- システム: OS X バージョン 10.11.4（ビルド 15E65）\r\n- 言語環境: 日本語\r\n\r\n\r\n## 簡単な説明\r\n\r\n「テキスト」＞「行」サブメニューの中で\r\n* ソート\r\n* 反転\r\n* 重複を削除\r\n\r\nは、テキストが複数行にまたがって選択されているときに、その選択範囲内に対して適用されるコマンドだが、テキストが選択されていないときでもこれらのメニュー項目は活性状態になっている。\r\nもちろん、このときこれらのメニュー項目を選択しても何も起きない。\r\n\r\n## 期待される挙動\r\n\r\n今回はたまたま、テキストファイルの行全体を対象にソートや重複行削除を行う作業をしていたので、\r\n「テキストが選択されていない場合は、テキスト全体に対して適用」してくれることを期待しました。\r\n\r\nしかしもちろん、「テキストが選択されていない場合は、メニュー項目を非活性にする」という対応も考えられると思います。"},"comment":{"url":"https://api.github.com/repos/coteditor/CotEditor/issues/comments/202015996","html_url":"https://github.com/coteditor/CotEditor/issues/533#issuecomment-202015996","issue_url":"https://api.github.com/repos/coteditor/CotEditor/issues/533","id":202015996,"user":{"login":"1024jp","id":1165044,"avatar_url":"https://avatars.githubusercontent.com/u/1165044?v=3","gravatar_id":"","url":"https://api.github.com/users/1024jp","html_url":"https://github.com/1024jp","followers_url":"https://api.github.com/users/1024jp/followers","following_url":"https://api.github.com/users/1024jp/following{/other_user}","gists_url":"https://api.github.com/users/1024jp/gists{/gist_id}","starred_url":"https://api.github.com/users/1024jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024jp/subscriptions","organizations_url":"https://api.github.com/users/1024jp/orgs","repos_url":"https://api.github.com/users/1024jp/repos","events_url":"https://api.github.com/users/1024jp/events{/privacy}","received_events_url":"https://api.github.com/users/1024jp/received_events","type":"User","site_admin":false},"created_at":"2016-03-27T08:40:41Z","updated_at":"2016-03-27T08:40:41Z","body":"調査してみたところソートがデフォルトで入っているテキストエディタのうち、\r\n\r\n- Sublime Text\r\n- Sumltron\r\n- Textmate\r\n\r\nは選択範囲のあるなしでソート範囲を自動的に切り替えていて\r\n\r\n- Chocolat\r\n\r\nは選択範囲がないときは無視\r\n\r\nという挙動であった。\r\n\r\nということで、大丈夫そうなので、\r\n\r\n> 「テキストが選択されていない場合は、テキスト全体に対して適用」\r\n\r\nを採用しようと思う。ただしメニュー項目名は選択範囲のあるなしで適宜変更する。"}}