Commit Graph

59 Commits (07ccbe113154bec327b12ee89e4922d33d1baa1a)

Author SHA1 Message Date
Daniel Barlow 07ccbe1131 add Just Browsing 2022-04-27 13:26:54 +01:00
Daniel Barlow 417e443ed3 create and document build.nix 2022-04-27 10:14:10 +01:00
Daniel Barlow da435b0667 restore adblock (rather messy) 2022-04-27 10:14:10 +01:00
Daniel Barlow b7956d70bb hook up the "new tab" button 2022-04-27 10:14:10 +01:00
Daniel Barlow 75811b6d6c remove debug output 2022-04-27 10:14:10 +01:00
Daniel Barlow 400124570d add completions to text entry 2022-04-27 10:14:10 +01:00
Daniel Barlow a16d1a46e3 handle ESC in text entry to revert changes to current url 2022-04-27 10:14:10 +01:00
Daniel Barlow a928c40cd0 open a blank webview if no URLs on command line 2022-04-27 10:14:09 +01:00
Daniel Barlow d831ccbb67 add DWIMminess to url bar text entry
- prepend https:// to things that might be partial URLs
- perform searches for things that are not URLs (e.g. contain spaces)
- use different search engines for things that start with @foo

e.g. @ebay, @ddg, @lua
2022-04-27 10:14:09 +01:00
Daniel Barlow 5871afe197 hide stop/refresh when loading is/isn't in progress 2022-04-27 10:14:09 +01:00
Daniel Barlow ccdf63eea1 add loading progress bar, hook to signals 2022-04-27 10:14:09 +01:00
Daniel Barlow 2e6d7fa3d2 set window title 2022-04-27 10:14:09 +01:00
Daniel Barlow 8567c4d81c make names more consistent 2022-04-27 10:14:09 +01:00
Daniel Barlow f5503c3838 implement pane chooser 2022-04-27 10:14:09 +01:00
Daniel Barlow 24052ac10d viewplex: index views by Notebook page number 2022-04-27 10:14:09 +01:00
Daniel Barlow f225793fb0 extract Listeners, Viewplex, Webview to separate modules 2022-04-27 10:14:09 +01:00
Daniel Barlow a8345a1734 make viewplex track the events it should relay for 2022-04-27 10:14:09 +01:00
Daniel Barlow 140cac0dfe Viewplex listens for :uri webview events and relays them 2022-04-27 10:14:09 +01:00
Daniel Barlow fc7de29d80 create Listeners module/class/thing 2022-04-27 10:14:09 +01:00
Daniel Barlow 468ed240b4 add Viewplex, basis for supporting multiple webviews 2022-04-27 10:14:08 +01:00
Daniel Barlow 8679518ca3 extract notify-listeners and listen to functions 2022-04-27 10:14:08 +01:00
Daniel Barlow 26dfaeb152 starting again 2022-04-27 10:14:08 +01:00
Daniel Barlow 913050835b use destructuring in module requires 2022-04-27 10:14:08 +01:00
Daniel Barlow 268ce1fe79 am stuck, this approach is not working 2022-04-27 10:14:08 +01:00
Daniel Barlow 8b564f09a7 reindent 2022-04-27 10:14:08 +01:00
Daniel Barlow 621159a589 update app-state when things change 2022-04-27 10:14:08 +01:00
Daniel Barlow 2e0d4bd830 use destructuring in module requires 2022-04-27 10:14:08 +01:00
Daniel Barlow 64cd3a986c Merge branch 'main' of github.com:telent/just 2022-04-27 10:14:08 +01:00
Daniel Barlow f9e69672a9 start new tabs with non-nil url
this does suggest that our logic for (whether the url entry is
editable) is rather a kludge
2022-04-27 10:14:07 +01:00
Daniel Barlow 48286f52b0 use user-supplied urls as autocomplete suggestions 2022-04-27 10:14:07 +01:00
Daniel Barlow 34e5b36172 move "new tab" button to the tabs page
clear and disable url entry on the tabs page
2022-04-27 10:14:07 +01:00
Daniel Barlow be829d3cc0 fix event-bus:subscribe
seems to be a Fennel bug:
<andreyorst> the problem is that tset is taken out of the or and nil is placed in place of it, thus making side effect occur
<andreyorst> even though it shouldn't
<andreyorst> telent: good catch
2022-04-27 10:14:07 +01:00
Daniel Barlow 2941d7dd88 use correct window title and url for visible tab
- update the event bus to transmit the message sender
as well as payload
- discard url-changed and title-changed messages from
hidden tabs
2022-04-27 10:14:07 +01:00
Daniel Barlow 9f652c3a45 load urls on command line 2022-04-27 10:14:07 +01:00
Daniel Barlow 43967b674b remove tab by swiping it in overview 2022-04-27 10:14:07 +01:00
Daniel Barlow 28ca39c0fa provide thumbnails of open tabs on the chooser page 2022-04-27 10:14:06 +01:00
Daniel Barlow fa9c818b73 still WIP tab overview page 2022-04-27 10:14:06 +01:00
Daniel Barlow e07e04f28f WIP tabbed browsing
- need to update title and url on tab change
- need to stop background tabs from changing the url and title
- better ui for choosing which tab
2022-04-27 10:14:06 +01:00
Daniel Barlow d44ed56d44 put history control on the bus 2022-04-27 10:14:06 +01:00
Daniel Barlow ceeaf80de4 extract function new-webview
this is in preparation for tabbed browsing
2022-04-27 10:14:06 +01:00
Daniel Barlow b20162d341 move stop/start to left of url bar 2022-04-27 10:14:06 +01:00
Daniel Barlow 6c95ae86a2 hmm, seems to be a bug in the pubsub 2022-04-27 10:14:06 +01:00
Daniel Barlow 68af0b779f save cookies between sessions 2022-04-27 10:14:06 +01:00
Daniel Barlow 92265c3d4b remove use of `do` 2022-04-27 10:14:06 +01:00
Daniel Barlow 9306d55c5d replace stop-refresh with two separate buttons
and show/hide them depending on context.
This means we can get rid of the `r` we were using for
forward references to `webview`
2022-04-27 10:14:06 +01:00
Daniel Barlow 35e2d56af7 use `match` in handle-webview-properties 2022-04-27 10:14:06 +01:00
Daniel Barlow 1cd2247e02 extract function for webview properties handler 2022-04-27 10:14:06 +01:00
Daniel Barlow 184aefa4dc convert mutually referential callbacks to use event bus 2022-04-27 10:14:06 +01:00
Daniel Barlow 93f2acf3ab add a progress indicator 2022-04-27 10:14:06 +01:00
Daniel Barlow fb6423dab4 add a stop/refresh button 2022-04-27 10:14:05 +01:00