Compare commits
4 Commits
8877db9b16
...
b68239d658
Author | SHA1 | Date | |
---|---|---|---|
b68239d658 | |||
8056f66118 | |||
1bf01a8eac | |||
55d0392a07 |
@ -22,6 +22,10 @@ export XMODIFIERS="@im=fcitx"
|
||||
export QT_IM_MODULE=fcitx
|
||||
export GTK_IM_MODULE=fcitx
|
||||
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
|
||||
export QT_STYLE_OVERRIDE=kvantum
|
||||
|
||||
#export GTK_USE_PORTAL=1
|
||||
|
||||
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
|
||||
|
1
.bashrc
1
.bashrc
@ -38,6 +38,7 @@ fi
|
||||
# NNN configuration
|
||||
export NNN_FIFO=/tmp/nnn.fifo
|
||||
export NNN_PLUG='p:preview-tui'
|
||||
export NNN_TRASH=1
|
||||
|
||||
# fzf
|
||||
export FZF_DEFAULT_OPTS="--height 40% --layout=reverse"
|
||||
|
@ -4,7 +4,8 @@ vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
|
||||
vim.keymap.set("n", "<leader>ff", vim.cmd.Files)
|
||||
vim.keymap.set("n", "<leader>ft", vim.cmd.Tags)
|
||||
vim.keymap.set("n", "<leader>fr", vim.cmd.Rg)
|
||||
--
|
||||
-- insert mode completion
|
||||
vim.keymap.set("i", "<C-e>", "<C-n>")
|
||||
-- Vim argument list bindings
|
||||
--
|
||||
-- Generate list of arg action callbacks, which then executes vim.cmd.args()
|
||||
|
@ -3,8 +3,8 @@
|
||||
# These are functions related to fzf used to go to locations, edit
|
||||
# configurations, or start a tmux session in common directories.
|
||||
|
||||
# Finds within current directory and cd into the location of the file or
|
||||
# directory.
|
||||
# Finds recursively within current directory and cd into the location of the
|
||||
# file or directory.
|
||||
goto()
|
||||
{
|
||||
path=$(find $1 2> /dev/null | fzf)
|
||||
@ -12,6 +12,14 @@ goto()
|
||||
cd "$path"
|
||||
}
|
||||
|
||||
# Finds files recursively within current directory and edits file.
|
||||
edit()
|
||||
{
|
||||
file=$(find $1 -type f 2> /dev/null | fzf)
|
||||
[ -z "$file" ] && return
|
||||
$EDITOR "$file"
|
||||
}
|
||||
|
||||
# Quickly find and edit a file within ~/.config or ~/Documents
|
||||
cfg()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user