Skip to content

Commit

Permalink
Cleaned up, bumped version number
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikmayer committed Jan 26, 2025
1 parent 7e6d6a4 commit a60d399
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "note-id",
"name": "Note ID",
"version": "1.0.3",
"version": "1.0.4",
"minAppVersion": "0.15.0",
"description": "Displays notes by their ID, enabling structured sequences in a Zettelkasten (\"Folgezettel\").",
"author": "Dominik Mayer",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-note-id",
"version": "1.0.3",
"version": "1.0.4",
"description": "Displays notes by their ID, enabling structured sequences in a Zettelkasten (\"Folgezettel\").",
"main": "main.js",
"scripts": {
Expand Down
35 changes: 25 additions & 10 deletions src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@ import Task
import Debug exposing (toString)


-- MAIN


main : Program () Model Msg
main =
Browser.element
{ init = init
, update = update
, view = view
, subscriptions = subscriptions
}



-- MODEL


type alias Model =
{ notes : List NoteMeta
, currentFile : Maybe String
Expand Down Expand Up @@ -86,23 +103,17 @@ defaultItemHeight =
26


main : Program () Model Msg
main =
Browser.element
{ init = init
, update = update
, view = view
, subscriptions = subscriptions
}


init : () -> ( Model, Cmd Msg )
init _ =
( defaultModel
, Cmd.none
)



-- UPDATE


type Msg
= FileOpened (Maybe String)
| FileRenamed ( String, String )
Expand Down Expand Up @@ -406,6 +417,10 @@ slice start end list =
|> List.take (end - start)



-- VIEW


view : Model -> Html Msg
view model =
let
Expand Down

0 comments on commit a60d399

Please sign in to comment.