mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
nnn: change default flags when opening
This commit is contained in:
parent
14e7b8399f
commit
6cf209aac3
@ -101,7 +101,7 @@ then
|
|||||||
export NNN_PLUG='t:preview-tui;m:nmount;f:fzcd;c:chksum;n:nuke;z:fzz;b:bulknew;d:dups:h:hexview;o:organize;p:pdfview;s:suedit;r:renamer'
|
export NNN_PLUG='t:preview-tui;m:nmount;f:fzcd;c:chksum;n:nuke;z:fzz;b:bulknew;d:dups:h:hexview;o:organize;p:pdfview;s:suedit;r:renamer'
|
||||||
export NNN_FIFO="/tmp/nnn.fifo"
|
export NNN_FIFO="/tmp/nnn.fifo"
|
||||||
export NNN_ARCHIVE='\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$'
|
export NNN_ARCHIVE='\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$'
|
||||||
export NNN_OPENER="$XDG_CONFIG_HOME/nnn/plugins/nuke"
|
# export NNN_OPENER="$XDG_CONFIG_HOME/nnn/plugins/nuke"
|
||||||
export USE_SCOPE=1
|
export USE_SCOPE=1
|
||||||
export NNN_COLORS='2345'
|
export NNN_COLORS='2345'
|
||||||
export NNN_FCOLORS='c1e20402006033f7c6d6ab01'
|
export NNN_FCOLORS='c1e20402006033f7c6d6ab01'
|
||||||
@ -522,7 +522,7 @@ basherpacks_update() {
|
|||||||
|
|
||||||
# nnn with cd on quit
|
# nnn with cd on quit
|
||||||
if command -v nnn >/dev/null; then
|
if command -v nnn >/dev/null; then
|
||||||
alias nnn="nnn -Hdcx"
|
alias nnn="nnn -Hdex"
|
||||||
alias ncp="cat ${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection} | tr '\0' '\n'"
|
alias ncp="cat ${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection} | tr '\0' '\n'"
|
||||||
|
|
||||||
n () {
|
n () {
|
||||||
|
@ -44,7 +44,7 @@ abbr youbest 'youtube-dl -f bestvideo+bestaudio'
|
|||||||
abbr youlist 'youtube-dl -f bestvideo+bestaudio --yes-playlist'
|
abbr youlist 'youtube-dl -f bestvideo+bestaudio --yes-playlist'
|
||||||
# nnn
|
# nnn
|
||||||
if command -v nnn >/dev/null
|
if command -v nnn >/dev/null
|
||||||
abbr nnn 'nnn -Hdcx'
|
abbr nnn 'nnn -Hdex'
|
||||||
alias ncp="cat $XDG_CONFIG_HOME/nnn/.selection | tr '\0' '\n'"
|
alias ncp="cat $XDG_CONFIG_HOME/nnn/.selection | tr '\0' '\n'"
|
||||||
|
|
||||||
function n --wraps nnn --description 'support nnn quit and change directory'
|
function n --wraps nnn --description 'support nnn quit and change directory'
|
||||||
|
@ -104,7 +104,7 @@ if command -v nnn >/dev/null
|
|||||||
set -gx NNN_PLUG 't:preview-tui;m:nmount;f:fzcd;c:chksum;n:nuke;z:fzz;b:bulknew;d:dups:h:hexview;o:organize;p:pdfview;s:suedit;r:renamer'
|
set -gx NNN_PLUG 't:preview-tui;m:nmount;f:fzcd;c:chksum;n:nuke;z:fzz;b:bulknew;d:dups:h:hexview;o:organize;p:pdfview;s:suedit;r:renamer'
|
||||||
set -gx NNN_FIFO /tmp/nnn.fifo
|
set -gx NNN_FIFO /tmp/nnn.fifo
|
||||||
set -gx NNN_ARCHIVE '\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$'
|
set -gx NNN_ARCHIVE '\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$'
|
||||||
set -gx NNN_OPENER $XDG_CONFIG_HOME/nnn/plugins/nuke
|
# set -gx NNN_OPENER $XDG_CONFIG_HOME/nnn/plugins/nuke
|
||||||
set -gx USE_SCOPE 1
|
set -gx USE_SCOPE 1
|
||||||
set -gx NNN_FCOLORS 'c1e20402006033f7c6d6ab01'
|
set -gx NNN_FCOLORS 'c1e20402006033f7c6d6ab01'
|
||||||
set -gx NNN_COLORS '2345'
|
set -gx NNN_COLORS '2345'
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
let g:nnn#set_default_mappings = 0
|
let g:nnn#set_default_mappings = 0
|
||||||
let g:nnn#command = 'nnn -Hcdx'
|
let g:nnn#command = 'nnn -Hdex'
|
||||||
let g:nnn#layout = { 'window': { 'width': 0.9, 'height': 0.8, 'highlight': 'Debug' } }
|
let g:nnn#layout = { 'window': { 'width': 0.9, 'height': 0.8, 'highlight': 'Debug' } }
|
||||||
|
@ -86,7 +86,7 @@ then
|
|||||||
export NNN_PLUG='t:preview-tui;m:nmount;f:fzcd;c:chksum;n:nuke;z:fzz;b:bulknew;d:dups:h:hexview;o:organize;p:pdfview;s:suedit;r:renamer'
|
export NNN_PLUG='t:preview-tui;m:nmount;f:fzcd;c:chksum;n:nuke;z:fzz;b:bulknew;d:dups:h:hexview;o:organize;p:pdfview;s:suedit;r:renamer'
|
||||||
export NNN_FIFO="/tmp/nnn.fifo"
|
export NNN_FIFO="/tmp/nnn.fifo"
|
||||||
export NNN_ARCHIVE='\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$'
|
export NNN_ARCHIVE='\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$'
|
||||||
export NNN_OPENER="$XDG_CONFIG_HOME/nnn/plugins/nuke"
|
# export NNN_OPENER="$XDG_CONFIG_HOME/nnn/plugins/nuke"
|
||||||
export USE_SCOPE=1
|
export USE_SCOPE=1
|
||||||
export NNN_COLORS='2345'
|
export NNN_COLORS='2345'
|
||||||
export NNN_FCOLORS='c1e20402006033f7c6d6ab01'
|
export NNN_FCOLORS='c1e20402006033f7c6d6ab01'
|
||||||
|
@ -61,7 +61,7 @@ zman() {
|
|||||||
|
|
||||||
# nnn with cd on quit
|
# nnn with cd on quit
|
||||||
if command -v nnn >/dev/null; then
|
if command -v nnn >/dev/null; then
|
||||||
alias nnn="nnn -Hdcx"
|
alias nnn="nnn -Hdex"
|
||||||
alias ncp="cat ${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection} | tr '\0' '\n'"
|
alias ncp="cat ${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection} | tr '\0' '\n'"
|
||||||
|
|
||||||
n () {
|
n () {
|
||||||
|
Loading…
Reference in New Issue
Block a user