1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2025-02-09 07:18:39 +01:00

- shadowed 'split-lines' from croatoan.

- fixed regex for opening some files with tinmop

(example: Open a gemini file with tinmop only if a local file or served trough gemini protocol.
This commit is contained in:
cage 2021-06-16 16:14:09 +02:00
parent e0e202ba32
commit c2f3f155aa
2 changed files with 142 additions and 117 deletions

View File

@ -176,6 +176,6 @@ color-regexp = ":rendering" cyan
# if you want to open some kind of file with tinmop try the following
# valid values are "tinmop" "me" "internal"
# ▼▼▼▼▼▼▼▼
open "gmi$" with "tinmop"
open "txt$" with "tinmop"
open ".sh$" with "tinmop"
open "^((gemini://)|(\\.)|(/)).+gmi$" with "tinmop"
open "^((gemini://)|(\\.)|(/)).+txt$" with "tinmop"
open "^((gemini://)|(\\.)|(/)).+sh$" with "tinmop"

View File

@ -1194,6 +1194,7 @@
:text-utils)
(:nicknames :tui)
(:import-from :misc-utils :defalias)
(:shadowing-import-from :text-utils :split-lines)
(:export
:make-win-background
:make-croatoan-window
@ -1600,6 +1601,7 @@
:tui-utils)
(:shadowing-import-from :misc :random-elt :shuffle)
(:shadowing-import-from :stack :stack :stack-push :stack-pop :stack-empty-p)
(:shadowing-import-from :text-utils :split-lines)
(:export
:key-config-holder
:key-config
@ -1682,6 +1684,7 @@
:windows
:tui-utils)
(:shadowing-import-from :misc :random-elt :shuffle)
(:shadowing-import-from :text-utils :split-lines)
(:export
:notify-window
:pending
@ -1703,6 +1706,7 @@
:windows
:tui-utils)
(:shadowing-import-from :misc :random-elt :shuffle)
(:shadowing-import-from :text-utils :split-lines)
(:export
:suggestions-window
:paginated-info
@ -1724,7 +1728,7 @@
:specials
:windows
:suggestions-window)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:complete-window
@ -1746,6 +1750,7 @@
:windows
:suggestions-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:keybindings-window
@ -1817,6 +1822,7 @@
:windows
:modeline-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:import-from :keybindings-window :update-keybindings-tree)
(:export
@ -1886,6 +1892,7 @@
:db-utils
:db)
(:nicknames :msg-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:+temp-mention-prefix+
@ -1920,6 +1927,7 @@
:line-oriented-window
:tui-utils
:message-rendering-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:import-from :keybindings-window :update-keybindings-tree)
(:export
@ -1964,6 +1972,7 @@
:modeline-window
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:message-window
@ -2022,6 +2031,7 @@
:windows
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:open-attach-window
@ -2047,6 +2057,7 @@
:windows
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:open-message-link
@ -2072,6 +2083,7 @@
:windows
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:open-gemini-certificates-window))
@ -2092,6 +2104,7 @@
:windows
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:open-gemini-subscription-window))
@ -2112,6 +2125,7 @@
:windows
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:open-toc-window))
@ -2132,6 +2146,7 @@
:windows
:point-tracker
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:import-from :keybindings-window :update-keybindings-tree)
(:export
@ -2167,6 +2182,7 @@
:modeline-window
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:message-ready-to-send
@ -2196,6 +2212,7 @@
:windows
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:follow-requests-window
@ -2218,6 +2235,7 @@
:windows
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:tags-window
@ -2240,6 +2258,7 @@
:windows
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:conversations-window
@ -2262,6 +2281,7 @@
:windows
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:chats-list-window
@ -2283,6 +2303,7 @@
:windows
:line-oriented-window
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:push-db-stream
@ -2343,6 +2364,7 @@
:specials
:windows
:tui-utils)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:focused-window
@ -2368,6 +2390,7 @@
:tui-utils
:program-events)
(:nicknames :ui)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:delete-message-status-marked-to-delete
@ -2552,6 +2575,7 @@
:misc-utils
:text-utils
:specials)
(:shadowing-import-from :text-utils :split-lines)
(:shadowing-import-from :misc :random-elt :shuffle)
(:export
:refresh-refresh-all-chats-data
@ -2602,4 +2626,5 @@
:constants
:text-utils
:command-line)
(:shadowing-import-from :text-utils :split-lines)
(:export))