Commit Graph
309 Commits
Author SHA1 Message Date
valoq 4ef4b734a5 fix: avoid overwriting broken symlinks on move (#2619) 2026-06-14 21:13:29 +02:00
valoq a9c7e82d24 fix: unify file permissions (#2612) 2026-06-11 13:28:46 +10:00
valoq 14e915281b fix: display loading... message for preview of modified files (#2597) 2026-05-26 15:11:21 +10:00
valoq 9a60c5c89a refactor: cleanup and document sanitization functions (#2589)
* refactor sanitization functions

* reorder functions

* cleanup

* document sanitize functions
2026-05-25 12:51:29 +10:00
valoq eebc6e4488 fix: prevent preview flicker when terminal height decreases (#2537)
* fix preview flicker

* address preview height increase

* check cached preview height

* improve patch

* improve patch

* fix patch
2026-05-16 10:47:14 +10:00
valoq 2cd4ba016a fix: prevent loading previews with outdated dimensions (#2491)
* fix preload size

* fix race

* skip height check

* fix loaded previews
2026-05-15 14:05:57 +10:00
valoq ac8f594f66 fix: update stale previews when preload is enabled (#2567) 2026-05-04 13:56:04 +10:00
valoq 54bcbca6ce fix: filter newline (#2526) 2026-04-28 07:40:10 +02:00
ivan 8018ebbda5 feat!: Add sortignorecase/sortignoredia options to decouple sorting from searching
* add sortignorecase option for sorting

* format code

* remove unnecessary position updates

* decouple sorting and searching sensitivity options

* Decouple sorting and searching case/diacritics sensitivity
2026-04-27 13:10:52 +10:00
valoq 9c14873efc fix: update view on cd (#2518) 2026-04-14 01:14:40 +10:00
valoq 7a3591c834 sanitize input data (#2467)
* sanitize input data

* fix test

* relax filter on customInfo
2026-04-08 02:04:30 +02:00
valoq e363f76601 fix: filter all character dangerous sequences internally (#2459) 2026-03-24 11:58:58 +11:00
CatsDeservePets d2f4cadd37 refactor: simplify path declaration in position (#2457) 2026-03-23 02:31:49 +01:00
CatsDeservePets b879f822af refactor: remove unnecessary named return (#2456) 2026-03-23 02:27:46 +01:00
CatsDeservePets e4f5907422 refactor: simplify currSelections (#2455) 2026-03-23 02:24:29 +01:00
CatsDeservePets 3b025160c4 refactor: replace reflect.DeepEqual with slices.Equal (#2454) 2026-03-23 02:18:54 +01:00
CatsDeservePets 9b3c4d5d2f refactor: simplify writeMarks and writeTags (#2453) 2026-03-23 02:11:58 +01:00
Joe Lim ede1e7e7c3 fix: prevent following symlinks for cd (#2423)
* fix: prevent resolving symlinks for `cd`

* Update `CHANGELOG.md`
2026-03-10 14:27:49 +11:00
Joe Lim fd2babd72e feat: apply loading message delay for directories (#2410)
* refactor preview timer

* add preview timer for directory

* adjust times

* typo

* create constant for preview loading delay

* Update `CHANGELOG.md`
2026-03-04 18:03:26 +11:00
Joe Lim 3637f5f3f8 fix!: use int64 for file sizes (#2397)
* fix!: use `int64` for file sizes

Unfortunately Go templates cannot unconditionally dereference pointers,
so we use a magic value of -1 instead of a nil pointer to indicate a
file size that doesn't exist. This also means having to change
surrounding code, for example the `humanize` function.

* Update `CHANGELOG.md`
2026-02-26 00:38:09 +11:00
CatsDeservePets 60deb6e43b docs: normalize Go doc comments (#2359) 2026-01-25 01:14:27 +01:00
Joe Lim a01195a4d2 fix: apply position to root directory (#2354) 2026-01-22 13:24:54 +11:00
Joe Lim c7be3c4434 refactor: use *uint64 for dir size and count (#2353)
* refactor: use `*uint64` for dir size and count

* no dircount should be ordered before dircount of 0
2026-01-22 13:11:18 +11:00
CatsDeservePets 48689f9eab docs: improve code comments (#2349)
* docs: annotate `app` struct fields

* docs: annotate `file` struct fields

* docs: improve existing code comments

* docs: add new code comments
2026-01-14 00:16:23 +01:00
Joe Lim 733e8d6b55 refactor: remove init flag (#2313)
* refactor: remove init flag

* fix bugs

* cleanup of `addcustominfo`

* use `getDir` for accessing directories from cache

* Avoid trimming `addcustominfo` value
2026-01-05 13:15:09 +11:00
CatsDeservePets c1b979371a feat: pass special files to previewer script (#2327) 2025-12-29 02:31:14 +01:00
CatsDeservePets eb01cb7c7b style: deduplicate types in function signatures (#2322) 2025-12-27 06:24:15 +01:00
Joe Lim 36cf932113 fix: prevent crash when scrolling (#2320)
* fix: prevent crash when scrolling

* Update `CHANGELOG.md`
2025-12-24 13:49:32 +11:00
CatsDeservePets 4a37c1e467 feat: log stderr from previewer and cleaner (#2316) 2025-12-22 02:25:05 +01:00
Joe Lim f0f7cfbbed perf: throttle watch updates (#2311)
* perf: throttle watch updates

* Fix file not exist error in the UI

* Use separate timeout for each file
2025-12-19 19:08:55 +11:00
Joe Lim c3dbf0ab01 refactor: use stdlib for reversing slice (#2312) 2025-12-16 18:17:16 +11:00
Joe Limandveltza af62d1656f perf: change preload to use stack instead of queue (#2291)
* perf: change preload to use stack instead of queue

* Improve order of preloading

Co-authored-by: veltza <106755522+veltza@users.noreply.github.com>

---------

Co-authored-by: veltza <106755522+veltza@users.noreply.github.com>
2025-12-15 11:42:50 +11:00
Joe Lim 4575ed0cbf fix: add missing init check when sorting (#2303) 2025-12-13 17:31:20 +11:00
Joe Lim acb85d65c8 refactor: avoid storing current preview separately (#2300) 2025-12-12 16:59:32 +11:00
Joe Lim 18b6077248 fix: write server response only for remote clients (#2290)
* fix: write server response only for remote clients

* Update `CHANGELOG.md`
2025-12-10 14:10:46 +11:00
Joe Lim 7727b28fbe fix: allow skipped previews to be reloaded (#2292)
* fix: allow skipped previews to be reloaded

* Update `CHANGELOG.md`
2025-12-10 13:49:54 +11:00
Joe Lim 5749c9cd93 Order directories first when using reverse sort (#2269)
* Order directories first when using reverse sort

* Update `CHANGELOG.md`
2025-11-18 10:58:08 +11:00
Carlo Teubner 8da478bb86 Check errors and enable errcheck in lint config (#2242) 2025-11-10 10:17:18 +01:00
CatsDeservePets e45412d363 Add OSC 8 support (#2243)
* Add `OSC 8` support

* Rename functions

* Update tests

* Support grouped links

* Update `CHANGELOG.md`

* Move terminal sequence parsing to new file
2025-11-03 15:55:29 +01:00
Joe Lim 95711c39bf Deduplicate preload updates (#2244) 2025-11-01 18:03:26 +11:00
Joe Lim 5ae9a4cd81 Debounce resize triggers when preloading (#2240)
* Debounce resize triggers when preloading

* Clear all previews in cache
2025-10-30 13:52:29 +11:00
Joe Lim e158c344d2 Fix preload crash (#2237) 2025-10-28 19:01:24 +11:00
Joe Lim fc2b2f42a2 Avoid deadlock when preloading (#2236)
* Fix preload deadlock

* Add experimental flag
2025-10-28 15:50:04 +11:00
Joe Lim 928bf9e3bd Refactor previewable logic (#2235) 2025-10-28 15:27:59 +11:00
Carlo Teubner fc4b3637bb Miscellaneous tweaks and fixes (#2223)
* Miscellaneous tweaks and fixes

Mostly these were found by running golangci-lint with a bunch of linters
(more than the default set) enabled.

* fmt.Fprint -> fmt.Fprintln where possible

* Remove "nolint:staticcheck" for now
2025-10-28 15:10:32 +11:00
Joe Lim 7776e73334 Fix check for invalid filters (#2231)
* Fix check for invalid filters

* Update `CHANGELOG.md`
2025-10-27 19:20:21 +11:00
Joe Lim d8a23be926 Add option for preloading file previews (#2206)
* Initial commit

* Add documentation

* Fix nav volatile preview state

* Use `previewer` for both preloading and previewing

* Generate documentation

* Update `CHANGELOG.md`
2025-10-24 13:26:34 +11:00
Joe Lim a7f7e84e81 Handle nav resizes (#2218)
* Handle nav resizes

* Update `CHANGELOG.md`
2025-10-21 21:46:19 +11:00
Joe Lim 00da40b9cd Refactor directory sorting code (#2177)
* Implement natural sorting

* Small refactor of filtering code

* Refactor sorting

* Refactor dirfirst as well

* reword

* reword2
2025-09-20 18:08:39 +10:00
Joe Lim d079cc8719 Fix copy progress bug when copying files with 0 size (#2130)
* Fix copy progress when copying files with 0 size

* typo

* Update `CHANGELOG.md`
2025-09-04 14:44:29 +10:00