add jjbm script to get latest bookmark
This commit is contained in:
@@ -13,11 +13,13 @@ return {
|
|||||||
{ import = "astrocommunity.diagnostics.trouble-nvim" },
|
{ import = "astrocommunity.diagnostics.trouble-nvim" },
|
||||||
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
|
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
|
||||||
{ import = "astrocommunity.editing-support.multicursors-nvim" },
|
{ import = "astrocommunity.editing-support.multicursors-nvim" },
|
||||||
|
{ import = "astrocommunity.editing-support.rainbow-delimiters-nvim" },
|
||||||
-- { import = "astrocommunity.lsp.lsp-signature-nvim" },
|
-- { import = "astrocommunity.lsp.lsp-signature-nvim" },
|
||||||
{ import = "astrocommunity.lsp.inc-rename-nvim" },
|
{ import = "astrocommunity.lsp.inc-rename-nvim" },
|
||||||
{ import = "astrocommunity.markdown-and-latex.glow-nvim" },
|
{ import = "astrocommunity.markdown-and-latex.glow-nvim" },
|
||||||
-- { import = "astrocommunity.motion.flash-nvim" },
|
-- { import = "astrocommunity.motion.flash-nvim" },
|
||||||
{ import = "astrocommunity.scrolling.mini-animate" },
|
{ import = "astrocommunity.scrolling.mini-animate" },
|
||||||
|
{ import = "astrocommunity.search.grug-far-nvim" },
|
||||||
{ import = "astrocommunity.test.neotest" },
|
{ import = "astrocommunity.test.neotest" },
|
||||||
{ import = "astrocommunity.utility.noice-nvim" },
|
{ import = "astrocommunity.utility.noice-nvim" },
|
||||||
-- { import = "astrocommunity.workflow.hardtime-nvim" },
|
-- { import = "astrocommunity.workflow.hardtime-nvim" },
|
||||||
@@ -26,19 +28,19 @@ return {
|
|||||||
"kylechui/nvim-surround",
|
"kylechui/nvim-surround",
|
||||||
opts = {
|
opts = {
|
||||||
keymaps = {
|
keymaps = {
|
||||||
normal = '<leader>sa',
|
normal = "<leader>sa",
|
||||||
normal_cur = false,
|
normal_cur = false,
|
||||||
normal_line = false,
|
normal_line = false,
|
||||||
normal_cur_line = false,
|
normal_cur_line = false,
|
||||||
visual = '<leader>s',
|
visual = "<leader>s",
|
||||||
visual_line = '<leader>S',
|
visual_line = "<leader>S",
|
||||||
delete = '<leader>sd',
|
delete = "<leader>sd",
|
||||||
change = '<leader>sr',
|
change = "<leader>sr",
|
||||||
},
|
},
|
||||||
aliases = {
|
aliases = {
|
||||||
['i'] = ']', -- Index
|
["i"] = "]", -- Index
|
||||||
['r'] = ')', -- Round
|
["r"] = ")", -- Round
|
||||||
['b'] = '}', -- Brackets
|
["b"] = "}", -- Brackets
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -59,23 +61,23 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/noice.nvim",
|
"folke/noice.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
routes = {
|
routes = {
|
||||||
{
|
{
|
||||||
filter = {
|
filter = {
|
||||||
event = 'msg_show',
|
event = "msg_show",
|
||||||
any = {
|
any = {
|
||||||
{ find = '%d+L, %d+B' },
|
{ find = "%d+L, %d+B" },
|
||||||
{ find = '; after #%d+' },
|
{ find = "; after #%d+" },
|
||||||
{ find = '; before #%d+' },
|
{ find = "; before #%d+" },
|
||||||
{ find = '%d fewer lines' },
|
{ find = "%d fewer lines" },
|
||||||
{ find = '%d more lines' },
|
{ find = "%d more lines" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = { skip = true },
|
opts = { skip = true },
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
if status is-interactive
|
if status is-interactive
|
||||||
# Commands to run in interactive sessions can go here
|
# 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
|
if type -q zoxide
|
||||||
zoxide init fish | source
|
zoxide init fish | source
|
||||||
end
|
end
|
||||||
@@ -24,4 +20,7 @@ end
|
|||||||
|
|
||||||
alias ls="lsd"
|
alias ls="lsd"
|
||||||
|
|
||||||
|
fish_add_path $HOME/.webman/bin
|
||||||
|
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ if not functions -q fisher
|
|||||||
end
|
end
|
||||||
|
|
||||||
fish_add_path ~/.webman/bin/
|
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 atuin is not installed, install it
|
||||||
if not type -q atuin
|
if not type -q atuin
|
||||||
@@ -19,4 +20,6 @@ if not type -q atuin
|
|||||||
else
|
else
|
||||||
atuin import auto
|
atuin import auto
|
||||||
end
|
end
|
||||||
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