amfora/display
Thomas Adam 2f23390696
search: trim trailing whitespace (#184)
When amfora is given a string to search, if that string contains a
valid protocol (gemini://), and that string contains trailing
whitespace, then the string is treated as a search term.

Although perhaps slightly more uncommon, if the input string was as a
result of copy/paste then it's possible the string could contain
trailing spaces, which is not what was intended, but rather should be
removed so that it's treated either as a valid gemini:// link or a
search term.

Some efforts around this appeared in #138
2021-02-07 21:52:53 -05:00
..
bookmarks.go Fix Bookmarks modal not closing on ESC (#173) 2021-02-04 17:30:32 -05:00
display.go search: trim trailing whitespace (#184) 2021-02-07 21:52:53 -05:00
download.go Support streaming; error if cmd or types are empty 2020-12-24 23:38:12 -05:00
file.go 🐛 Make sure file:// dir paths end in slash 2020-12-20 16:58:29 -05:00
handlers.go 🐛 Handle empty META - fixes #176 2021-02-04 18:06:56 -05:00
help.go Fix Bookmarks modal not closing on ESC (#173) 2021-02-04 17:30:32 -05:00
history.go Add option to automatically follow redirects (#75) 2020-08-27 18:55:42 -04:00
modals.go 🚧 Adding & displaying feeds/pages works 2020-11-17 20:56:15 -05:00
newtab.go 📝 Wiki script, link to wiki on new tab 2020-12-20 00:31:14 -05:00
private.go Add pagination 2020-12-06 20:57:57 -05:00
subscriptions.go 🐛 Don't have a Next Page link on the last subs page 2020-12-07 18:09:10 -05:00
tab.go Add subscription manager, fix corrupt read/write & short URI panic 2020-12-05 20:35:15 -05:00
util_test.go 🚨 Ignore line length in tests 2020-12-19 19:43:54 -05:00
util.go 🐛 Don't use cache when URL is typed in bottom bar 2020-12-24 16:25:39 -05:00