refactor: remove file token feature
Problem: The file metadata token (file:<path>:<line>) was implemented but is no longer wanted. Solution: Remove all traces — parse.lua token parsing, diff.lua reconciliation, views.lua LineMeta field, buffer.lua virtual text and PendingFile highlight, complete.lua omnifunc trigger, init.lua goto_file/add_here functions and -file edit token, plugin keymaps <Plug>(pending-goto-file) and <Plug>(pending-add-here), config.lua goto_file keymap field, vimdoc FILE TOKEN section, and spec/file_spec.lua.
This commit is contained in:
parent
0e0568769d
commit
904be4e910
10 changed files with 6 additions and 597 deletions
|
|
@ -12,13 +12,11 @@ local function edit_field_candidates()
|
|||
dk .. ':',
|
||||
'cat:',
|
||||
rk .. ':',
|
||||
'file:',
|
||||
'+!',
|
||||
'-!',
|
||||
'-' .. dk,
|
||||
'-cat',
|
||||
'-' .. rk,
|
||||
'-file',
|
||||
}
|
||||
end
|
||||
|
||||
|
|
@ -300,14 +298,6 @@ vim.keymap.set({ 'n', 'x', 'o' }, '<Plug>(pending-prev-task)', function()
|
|||
require('pending.textobj').prev_task(vim.v.count1)
|
||||
end)
|
||||
|
||||
vim.keymap.set('n', '<Plug>(pending-goto-file)', function()
|
||||
require('pending').goto_file()
|
||||
end)
|
||||
|
||||
vim.keymap.set('n', '<Plug>(pending-add-here)', function()
|
||||
require('pending').add_here()
|
||||
end)
|
||||
|
||||
vim.keymap.set('n', '<Plug>(pending-tab)', function()
|
||||
vim.cmd.tabnew()
|
||||
require('pending').open()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue