add jjbm script to get latest bookmark
This commit is contained in:
@@ -13,11 +13,13 @@ return {
|
||||
{ import = "astrocommunity.diagnostics.trouble-nvim" },
|
||||
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
|
||||
{ import = "astrocommunity.editing-support.multicursors-nvim" },
|
||||
{ import = "astrocommunity.editing-support.rainbow-delimiters-nvim" },
|
||||
-- { import = "astrocommunity.lsp.lsp-signature-nvim" },
|
||||
{ import = "astrocommunity.lsp.inc-rename-nvim" },
|
||||
{ import = "astrocommunity.markdown-and-latex.glow-nvim" },
|
||||
-- { import = "astrocommunity.motion.flash-nvim" },
|
||||
{ import = "astrocommunity.scrolling.mini-animate" },
|
||||
{ import = "astrocommunity.search.grug-far-nvim" },
|
||||
{ import = "astrocommunity.test.neotest" },
|
||||
{ import = "astrocommunity.utility.noice-nvim" },
|
||||
-- { import = "astrocommunity.workflow.hardtime-nvim" },
|
||||
@@ -26,19 +28,19 @@ return {
|
||||
"kylechui/nvim-surround",
|
||||
opts = {
|
||||
keymaps = {
|
||||
normal = '<leader>sa',
|
||||
normal = "<leader>sa",
|
||||
normal_cur = false,
|
||||
normal_line = false,
|
||||
normal_cur_line = false,
|
||||
visual = '<leader>s',
|
||||
visual_line = '<leader>S',
|
||||
delete = '<leader>sd',
|
||||
change = '<leader>sr',
|
||||
visual = "<leader>s",
|
||||
visual_line = "<leader>S",
|
||||
delete = "<leader>sd",
|
||||
change = "<leader>sr",
|
||||
},
|
||||
aliases = {
|
||||
['i'] = ']', -- Index
|
||||
['r'] = ')', -- Round
|
||||
['b'] = '}', -- Brackets
|
||||
["i"] = "]", -- Index
|
||||
["r"] = ")", -- Round
|
||||
["b"] = "}", -- Brackets
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -64,18 +66,18 @@ return {
|
||||
routes = {
|
||||
{
|
||||
filter = {
|
||||
event = 'msg_show',
|
||||
event = "msg_show",
|
||||
any = {
|
||||
{ find = '%d+L, %d+B' },
|
||||
{ find = '; after #%d+' },
|
||||
{ find = '; before #%d+' },
|
||||
{ find = '%d fewer lines' },
|
||||
{ find = '%d more lines' },
|
||||
{ find = "%d+L, %d+B" },
|
||||
{ find = "; after #%d+" },
|
||||
{ find = "; before #%d+" },
|
||||
{ find = "%d fewer lines" },
|
||||
{ find = "%d more lines" },
|
||||
},
|
||||
},
|
||||
opts = { skip = true },
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
functions -q _insert_jj_after_git; and _insert_jj_after_git
|
||||
if set -q GHOSTTY_RESOURCES_DIR
|
||||
source "$GHOSTTY_RESOURCES_DIR/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish"
|
||||
end
|
||||
if type -q zoxide
|
||||
zoxide init fish | source
|
||||
end
|
||||
@@ -24,4 +20,7 @@ end
|
||||
|
||||
alias ls="lsd"
|
||||
|
||||
fish_add_path $HOME/.webman/bin
|
||||
|
||||
set -gx EDITOR nvim
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ if not functions -q fisher
|
||||
end
|
||||
|
||||
fish_add_path ~/.webman/bin/
|
||||
set -gx --path XDG_DATA_DIRS $XDG_DATA_DIRS:$HOME/.local/share/
|
||||
|
||||
# if atuin is not installed, install it
|
||||
if not type -q atuin
|
||||
@@ -20,3 +21,5 @@ if not type -q atuin
|
||||
atuin import auto
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
3
dot_config/private_fish/functions/jjbm.fish
Normal file
3
dot_config/private_fish/functions/jjbm.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
function jjbm
|
||||
jj log -r 'heads(::@ & bookmarks())' --ignore-working-copy --template 'bookmarks' --no-graph | head -n1 | cut -d " " -f1
|
||||
end
|
||||
Reference in New Issue
Block a user