1
0
Fork 0
Minimalist and opinionated feed reader https://github.com/miniflux/v2
Find a file
Robert Lützner facf38955c Add 'Enter' key as a hotkey to open selected item
There are a few things that need to be done, to make this work.

First, we need to register `Enter` as another hotkey that opens the
selected item.

However, by default the `KeyboardHandler` will override all default
actions. That might make sense for any other key, but for the `Enter`
key, we want to keep the default behavior (i.e. follow a selected link
or press a button). So for this single key event, we do not call
`preventDefault()`.

I see this as unproblematic for the following reasons.

1. With the changes from #2348, when we're in a list of items (articles,
   categories, feeds), there is no link selected. This is what made the
   `Enter` key work _implicitly_ in the past. With nothing selected, the
   `Enter` key will do nothing by default.
2. If we have **any** link selected (including when we are in a view
   with a list of selectable items), we'll get the default action of
   `Enter` (i.e. follow a link), which is exactly what we had before.

Lastly, we need to update the list of keyboard shortcuts displayed when
pressing `?`.

This fixes #2366.
2024-02-21 20:02:58 -08:00
.devcontainer
.github Update GitHub Actions to Go 1.12 2024-02-17 12:00:23 -08:00
client
contrib Create default miniflux db 2023-12-31 10:54:53 -08:00
internal Add 'Enter' key as a hotkey to open selected item 2024-02-21 20:02:58 -08:00
packaging Debian packages are failing to build 2024-02-07 21:35:06 -08:00
.gitignore
ChangeLog Fix typo in man page and Changelog 2024-02-17 13:28:17 -08:00
go.mod Bump github.com/tdewolff/minify/v2 from 2.20.16 to 2.20.17 2024-02-19 14:58:10 -08:00
go.sum Bump github.com/tdewolff/minify/v2 from 2.20.16 to 2.20.17 2024-02-19 14:58:10 -08:00
LICENSE
main.go
Makefile Makefile: do not force CGO_ENABLED=0 for miniflux target 2024-02-21 19:47:58 -08:00
miniflux.1 Fix typo in man page and Changelog 2024-02-17 13:28:17 -08:00
Procfile
README.md
SECURITY.md

Miniflux 2

Miniflux is a minimalist and opinionated feed reader:

  • Written in Go (Golang)
  • Works only with Postgresql
  • Doesn't use any ORM
  • Doesn't use any complicated framework
  • Use only modern vanilla Javascript (ES6 and Fetch API)
  • Single binary compiled statically without dependency
  • The number of features is voluntarily limited

It's simple, fast, lightweight and super easy to install.

Official website: https://miniflux.app

Documentation

The Miniflux documentation is available here: https://miniflux.app/docs/ (Man page)

Screenshots

Default theme:

Default theme

Dark theme when using keyboard navigation:

Dark theme

Credits