bleh
This commit is contained in:
@ -69,17 +69,16 @@ set -s set-clipboard on
|
|||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
|
|
||||||
# Setup 'v' to begin selection as in Vim
|
# Setup 'v' to begin selection as in Vim
|
||||||
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||||
|
|
||||||
# bind-key -T copy-mode-vi y send-keys -X copy-pipe 'yank > #{pane_tty}'
|
|
||||||
# transfer copied text to attached terminal with yank
|
# transfer copied text to attached terminal with yank
|
||||||
bind-key -T copy-mode-vi Y send-keys -X copy-pipe 'yank > #{pane_tty}'
|
bind-key -T copy-mode-vi Y send-keys -X copy-pipe 'tmux save-buffer - | yank > #{pane_tty}'
|
||||||
|
|
||||||
# transfer most-recently copied text to attached terminal with yank
|
# transfer most-recently copied text to attached terminal with yank
|
||||||
bind-key -n M-y run-shell 'tmux save-buffer - | yank > #{pane_tty}'
|
# bind-key -n M-y run-shell 'tmux save-buffer - | yank > #{pane_tty}'
|
||||||
|
|
||||||
# transfer previously copied text (chosen from a menu) to attached terminal
|
# transfer previously copied text (chosen from a menu) to attached terminal
|
||||||
bind-key -n M-Y choose-buffer 'run-shell "tmux save-buffer -b \"%%%\" - | yank > #{pane_tty}"'
|
# bind-key -n M-Y choose-buffer 'run-shell "tmux save-buffer -b \"%%%\" - | yank > #{pane_tty}"'
|
||||||
|
|
||||||
# allowd pane-navigation while in copy-mode
|
# allowd pane-navigation while in copy-mode
|
||||||
bind-key -T copy-mode-vi C-h select-pane -L
|
bind-key -T copy-mode-vi C-h select-pane -L
|
||||||
|
@ -20,11 +20,14 @@ windows:
|
|||||||
- other:
|
- other:
|
||||||
- hgd experiments
|
- hgd experiments
|
||||||
|
|
||||||
- notes:
|
- critique:
|
||||||
|
layout: main-horizontal
|
||||||
panes:
|
panes:
|
||||||
- main:
|
- main:
|
||||||
- cd ~/zettelkasten
|
- hgd google-comments
|
||||||
- vim ~/zettelkasten/Todo.md
|
- vim
|
||||||
|
- other:
|
||||||
|
- hgd google-comments
|
||||||
|
|
||||||
- dotfiles:
|
- dotfiles:
|
||||||
layout: main-horizontal
|
layout: main-horizontal
|
||||||
|
@ -129,45 +129,33 @@ return {
|
|||||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "google_comments",
|
name = "critique_nvim",
|
||||||
-- url = "sso://googler@user/chmnchiang/google-comments",
|
dir = "/google/src/cloud/cnieves/google-comments/google3/experimental/users/cnieves/neovim/critique-nvim/",
|
||||||
dir = "/google/src/cloud/cnieves/google-comments/google3/experimental/users/chmnchiang/neovim/google-comments/",
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"rktjmp/time-ago.vim",
|
"rktjmp/time-ago.vim",
|
||||||
"rcarriga/nvim-notify",
|
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- vim.notify = require("notify")
|
-- vim.notify = require("notify")
|
||||||
-- Here are all the options and their default values:
|
-- Here are all the options and their default values:
|
||||||
require("google.comments").setup({
|
require("critique.comments").setup({
|
||||||
-- command = {'/google/bin/releases/editor-devtools/get_comments.par', '--full', '--json', "-x=''"},
|
-- sign = "COMMENT_ICON",
|
||||||
stubby = true,
|
|
||||||
command = {
|
|
||||||
'stubby --output_json call blade:codereview-rpc CodereviewRpcService.GetComments "changelist_number: $(/google/data/ro/teams/fig/bin/vcstool pending-change-number)"',
|
|
||||||
},
|
|
||||||
sign = "COMMENT_ICON",
|
|
||||||
-- Fetch the comments after calling `setup`.
|
-- Fetch the comments after calling `setup`.
|
||||||
auto_fetch = true,
|
auto_fetch = true,
|
||||||
display = {
|
render_resolved_threads = true,
|
||||||
-- The width of the comment display window.
|
|
||||||
width = 50,
|
|
||||||
-- When showing file paths, use relative paths or not.
|
|
||||||
relative_path = true,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
local map = require("utils").map
|
local map = require("utils").map
|
||||||
-- here are some mappings you might want:
|
-- here are some mappings you might want:
|
||||||
map("n", "]c", [[<Cmd>GoogleCommentsGotoNextComment<CR>]])
|
map("n", "]c", [[<Cmd>CritiqueGotoNextComment<CR>]])
|
||||||
map("n", "[c", [[<Cmd>GoogleCommentsGotoPrevComment<CR>]])
|
map("n", "[c", [[<Cmd>CritiqueGotoPrevComment<CR>]])
|
||||||
|
|
||||||
map("n", "<Leader>lc", [[<Cmd>GoogleCommentsToggleLineComments<CR>]])
|
map("n", "<Leader>lc", [[<Cmd>CritiqueToggleLineComments<CR>]])
|
||||||
map("n", "<Leader>ac", [[<Cmd>GoogleCommentsToggleAllComments<CR>]])
|
map("n", "<Leader>ac", [[<Cmd>CritiqueToggleAllComments<CR>]])
|
||||||
map("n", "<Leader>fc", [[<Cmd>GoogleCommentsFetchComments<CR>]])
|
map("n", "<Leader>fc", [[<Cmd>CritiqueFetchComments<CR>]])
|
||||||
map("n", "<Leader>tc", [[<Cmd>GoogleCommentsTelescope<CR>]])
|
map("n", "<Leader>tc", [[<Cmd>CritiqueCommentsTelescope<CR>]])
|
||||||
|
|
||||||
vim.fn.sign_define("COMMENT_ICON", { text = "" })
|
-- vim.fn.sign_define("COMMENT_ICON", { text = "" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -199,3 +199,4 @@ bdoctor_modules() {
|
|||||||
echo "HOURLY(EXECUTION): $hourly"
|
echo "HOURLY(EXECUTION): $hourly"
|
||||||
}
|
}
|
||||||
alias bisect=/google/data/ro/teams/tetralight/bin/bisect
|
alias bisect=/google/data/ro/teams/tetralight/bin/bisect
|
||||||
|
alias copybara='/google/bin/releases/copybara/public/copybara/copybara'
|
||||||
|
Reference in New Issue
Block a user