Commit graph

12 commits

Author SHA1 Message Date
randogoth
db13702e54 add long-press gesture to open note scrolled to end
Long-pressing a note in the list opens it in view mode with the scroll
position at the bottom of the file. Switching to edit mode the first
time positions the cursor at the end of the text and scrolls there too,
so the user can immediately append content.

Implementation:
- NoteEditorScreen gains a scrollToEnd parameter (default false)
- A ScrollController is attached to the view/edit SingleChildScrollView
- After content loads with scrollToEnd=true, two post-frame callbacks
  fire (first renders the content, second has a stable maxScrollExtent)
  then jumpTo(maxScrollExtent)
- _cursorAtEnd flag is consumed on the first Mode Edit switch: sets
  selection to text.length, requests focus, and scrolls to bottom
- NoteListScreen ListTile gets onLongPress that navigates with
  scrollToEnd: true and reloads on return

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-19 17:50:56 +03:00
randogoth
bf214afe72 add view mode as default, open new notes in edit mode with cursor ready
- Introduce NoteMode enum { view, edit, preview } replacing the old bool
- Default mode when opening a note is view (syntax-highlighted, read-only)
- Menu now shows all three modes with a checkmark on the active one
- Save and autosave menu items disabled outside edit mode
- New notes open in edit mode with cursor positioned after the header
  and keyboard focused, ready to type

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-19 17:21:00 +03:00
randogoth
fc6c69db24 devbox setup, dep upgrades, lint fixes, Android build fixes
- Add devbox.json pinning Flutter 3.35.7, Android SDK (Nix flake),
  openjdk17, just, openssl
- Add android/nix-android-sdk/ Nix flake + flake.lock + Android Studio
  config script
- Add justfile with build/get/upgrade/icons/analyze/rebuild recipes
- flutter pub upgrade --major-versions: file_picker ^11, google_fonts ^8,
  permission_handler ^12, share_plus ^12, flutter_lints ^6 (+71 transitive)
- Fix file_picker v11 API: FilePicker.platform → FilePicker.getDirectoryPath()
- Fix all 37 analyzer issues: deprecated APIs (window, WillPopScope, Share,
  SvgPicture color), async BuildContext guards, key constructors, private
  createState() return types, unused locals, print → debugPrint, etc.
- Hook _handleCommand into onSubmitted for : prefix commands
- Android: Gradle 8.3→8.11.1, AGP 8.2.2→8.9.1, KGP 1.8.22→2.2.20,
  compileSdk/targetSdk 34→36, namespace auto-derivation for library modules,
  kotlin.compiler.execution.strategy=in-process

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-19 17:08:29 +03:00
randogoth
750a228921 added about and help texts, font size slider 2025-02-22 20:59:42 +02:00
randogoth
4fcd6db6fd app icons 2025-02-22 19:11:10 +02:00
randogoth
be43333da6 line wrapping 2025-02-22 17:18:47 +02:00
randogoth
f77a66d5d8 subfolder support 2025-02-22 15:45:04 +02:00
randogoth
432048dc6a cleanup 2025-02-21 22:51:56 +02:00
randogoth
7e82ddcbb7 custom directory 2025-02-21 22:02:06 +02:00
randogoth
185a1c62e9 markdown and latex preview 2025-02-21 18:16:17 +02:00
randogoth
c574f456a0 custom theme, fontsize 2025-02-21 17:46:41 +02:00
randogoth
84c134adc4 init 2025-02-20 22:40:41 +02:00