Comments (4)
Currently the
s
key toggles between adding and removing items from the list. The issue is that I often want to quickly add a bunch of different files without checking if they are already there and I end up removing them.I see that the
save
arrow.nvim/lua/arrow/persist.lua
Line 41 in 75c892c
function already exists. However:
- is it safe to use that exposed function?
- it would be nice to provide an 'on_attach' function where we can set local bindings to the arrow buffer instead of global ones
You can use safely:
vim.keymap.set("n", "<C-s>", require("arrow.persist").toggle)
from arrow.nvim.
Is there a way to set the keybind only for the arrow
buffer though?
Basically I am trying to do either something like:
require("arrow").setup({
on_attach = function()
vim.keymap.set("n", "a", require("arrow.persist").save, { buffer = true})
end,
})
or maybe
vim.api.nvim_create_autocmd("FileType", {
pattern = "arrow",
callback = function()
vim.keymap.set("n", "a", require("arrow.persist").save, { buffer = true})
end,
})
from arrow.nvim.
Is there a way to set the keybind only for the
arrow
buffer though?Basically I am trying to do either something like:
require("arrow").setup({ on_attach = function() vim.keymap.set("n", "a", require("arrow.persist").save, { buffer = true}) end, })or maybe
vim.api.nvim_create_autocmd("FileType", { pattern = "arrow", callback = function() vim.keymap.set("n", "a", require("arrow.persist").save, { buffer = true}) end, })
There is no way to just save, just toggle. I will add an option to do that later on the day
from arrow.nvim.
Created an option to save / remove without toggle:
Just add to setup:
separate_save_and_remove = true,
from arrow.nvim.
Related Issues (20)
- Feat: Add bookmark icons to statuscol? HOT 2
- Bug: icon highlights apply to actions after deleting a few items from the modal HOT 1
- strange leader_key behaviour when updating HOT 2
- Bug: cursor disappears after float exit HOT 6
- arrow.nvim fails on leader key call
- How do I call custom_actions entry? HOT 4
- BUG - is on arrowfile check isnt working correctly HOT 1
- feature request: Use ctrlspace workspace for save_key
- Getting empty buffer only when selecting bookmarks by index key HOT 4
- [Bug] persist buffer-local bookmarks on lazy load HOT 5
- [Bug] init failing because default buffer config missing z-index HOT 1
- selectively or completely hide keymaps on the menu HOT 1
- hide_handbook not working on buffer mark view HOT 6
- select item with letter keys as opposed to number keys HOT 2
- prev_buffer_bookmark implementation is incorrect HOT 2
- Feature: remove hints ui and enter directly to modes
- Feature: Jump to previous/next line bookmark in buffer? HOT 1
- Feature: Allow disabling leader key HOT 2
- saved files keep disappearing from arrow list HOT 6
- Bookmark Navigation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arrow.nvim.