No description
Find a file
fuscodev 29388636bf
feat: find and replace in editor (#689)
* feat: page find and replace

* * Refactor search and replace directory

* bugfix scroll

* Fix search and replace functionality for macOS and improve UX

- Fixed cmd+f shortcut to work on macOS (using 'Mod' key instead of 'Control')
- Added search functionality to title editor
- Fixed "Not found" message showing when search term is empty
- Fixed tooltip error when clicking replace button
- Changed replace button from icon to text for consistency
- Reduced width of search input fields for better UI
- Fixed result index after replace operation to prevent out-of-bounds error
- Added missing translation strings for search and replace dialog
- Updated tooltip to show platform-specific shortcuts (⌘F on Mac, Ctrl-F on others)

* Hide replace functionality for users with view-only permissions

- Added editable prop to SearchAndReplaceDialog component
- Pass editable state from PageEditor to SearchAndReplaceDialog
- Conditionally render replace button based on edit permissions
- Hide replace input section for view-only users
- Disable Alt+R shortcut when user lacks edit permissions

* Fix search dialog not closing properly when navigating away

- Clear all state (search text, replace text) when closing dialog
- Reset replace button visibility state on close
- Clear editor search term to remove highlights
- Ensure dialog closes properly when route changes

* fix: preserve text marks (comments, etc.) when replacing text in search and replace

- Collect all marks that span the text being replaced using nodesBetween
- Apply collected marks to the replacement text to maintain formatting
- Fixes issue where comment marks were being removed during text replacement

* ignore type error

---------

Co-authored-by: Philipinho <16838612+Philipinho@users.noreply.github.com>
2025-07-10 04:40:07 +01:00
apps feat: find and replace in editor (#689) 2025-07-10 04:40:07 +01:00
packages feat: find and replace in editor (#689) 2025-07-10 04:40:07 +01:00
patches fix: remove space tree delete shortcut key (#394) 2024-10-12 13:14:29 +01:00
.dockerignore move storage data directory to root 2024-06-27 15:07:48 +01:00
.env.example update env file 2025-03-23 13:14:20 +00:00
.gitignore feat: cloud and ee (#805) 2025-03-06 13:38:37 +00:00
.gitmodules feat: cloud and ee (#805) 2025-03-06 13:38:37 +00:00
.npmrc switch to nx monorepo 2024-01-09 18:58:26 +01:00
crowdin.yml Update Crowdin configuration file 2025-01-04 13:22:31 +00:00
docker-compose.yml update docker compose file 2024-06-29 13:00:10 +01:00
Dockerfile fix 2025-03-06 18:32:25 +00:00
LICENSE LICENSE 2023-11-15 23:11:15 +00:00
nx.json switch to nx monorepo 2024-01-09 18:58:26 +01:00
package.json v0.21.0 2025-06-18 14:28:14 -07:00
pnpm-lock.yaml posthog integration (cloud) (#1304) 2025-06-27 10:58:36 +01:00
pnpm-workspace.yaml * add new tiptap editor extension monorepo package 2024-01-14 23:05:41 +01:00
README.md Update README.md 2025-04-21 21:50:21 +01:00

Docmost

Open-source collaborative wiki and documentation software.
Website | Documentation | Twitter / X


Getting started

To get started with Docmost, please refer to our documentation or try our cloud version .

Features

  • Real-time collaboration
  • Diagrams (Draw.io, Excalidraw and Mermaid)
  • Spaces
  • Permissions management
  • Groups
  • Comments
  • Page history
  • Search
  • File attachments
  • Embeds (Airtable, Loom, Miro and more)
  • Translations (10+ languages)

Screenshots

home editor

License

Docmost core is licensed under the open-source AGPL 3.0 license.
Enterprise features are available under an enterprise license (Enterprise Edition).

All files in the following directories are licensed under the Docmost Enterprise license defined in packages/ee/License.

  • apps/server/src/ee
  • apps/client/src/ee
  • packages/ee

Contributing

See the development documentation

Thanks

Special thanks to;

Crowdin

Crowdin for providing access to their localization platform.

Algolia-mark-square-white

Algolia for providing full-text search to the docs.