{"action":"created","issue":{"url":"https://api.github.com/repos/vsch/MissingInActions/issues/18","repository_url":"https://api.github.com/repos/vsch/MissingInActions","labels_url":"https://api.github.com/repos/vsch/MissingInActions/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/vsch/MissingInActions/issues/18/comments","events_url":"https://api.github.com/repos/vsch/MissingInActions/issues/18/events","html_url":"https://github.com/vsch/MissingInActions/issues/18","id":318692103,"number":18,"title":"FR: Delete to Word End (ignoring single white space characters)","user":{"login":"fgimian","id":1811813,"avatar_url":"https://avatars0.githubusercontent.com/u/1811813?v=4","gravatar_id":"","url":"https://api.github.com/users/fgimian","html_url":"https://github.com/fgimian","followers_url":"https://api.github.com/users/fgimian/followers","following_url":"https://api.github.com/users/fgimian/following{/other_user}","gists_url":"https://api.github.com/users/fgimian/gists{/gist_id}","starred_url":"https://api.github.com/users/fgimian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgimian/subscriptions","organizations_url":"https://api.github.com/users/fgimian/orgs","repos_url":"https://api.github.com/users/fgimian/repos","events_url":"https://api.github.com/users/fgimian/events{/privacy}","received_events_url":"https://api.github.com/users/fgimian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-29T05:48:16Z","updated_at":"2018-04-29T13:44:52Z","closed_at":null,"author_association":"NONE","body":"Hey there, really cool extension, thanks a lot for writing it! 😄 \r\n\r\nI have noticed that PyCharm's default \"Delete to Word End\" action treats a single whitespace (`\" \"` or `\"\\t\"`) as a word which is not the way other applications work on macOS.\r\n\r\ne.g. Suppose we have the text `Hello there my friend.` and suppose we place the cursor at the beginning (just before the letter H) and start hitting Option + Delete, this is what we see:\r\n\r\n**TextEdit / Sublime Text**\r\n\r\n```\r\nHello there my friend.\r\n there my friend.\r\n my friend.\r\n friend.\r\n.\r\n```\r\n\r\nIn PyCharm, we see:\r\n\r\n```\r\nHello there my friend.\r\n there my friend.\r\nthere my friend.\r\n my friend.\r\nmy friend.\r\n friend.\r\nfriend.\r\n.\r\n```\r\n\r\nIn macOS apps, a single space or tab between words is not treated as a word, only multiple spaces are.\r\n\r\nI was wondering if you would consider writing a new action \"Delete to Word End Excluding Single Whitespace\" so that we can map Option + Delete to this instead of the default PyCharm behaviour.\r\n\r\nThanks so much for your time!\r\nFotis"},"comment":{"url":"https://api.github.com/repos/vsch/MissingInActions/issues/comments/385252508","html_url":"https://github.com/vsch/MissingInActions/issues/18#issuecomment-385252508","issue_url":"https://api.github.com/repos/vsch/MissingInActions/issues/18","id":385252508,"user":{"login":"vsch","id":10299086,"avatar_url":"https://avatars3.githubusercontent.com/u/10299086?v=4","gravatar_id":"","url":"https://api.github.com/users/vsch","html_url":"https://github.com/vsch","followers_url":"https://api.github.com/users/vsch/followers","following_url":"https://api.github.com/users/vsch/following{/other_user}","gists_url":"https://api.github.com/users/vsch/gists{/gist_id}","starred_url":"https://api.github.com/users/vsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsch/subscriptions","organizations_url":"https://api.github.com/users/vsch/orgs","repos_url":"https://api.github.com/users/vsch/repos","events_url":"https://api.github.com/users/vsch/events{/privacy}","received_events_url":"https://api.github.com/users/vsch/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T13:44:52Z","updated_at":"2018-04-29T13:44:52Z","author_association":"OWNER","body":"@fgimian, I will add the action for compatibility with existing app behavior.\r\n\r\nI find all of these behaviors, sublime text and the IDE, weird and requiring way too many keystrokes to quickly delete a chunk of unnecessary code.\r\n\r\nI would think the following scenarios would make more sense, I added extra spaces between words to emphasize how multiple spaces are addressed.\r\n\r\n`|` shows caret position, with the next line being the result of using the **Delete To Word End** on the previous line\\:\r\n\r\nBeginning of line, which is treated as caret preceded by whitespace:\r\n\r\n```\r\n|Hello   there  my  friend.\r\n|there  my  friend.\r\n|my  friend.\r\n|friend.\r\n|\r\n```\r\n\r\nCaret is preceded by whitespace:\r\n\r\n```\r\nHello |  there  my  friend.\r\nHello |my  friend.\r\nHello |friend.\r\nHello |\r\n```\r\n\r\nHowever if the caret is preceded by non-whitespace then behavior is different:\r\n\r\n```\r\nHe|llo   there  my  friend.\r\nHe| there  my  friend.\r\nHe| my  friend.\r\nHe| friend.\r\nHe|\r\n```\r\n\r\nWhich I think is a more intuitive way to delete to end of word without un-intentionally splicing words together while at the same time not wasting keystrokes to delete intervening whitespace.\r\n"}}
{"actor":{"display_login":"vsch"}}