3 Commits

  1. 13
      CHANGELOG.md
  2. 7
      lib/mirage_web/live/goto_anything_live.ex
  3. 2
      mix.exs

13
CHANGELOG.md

@ -5,6 +5,19 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.69.1](https://git.inhji.de/inhji/mirage/compare/v0.69.0...v0.69.1) (2021-03-12)
### Chores:
* clean up
### Bug Fixes:
* change enter hotkey to arrowright
## [v0.69.0](https://git.inhji.de/inhji/mirage/compare/v0.68.2...v0.69.0) (2021-03-11)

7
lib/mirage_web/live/goto_anything_live.ex

@ -26,13 +26,10 @@ defmodule MirageWeb.GotoAnythingLive do
end
@impl true
def handle_event("search", %{"key" => "Enter", "value" => _}, %{assigns: assigns} = socket) do
def handle_event("search", %{"key" => "ArrowRight", "value" => _}, %{assigns: assigns} = socket) do
results = assigns.results
selection = assigns.selection
IO.inspect(assigns)
IO.inspect("Results at ENTER: #{results |> Enum.count()}")
socket =
if not Enum.empty?(results) do
note = Enum.at(results, selection)
@ -66,8 +63,6 @@ defmodule MirageWeb.GotoAnythingLive do
def handle_event("search", %{"key" => _, "value" => query}, socket) do
results = Mirage.Notes.search_notes(query)
IO.inspect("Results at SEARCH: #{Enum.count(results)}")
{:noreply,
socket
|> assign(:results, results)

2
mix.exs

@ -1,7 +1,7 @@
defmodule Mirage.MixProject do
use Mix.Project
@version "0.69.0"
@version "0.69.1"
def project do
[

Loading…
Cancel
Save