Skip to content

feat: rename and move in file manager#630

Merged
daveallie merged 1 commit intocrosspoint-reader:masterfrom
Tritlo:master
Feb 5, 2026
Merged

feat: rename and move in file manager#630
daveallie merged 1 commit intocrosspoint-reader:masterfrom
Tritlo:master

Conversation

@Tritlo
Copy link
Contributor

@Tritlo Tritlo commented Jan 31, 2026

Summary

  • What is the goal of this PR? (e.g., Implements the new feature for file uploading.)

This adds renaming and moving files to the File Manager

  • What changes are included?

New /move and /rename endpoints, and corresponding modals and icons added. Uses the file.rename() function, after sanity checking.

Additional Context

  • Add any other information that might be helpful for the reviewer (e.g., performance implications, potential risks,
    specific areas to focus on).

Fixes #559, #661, #663. Only touches the File Manager, so low risk of affecting other systems.

Simpler than #619, at the cost of not migrating the cache of renamed books.

image image image

AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? YES

I used Codex for the implementation itself, and then carefully reviewed the code myself. As this is a simple change and only to the webserver, it is low risk.

@LZando
Copy link

LZando commented Feb 1, 2026

Hi @Tritlo !

I have a suggest, implementing the same feature I faced one problem that you should consider.

Book metadata such as the reading index is saved using a hash of the file path. So if you change the file name or move the file to a different path, you’ll lose that data.

@Tritlo
Copy link
Contributor Author

Tritlo commented Feb 1, 2026

I mention that in the PR. I think it's better to just rebuild the index than to migrate, it just adds extra maintenance and complexity.

@LZando
Copy link

LZando commented Feb 1, 2026

I mention that in the PR. I think it's better to just rebuild the index than to migrate, it just adds extra maintenance and complexity.

True, I missed it!

@LZando
Copy link

LZando commented Feb 1, 2026

I mention that in the PR. I think it's better to just rebuild the index than to migrate, it just adds extra maintenance and complexity.

Would you like to collaborate on building a new index solution?
That way, we can propose the design of a more maintainable solution that incorporates the changes from our PR.

@Tritlo
Copy link
Contributor Author

Tritlo commented Feb 1, 2026

that could work. Let's wait and hear what @daveallie has to say and go from there.

@lukestein
Copy link
Contributor

Tested on device. Moving and renaming files both seem to work exactly as expected, and old versions are removed from Recent files view (which I regard as a feature rather than a bug, especially since there's no other obvious way to get something off the Recents list.

Thank you! 🎉

@lukestein lukestein requested review from a team and lukestein and removed request for lukestein February 1, 2026 21:59
@lukestein
Copy link
Contributor

Closes #661 and #663

Copy link
Contributor

@lukestein lukestein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My approval based on on-device testing. (I've done no code review.)

@daveallie daveallie merged commit d35bda8 into crosspoint-reader:master Feb 5, 2026
9 checks passed
jdk2pq added a commit to jdk2pq/crosspoint-reader that referenced this pull request Feb 5, 2026
* master:
  feat: add shift lock to KeyboardEntryActivity (crosspoint-reader#513)
  feat: rename and move in file manager (crosspoint-reader#630)
  feat: Implement fix for sunlight fading issue (crosspoint-reader#603)
  chore: Add PR title check on sync (crosspoint-reader#698)
  feat: Go To Position for epubs (crosspoint-reader#666)
  feat: Calibre Web Automated (CWA) koreader sync server support (crosspoint-reader#594)
  chore: Add CI check job to consolidate status (crosspoint-reader#696)
  chore: CI Build Summary - firmware stats, firmware artifact (crosspoint-reader#601)
  feat: quick rotate option in epub reader menu (crosspoint-reader#685)
  feat(settings): add "Cover + Custom" sleep screen mode (crosspoint-reader#582)
  fix: Artifacts on Thumb on Home Screen (crosspoint-reader#662)
  feat: holding back button while booting, boots to home screen as a mean of escaping boot loop (crosspoint-reader#587)
  docs: Add small SCOPE.md and GOVERNANCE.md documents (crosspoint-reader#640)
  feat: front button remapper (crosspoint-reader#664)
  feat: UI themes, Lyra (crosspoint-reader#528)
  feat: Add CSS parsing and CSS support in EPUBs (crosspoint-reader#411)
  fix: move http upload state to heap (crosspoint-reader#657)
@Befbo
Copy link

Befbo commented Feb 9, 2026

Was it planned to be able to rename folders too? Or only files?

Unintendedsideeffects pushed a commit to Unintendedsideeffects/crosspoint-reader that referenced this pull request Feb 17, 2026
## Summary

* **What is the goal of this PR?** (e.g., Implements the new feature for
file uploading.)

This adds renaming and moving files to the File Manager

* **What changes are included?**

New `/move` and `/rename` endpoints, and corresponding modals and icons
added. Uses the `file.rename()` function, after sanity checking.

## Additional Context

* Add any other information that might be helpful for the reviewer
(e.g., performance implications, potential risks,
  specific areas to focus on).


Fixes crosspoint-reader#559, crosspoint-reader#661, crosspoint-reader#663. Only touches the File Manager, so low risk of
affecting other systems.

Simpler than crosspoint-reader#619, at the cost of not migrating the cache of renamed
books.

<img width="870" height="437" alt="image"
src="https://github.com/user-attachments/assets/73e0e750-dfc8-48e0-a7a6-9694470b7ded"
/>
<img width="575" height="318" alt="image"
src="https://github.com/user-attachments/assets/38c5fb19-c38a-436b-b3ad-75c1be7375ab"
/>
<img width="574" height="293" alt="image"
src="https://github.com/user-attachments/assets/1d2a2403-765d-473f-8c4f-c6968e9bbfeb"
/>


---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**YES**_

I used Codex for the implementation itself, and then carefully reviewed
the code myself. As this is a simple change and only to the webserver,
it is low risk.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: File Transfer feature to allow moving file location

6 participants