{"action":"created","issue":{"url":"https://api.github.com/repos/Shougo/denite.nvim/issues/79","repository_url":"https://api.github.com/repos/Shougo/denite.nvim","labels_url":"https://api.github.com/repos/Shougo/denite.nvim/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/Shougo/denite.nvim/issues/79/comments","events_url":"https://api.github.com/repos/Shougo/denite.nvim/issues/79/events","html_url":"https://github.com/Shougo/denite.nvim/pull/79","id":191670961,"number":79,"title":"[RFC] Improve prompt part of denite.","user":{"login":"lambdalisue","id":546312,"avatar_url":"https://avatars.githubusercontent.com/u/546312?v=3","gravatar_id":"","url":"https://api.github.com/users/lambdalisue","html_url":"https://github.com/lambdalisue","followers_url":"https://api.github.com/users/lambdalisue/followers","following_url":"https://api.github.com/users/lambdalisue/following{/other_user}","gists_url":"https://api.github.com/users/lambdalisue/gists{/gist_id}","starred_url":"https://api.github.com/users/lambdalisue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambdalisue/subscriptions","organizations_url":"https://api.github.com/users/lambdalisue/orgs","repos_url":"https://api.github.com/users/lambdalisue/repos","events_url":"https://api.github.com/users/lambdalisue/events{/privacy}","received_events_url":"https://api.github.com/users/lambdalisue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-25T10:31:09Z","updated_at":"2016-11-25T11:10:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Shougo/denite.nvim/pulls/79","html_url":"https://github.com/Shougo/denite.nvim/pull/79","diff_url":"https://github.com/Shougo/denite.nvim/pull/79.diff","patch_url":"https://github.com/Shougo/denite.nvim/pull/79.patch"},"body":"Re-opend #40\r\n\r\nWith this PR, you can\r\n\r\n- Define custom mappings with multiple keys like `<C-a><C-b>`\r\n- Define `expr` like mappings to execute Vim script within a mapping\r\n- Define `noremap` like mappings\r\n- Define `nowait` like mappings\r\n- Move cursor left and right with `<Left>/<Right>`, insert characters at the cursor position\r\n- Change Insert/Replace mode with `<Insert>`\r\n- Paste text from a specified register with `<C-r>`\r\n- Paste text from a default register (Not mapped)\r\n- Yank text to a specified register (Not mapped)\r\n- Yank text to a default register (Not mapped)\r\n- Use digraph with `<C-K>`\r\n- Use unprintable characters with `<C-V>`\r\n- Use command-line history with `<Up>/<Down>/<C-p>/<C-n>`\r\n- Use `timeout` and `timeoutlen` in neovim option to regulate the behaviour\r\n\r\nWhat you can do are listed at\r\n\r\n- https://github.com/lambdalisue/denite.nvim/blob/neovim-prompt/rplugin/python3/denite/prompt/action.py#L319\r\n- https://github.com/lambdalisue/denite.nvim/blob/neovim-prompt/rplugin/python3/denite/ui/action.py#L59\r\n\r\nAnd default mappings are listed at\r\n\r\n- https://github.com/lambdalisue/denite.nvim/blob/neovim-prompt/rplugin/python3/denite/ui/action.py#L81\r\n\r\nSo denite would be more flexible and powerful with neovim-prompt :+1: \r\n\r\n### The expr mapping\r\n\r\nUsers can define `expr` like mappings. The following example map `;` to use [pinkyless](https://github.com/lambdalisue/pinkyless.vim)'s stickyshift feature.\r\n\r\n```vim\r\ncall denite#custom#map('insert', ';', 'pinkyless#stickyshift#enter(\";\")', 'noremap expr')\r\n```\r\n\r\nThen `;a` become `A` in insert mode.\r\n\r\n### Difference\r\n\r\n- Mapping name has changed like `suspend -> <denite:suspend>`.\r\n- Users can type unprintable characters without `<C-J>`\r\n- `<C-J>` is removed while denite supports `<C-V>` or `<C-K>`\r\n- `<C-V>` (preview) become `<C-J>` while `<C-V>` is used to type unprintable characters in a native\r\n- `g` in normal mode become `gg`\r\n\r\nIf you find any difference other than above, please let me know.\r\n\r\n### ToDo\r\n- [x] Add neovim-prompt as git subtree\r\n- [x] Create denite UI which use neovim-prompt\r\n- [x] Support actions\r\n- [x] Support async feature\r\n- [x] Support resume feature\r\n- [ ] Write documents\r\n- [ ] Write migration note\r\n- [ ] Fix lint errors\r\n\r\n**This PR may break the current denite while it touched and changed a core part of denite so please help us with testing this branch**\r\n"},"comment":{"url":"https://api.github.com/repos/Shougo/denite.nvim/issues/comments/262934402","html_url":"https://github.com/Shougo/denite.nvim/pull/79#issuecomment-262934402","issue_url":"https://api.github.com/repos/Shougo/denite.nvim/issues/79","id":262934402,"user":{"login":"Shougo","id":41495,"avatar_url":"https://avatars.githubusercontent.com/u/41495?v=3","gravatar_id":"","url":"https://api.github.com/users/Shougo","html_url":"https://github.com/Shougo","followers_url":"https://api.github.com/users/Shougo/followers","following_url":"https://api.github.com/users/Shougo/following{/other_user}","gists_url":"https://api.github.com/users/Shougo/gists{/gist_id}","starred_url":"https://api.github.com/users/Shougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shougo/subscriptions","organizations_url":"https://api.github.com/users/Shougo/orgs","repos_url":"https://api.github.com/users/Shougo/repos","events_url":"https://api.github.com/users/Shougo/events{/privacy}","received_events_url":"https://api.github.com/users/Shougo/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T11:10:15Z","updated_at":"2016-11-25T11:10:15Z","body":"Thanks.  I will check it later."}}
{"actor":{"display_login":"Shougo"}}