Skip to content

haugjan/Flow.ConfluenceSearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Flow.ConfluenceSearch

Search for and open Confluence pages directly from Flow Launcher.

Features

  • πŸ” Fast Content Search: Search Confluence pages by title, excerpt, or content
  • 🎯 Space Filtering: Configure default spaces for focused searches
  • πŸš€ Direct Navigation: Open pages directly in your browser
  • ⚑ Real-time Results: Get instant search results as you type
  • πŸ”§ Configurable: Customize timeout, result limits, and default spaces
  • πŸ‘€ User-based Search: Find pages updated by specific users
  • 🏷️ Space Key Extraction: Extract and display space keys from results
  • πŸ“Š Browse URL Generation: Generate URLs for direct access to pages

Requirements

  • Flow Launcher 2.0.0 or higher
  • .NET 9.0 Runtime
  • Valid Confluence account with API access

Installation

From Release

  1. Download the latest release from the Releases page.
  2. Extract the zip file to your Flow Launcher plugins directory.
  3. Restart Flow Launcher.

From Source

  1. Clone this repository:
    git clone https://github.com/yourusername/Flow.ConfluenceSearch.git
  2. Build the project:
    cd Flow.ConfluenceSearch
    dotnet build --configuration Release
  3. Copy the built files to Flow Launcher's plugin directory.

Configuration

The plugin is configured through Flow Launcher's settings interface:

  1. Open Flow Launcher Settings:

    • Press Alt + Space to open Flow Launcher.
    • Type settings and select "Flow Launcher Settings".
  2. Navigate to Plugin Settings:

    • Go to the "Plugins" tab.
    • Find "Confluence Search" in the plugin list.
    • Click the settings icon next to it.
  3. Configure the following settings:

    Setting Description Example
    Base URL Your Confluence instance URL https://yourcompany.atlassian.net
    Email Cloud only: the address you sign in to Atlassian with. Leave empty on Server / Data Center. your-email@example.com
    API Token The API token (Cloud) or personal access token (Server / DC). See below. ATATT3xFfGF0...
    Timeout Request timeout in seconds 10
    Max Results Maximum number of results to display 10
    Default Spaces Space keys to search by default ["SPACE1", "SPACE2"]

Creating a Confluence API Token

  1. Go to Atlassian Account Settings (also linked from the plugin's settings panel).
  2. Click "Create API token".
  3. Give it a descriptive name (e.g., "Flow Launcher Plugin").
  4. Copy the generated token.

Then configure the plugin depending on your Confluence flavour:

  • Confluence Cloud (*.atlassian.net): put the address you use to sign in to Atlassian into Email, and the API token into API Token. The plugin combines them as email:token and sends HTTP Basic auth, which is what Confluence Cloud requires.
  • Confluence Server / Data Center: leave Email empty and paste the personal access token into API Token alone.

Backwards compatibility: earlier versions had a single field where you pasted email:token. That still works β€” if Email is empty and API Token already contains a colon, the value is used as-is. New configurations should use the two separate fields.

If authentication fails the plugin shows Confluence authentication failed (HTTP 401) in the result list β€” the most common cause on Cloud is a missing or mistyped Email.

Usage

User-based Search

Open Flow Launcher (Alt + Space) and use the conf keyword with these patterns:

Updated by User:

conf @me

Find pages updated by me.

conf @john

Find pages updated by John.

Space-based Search

conf #docs

Find pages from the "docs" space.

conf #all

Search all spaces (ignores default space filter from settings).

Text Search

conf project plan

Search for pages containing "project" and "plan" in the title or content.

Combined Search Examples

conf @me #marketing

Find pages updated by me in the "marketing" space.

conf @john #docs

Find pages updated by John in the "docs" space.

conf #all meeting notes

Search all spaces for pages containing "meeting notes".

Default Spaces

If you configure default spaces in the settings, searches will automatically be limited to those spaces unless you use #all or specify a different space with #spacekey.

Search Operators Reference

Operator Description Example
@me Pages updated by current user conf @me
@username Pages updated by specific user conf @john
#spacekey Pages from specific space conf #docs
#all Search all spaces conf #all

Troubleshooting

No Results Appearing

  • Verify your Confluence URL is correct and accessible.
  • Check that your API token is valid and hasn't expired.
  • Ensure you have permission to view the spaces you're searching.

Timeout Issues

  • Increase the timeout setting in plugin configuration.
  • Check your internet connection to the Confluence instance.
  • Verify the Confluence instance is responsive.

Authentication Errors

  • Regenerate your API token in Atlassian Account Settings.
  • On Atlassian Cloud, ensure the Email field is filled in with your sign-in address.
  • Check that your account has appropriate permissions.

Development

Building from Source

git clone https://github.com/yourusername/Flow.ConfluenceSearch.git
cd Flow.ConfluenceSearch
dotnet restore
dotnet build --configuration Release

Running Tests

dotnet test

Contributing

  1. Fork the repository.
  2. Create a feature branch.
  3. Make your changes.
  4. Add tests if applicable.
  5. Submit a pull request.

For contributors there is additional documentation under docs/:

  • Architecture β€” solution layout, request lifecycle, DI setup.
  • Development β€” build/test commands, hot-swap dev loop, CI/release flow.
  • Query syntax β€” full reference of the conf query language.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Acknowledgments

  • Built for Flow Launcher.
  • Uses the Atlassian Confluence REST API.
  • Icons from the Confluence design system.

About

A Flow Launcher plugin to search in Atlassian Confluence

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors