-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
I don't know of a better place to write this so I'm doing it here but feel free to redirect me.
It will be nice if the groups are inherited from "default" so one can just add some augends for certain filetypes without having to duplicate the default group.
It will be also nice to make dial to use the group with the name of the filetype if it exists otherwise use 'default', that way instead of having several maps one could use the same and profit.
If you are ok with those, please, let me know. We could discuss the api and I could implement the requested changes.
By now I think both could be accomplished with this api:
-- This one is a function I also think deal should have, probably with another name
local function words(vals)
return augend.constant.new {
elements = vals,
word = true,
cyclic = true,
}
end
require("dial.config").augends:register_group {
default = {
augend.date.alias["%Y-%m-%d"],
...
},
python = {
words { "False", " True" },
extending="default" -- Or maybe true if it's from default, so less typing
}
}
vim.keymap.set("n", "<C-A>", dm.inc_normal(filetype=true), { noremap = true })
...MariaSolOs and Groz17
Metadata
Metadata
Assignees
Labels
No labels