{"action":"created","issue":{"url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/176","repository_url":"https://api.github.com/repos/LiMinggang/madedit-mod","labels_url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/176/comments","events_url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/176/events","html_url":"https://github.com/LiMinggang/madedit-mod/issues/176","id":142096501,"number":176,"title":"An Enhanced \"Auto-complete\"","user":{"login":"zhulaojianke","id":16543111,"avatar_url":"https://avatars.githubusercontent.com/u/16543111?v=3","gravatar_id":"","url":"https://api.github.com/users/zhulaojianke","html_url":"https://github.com/zhulaojianke","followers_url":"https://api.github.com/users/zhulaojianke/followers","following_url":"https://api.github.com/users/zhulaojianke/following{/other_user}","gists_url":"https://api.github.com/users/zhulaojianke/gists{/gist_id}","starred_url":"https://api.github.com/users/zhulaojianke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhulaojianke/subscriptions","organizations_url":"https://api.github.com/users/zhulaojianke/orgs","repos_url":"https://api.github.com/users/zhulaojianke/repos","events_url":"https://api.github.com/users/zhulaojianke/events{/privacy}","received_events_url":"https://api.github.com/users/zhulaojianke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LiMinggang/madedit-mod/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-19T20:04:52Z","updated_at":"2016-05-27T05:28:43Z","closed_at":null,"body":"用英文怎么说呢？大概意思就是，咱们现在可以通过修改.syn文件使部分“符号对”可以在输入的时候自动完成，如果这种功能能够扩展为我“选上某个段落、单词或者字符串”之后，输入某个自定义为自动完成的符号之后，就可以在所选的文本两侧加上相应的符号，那样在修改文本的时候就方便多了。\r\n\r\n举个例子，比如说下面的一串字儿：\r\ndadaee6q1351a5da54fa21\r\n我在syn中定义了 ( )和[ ]是自动完成的，于是我选择了上面的“ee6q13”，之后按“(”键，再选择“54fa”，之后按“[”键，就形成了下面的文本：\r\ndada(ee6q13)51a5da[54fa]21\r\n\r\n在输入的时候，现在的自动完成已经很好用了；但是在修改编辑的时候，需要在某些地方加上这样的括号、引号，或者其他自定义的“符号对”，就很麻烦了——需要用鼠标点击一个位置，输入一个符号，再点击另外一个位置，输入相对应的符号。而且当我将这个“符号对”设置为“自动完成”时，很有可能在进行这样的操作时，自动在第一个位置出现的是符号对，此时我还需要在把多出来的部分用delete删掉。\r\n\r\n如果通过鼠标选择之后，直接像在空白区域输入自动完成符号那样插入相应的符号对，就方便多了！希望您能够考虑哈！\r\n\r\n此时当读者想删掉所选择的文字，另外输入一个自动完成的符号时，可以用space给出一个空格或者用backspace或delete，然后输入自动完成的符号，仅多了1次按键。而我上面提的输入自动完成符号的方法，可以节省用户3次按键机会（算上鼠标点击）。所以我觉得还是很经济的哈。"},"comment":{"url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/comments/222063379","html_url":"https://github.com/LiMinggang/madedit-mod/issues/176#issuecomment-222063379","issue_url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/176","id":222063379,"user":{"login":"zhulaojianke","id":16543111,"avatar_url":"https://avatars.githubusercontent.com/u/16543111?v=3","gravatar_id":"","url":"https://api.github.com/users/zhulaojianke","html_url":"https://github.com/zhulaojianke","followers_url":"https://api.github.com/users/zhulaojianke/followers","following_url":"https://api.github.com/users/zhulaojianke/following{/other_user}","gists_url":"https://api.github.com/users/zhulaojianke/gists{/gist_id}","starred_url":"https://api.github.com/users/zhulaojianke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhulaojianke/subscriptions","organizations_url":"https://api.github.com/users/zhulaojianke/orgs","repos_url":"https://api.github.com/users/zhulaojianke/repos","events_url":"https://api.github.com/users/zhulaojianke/events{/privacy}","received_events_url":"https://api.github.com/users/zhulaojianke/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T05:28:43Z","updated_at":"2016-05-27T05:28:43Z","body":"下面这个是WordTips中给出的在Word中实现这个功能的宏代码：\r\n\r\nSub AddBrackets()\r\n Dim iCount As Integer\r\n iCount = 1\r\n While Right(Selection.Text, 1) = \" \" Or _\r\n Right(Selection.Text, 1) = Chr(13)\r\n Selection.MoveLeft Unit:=wdCharacter, Count:=1, _\r\n  Extend:=wdExtend\r\n iCount = iCount + 1\r\n Wend\r\n\r\n Selection.InsertAfter \"]\"\r\n Selection.InsertBefore \"[\"\r\n Selection.MoveRight Unit:=wdCharacter, Count:=iCount\r\nEnd Sub\r\n\r\n不知道是否会对您有所帮助。"}}
{"actor":{"display_login":"zhulaojianke"}}