Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nyngwang/NeoWell.lua
Well... I will fix this line later
https://github.com/nyngwang/NeoWell.lua
Last synced: about 1 month ago
JSON representation
Well... I will fix this line later
- Host: GitHub
- URL: https://github.com/nyngwang/NeoWell.lua
- Owner: nyngwang
- Created: 2022-02-01T05:19:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-11T19:02:26.000Z (about 1 year ago)
- Last Synced: 2024-01-24T10:42:34.215Z (4 months ago)
- Language: Lua
- Size: 21.5 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Lists
- awesome-neovim - nyngwang/NeoWell.lua - Sometimes you will want to fix some lines later. Store lines into qf with some note so you know what to do when you really want to fix it. (Debugging / Quickfix)
- awesome-stars - nyngwang/NeoWell.lua - Well... I will fix this line later (Lua)
- awesome-stars - nyngwang/NeoWell.lua - Well... I will fix this line later (Lua)
- awesome-neovim - nyngwang/NeoWell.lua - Sometimes you will want to fix some lines later. Store lines into qf with some note so you know what to do when you really want to fix it. (Debugging / Quickfix)
- awesome-neovim - nyngwang/NeoWell.lua - Sometimes you will want to fix some lines later. Store lines into qf with some note so you know what to do when you really want to fix it. (Debugging / Quickfix)
README
NeoWell.lua
===### Features
- Toggle the only NeoWell list
- Leave existing ones **intact**
- List shown in the very bottom (to put emphasis on that it's global)
- Goto the target brainlessly via ``(see the default settings below)
- Just type `\` twice to back to the list, no need to use command
- Prompt, _user-friendly-ly_
- for the comment at the current line
- to confirm **comment rewording** :)
- to confirm deletion of the hovered item
- to confirm deletion of **ALL** items
- Filtering is on the schedule### Example Config
```lua
local NOREF_NOERR_TRUNC = { noremap = true, silent = true, nowait = true }
----
use {
'nyngwang/NeoWell.lua',
config = function ()
require('neo-well').setup {
height = 10
}
end
}
vim.keymap.set('n', '\\', function () vim.cmd('NeoWellToggle') end, NOREF_NOERR_TRUNC)
vim.keymap.set('n', '/', function () vim.cmd('NeoWellAppend') end, NOREF_NOERR_TRUNC)
vim.keymap.set('n', '', function ()
-- vim.cmd('NeoZoomToggle') -- remove this if you don't know what it is
vim.cmd('NeoWellJump')
end, NOREF_NOERR_TRUNC)
vim.keymap.set('n', 'r', function () vim.cmd('NeoWellEdit') end, NOREF_NOERR_TRUNC)
vim.keymap.set('n', 'd', function () vim.cmd('NeoWellOut') end, NOREF_NOERR_TRUNC)
vim.keymap.set('n', 'D', function () vim.cmd('NeoWellWipeOut') end, NOREF_NOERR_TRUNC)
```### TODO list
- [x] toggle the list
- [x] move to the bottom window
- [x] prompt: to add the current line into items
- [x] buffer command:
- [x] goto item (TODO preview: postponed because need to select window, too hard)
- [x] prompt: edit item text (the change reflected immediately by default :) )
- [x] prompt: confirm delete current item (the change reflected immediately by default :) )
- [x] should reflect the change immediately
- [x] the cursor move to the next item
- [x] prompt: confirm delete all items### Future & Ref.
#### Will do
- [ ] filter via text
- [jeetsukumaran/quickfix-rex.nvim](https://github.com/jeetsukumaran/quickfix-rex.nvim)
- [itchyny/vim-qfedit](https://github.com/itchyny/vim-qfedit)
- [ ] export todo to a file#### ??????
- [ ] stablize when toggling
- [ ] prompt: edit list title (not important so far)
- [ ] wrap-around on the first/last item (not important so far)
- [ten3roberts/qf.nvim](https://github.com/ten3roberts/qf.nvim)