Skip to content

Set Initial Query from URL Query Parameter in Elfeed Web#478

Open
debanjum wants to merge 1 commit intoskeeto:masterfrom
debanjum:set-initial-query-via-url-query-param-in-elfeed-web
Open

Set Initial Query from URL Query Parameter in Elfeed Web#478
debanjum wants to merge 1 commit intoskeeto:masterfrom
debanjum:set-initial-query-via-url-query-param-in-elfeed-web

Conversation

@debanjum
Copy link

What

  • Previously
    • The initial query was hard-coded to @3-days-ago
  • Now
    • Set initial query to load entries in elfeed-web via url query parameter,
      i.e ?q=<custom-initial-query>

Illustration

  • Open <elfeed-url>/elfeed/?q=%2bimportant%20%4030-days-ago in web browser
  • This sets initial query to +important @30-days-ago
  • And loads entries tagged as "important" from >30-days-ago

Why

  • Simplify customizing initial query to use for loading entries
  • Create browser bookmarks to your standard elfeed filters.
    Especially useful when accessing elfeed web via phone as a web
    app. Reduce unnecessary typing for accessing standard filters.

- What
  - Before
    - Cannot customize the initial query, which is set to `@3-days-ago'
  - After
    - Set initial query to load entries in elfeed-web via url query
      parameter, i.e `?q=<custom-initial-query>'

- Illustration
  - Open `<elfeed-url>/elfeed/?q=%2bimportant%20%4030-days-ago' in web browser
  - This sets initial query to `+important @30-days-ago'
  - And loads entries tagged as "important" from >30-days-ago

- Why
  - Simplifies customizing initial query to use for loading entries
  - Create browser bookmarks to your standard elfeed filters.
    Especially useful when accessing elfeed web via phone as a web
    app. Reduce unnecessary typing for accessing standard filters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant