Skip to content

Conversation

@kulmann
Copy link
Contributor

@kulmann kulmann commented Jan 13, 2026

Description

This PR brings a set of changes to be able to register editor apps on folders.

Required for opencloud-eu/web-extensions#327

I decided to clean up the signature of useFileActions, because it was rather confusing. This is breaking.

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

mimeType: resource.props[DavProperty.MimeType],
name,
extension: isFolder ? '' : extension,
extension,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we also need the extension for folders so that we can register editor apps on folder extensions (since all folders have the same mimetype).

const menuItemsContext = computed(() => {
return [...unref(navigateActions), ...unref(defaultEditorActions)]
return unref(openWithDefaultActions)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

navigate is no longer treated as a system action, but is part of the possible default actions on a file (not so much) or folder (yep).

export * from './useFileActionsCopy'
export * from './useFileActionsCopyPermanentLink'
export * from './useFileActionsDisableSync'
export * from './useFileActionsCreateLink'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

re-ordered the exports lexicographically so that it's harder for you to spot the new one 😇

@kulmann kulmann force-pushed the folder-editor-apps branch from 1280343 to bc7eb36 Compare January 13, 2026 13:37
@kulmann kulmann marked this pull request as ready for review January 14, 2026 13:34
@kulmann kulmann requested a review from JammingBen January 14, 2026 13:34
@kulmann kulmann self-assigned this Jan 14, 2026
Copy link
Contributor

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

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

Awesome! 🚀

@JammingBen JammingBen merged commit 0a83b4e into main Jan 15, 2026
28 checks passed
@JammingBen JammingBen deleted the folder-editor-apps branch January 15, 2026 09:51
@openclouders openclouders mentioned this pull request Jan 15, 2026
1 task
@kulmann kulmann mentioned this pull request Jan 16, 2026
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants