1
0
mirror of https://github.com/balkian/dotfiles.git synced 2025-08-24 00:02:19 +00:00

multiple changes

This commit is contained in:
J. Fernando Sánchez
2020-12-28 12:54:24 +01:00
parent 1f613497fb
commit e813bc26e6
12 changed files with 1648 additions and 44 deletions

View File

@@ -270,7 +270,7 @@ map ! console shell%space
map @ console -p6 shell %%s
map # console shell -p%space
map s console shell%space
map r chain draw_possible_programs; console open_with%%space
map r chain draw_possible_programs; console open_with%space
map f console find%space
map cd console cd%space
@@ -414,7 +414,11 @@ map cm search_next order=mtime
map ca search_next order=atime
map <C-t> terminal
map <C-T> terminal
map T eval fm.execute_console("shell tmux send-keys -t 1 'cd " + str(fm.thisdir) + "' 'Enter' \; select-pane -t 1") if 'TMUX' in os.environ.keys() else fm.execute_console("terminal")
#map <C-e> eval cmd("myemacs -n {0}".format(f.thisfile.relative_path))
map <C-e> shell myemacs -n %s
copymap <C-e> e
# Tabs
map <C-n> tab_new ~
map <C-w> tab_close

View File

@@ -83,9 +83,10 @@ ext x?html?, has w3m, terminal = w3m "$@"
# Misc
#-------------------------------------------
# Define the "editor" for text files as first action
mime ^text, label editor = myemacs "-nc" -- "$@"
mime ^text, label editor = $VISUAL -- "$@"
mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = myemacs "-nc" -- "$@"
mime ^text, label external = $VISUAL -nc -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $VISUAL -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext 1 = man "$1"
@@ -204,7 +205,7 @@ label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
# Define the editor for non-text files + pager as last action
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = myemacs "-nc" -- "$@"
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = $VISUAL -- "$@"
label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
# The very last action, so that it's never triggered accidentally, is to execute a program: