IMCE Search Plugin
================

DESCRIPTION
-----------
The IMCE Search Plugin enhances IMCE file browser by adding powerful file search 
capabilities. It allows users to quickly locate files across all accessible 
directories through a modern, user-friendly search interface.

FEATURES
--------
* Real-time file search across all accessible directories
* Visual file previews in search results
* File metadata display (size, modification date)
* Instant navigation to found files
* Visual highlighting of found files in the directory
* Smooth scrolling to located files
* Responsive design that works well on all screen sizes

REQUIREMENTS
-----------
* IMCE module (^3.0)
* Drupal 10.x or 11.x

INSTALLATION
-----------
1. Install the module using composer:
   composer require drupal/imce_search_plugin

2. Enable the module:
   drush en imce_search_plugin

3. Clear caches:
   drush cr

USAGE
-----
1. Access IMCE through any of its integration points (e.g., CKEditor file browser)
2. Look for the new search icon in the IMCE toolbar
3. Click the search icon to open the search interface
4. Enter keywords to search for files
5. Click on a search result to:
   - Navigate to the file's directory
   - Highlight the file
   - Scroll to its location

SECURITY CONSIDERATIONS
---------------------
* File search respects IMCE's existing file access permissions
* All user input is sanitized to prevent XSS attacks
* Search queries are limited to 50 characters
* File paths are validated to prevent directory traversal
* Search results only show files the user has permission to access

TROUBLESHOOTING
--------------
* If search results are not appearing, check IMCE permissions
* If file highlighting is not working, ensure JavaScript is enabled
* For performance issues, verify the database index on the filename column exists

MAINTAINERS
----------
Current maintainers:
* Mirakolous - https://www.drupal.org/u/mirakolous

----------------------------------
IMCE SEARCH MODULE
----------------------------------

CONTENTS OF THIS FILE
---------------------

 - Features & benefits
 - Configuration
 - Demo

FEATURES & BENEFITS
-------------------

**IMCE Search features**

Module adds functionality for searching files
from user interface of the 
IMCE file browser (https://www.drupal.org/project/imce).

It also works well with the Linkit module

CONFIGURATION
-------------

Settings page is located at:
 `admin/config/media/imce`


