Compare commits

...

4 Commits

4 changed files with 17 additions and 3 deletions

View File

@ -22,6 +22,10 @@ export XMODIFIERS="@im=fcitx"
export QT_IM_MODULE=fcitx export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx export GTK_IM_MODULE=fcitx
export XDG_CONFIG_HOME="${HOME}/.config"
export QT_STYLE_OVERRIDE=kvantum
#export GTK_USE_PORTAL=1 #export GTK_USE_PORTAL=1
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then

View File

@ -38,6 +38,7 @@ fi
# NNN configuration # NNN configuration
export NNN_FIFO=/tmp/nnn.fifo export NNN_FIFO=/tmp/nnn.fifo
export NNN_PLUG='p:preview-tui' export NNN_PLUG='p:preview-tui'
export NNN_TRASH=1
# fzf # fzf
export FZF_DEFAULT_OPTS="--height 40% --layout=reverse" export FZF_DEFAULT_OPTS="--height 40% --layout=reverse"

View File

@ -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>ff", vim.cmd.Files)
vim.keymap.set("n", "<leader>ft", vim.cmd.Tags) vim.keymap.set("n", "<leader>ft", vim.cmd.Tags)
vim.keymap.set("n", "<leader>fr", vim.cmd.Rg) vim.keymap.set("n", "<leader>fr", vim.cmd.Rg)
-- -- insert mode completion
vim.keymap.set("i", "<C-e>", "<C-n>")
-- Vim argument list bindings -- Vim argument list bindings
-- --
-- Generate list of arg action callbacks, which then executes vim.cmd.args() -- Generate list of arg action callbacks, which then executes vim.cmd.args()

View File

@ -3,8 +3,8 @@
# These are functions related to fzf used to go to locations, edit # These are functions related to fzf used to go to locations, edit
# configurations, or start a tmux session in common directories. # configurations, or start a tmux session in common directories.
# Finds within current directory and cd into the location of the file or # Finds recursively within current directory and cd into the location of the
# directory. # file or directory.
goto() goto()
{ {
path=$(find $1 2> /dev/null | fzf) path=$(find $1 2> /dev/null | fzf)
@ -12,6 +12,14 @@ goto()
cd "$path" 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 # Quickly find and edit a file within ~/.config or ~/Documents
cfg() cfg()
{ {