Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

WIP: Add support for external viewer search#2258

Open
lars18th wants to merge 2 commits intodoublecmd:masterdoublecmd/doublecmd:masterfrom
lars18th:external-view-searchlars18th/doublecmd:external-view-searchCopy head branch name to clipboard
Open

WIP: Add support for external viewer search#2258
lars18th wants to merge 2 commits intodoublecmd:masterdoublecmd/doublecmd:masterfrom
lars18th:external-view-searchlars18th/doublecmd:external-view-searchCopy head branch name to clipboard

Conversation

@lars18th
Copy link
Contributor

@lars18th lars18th commented Apr 9, 2025

Add parameters to call the external viewer with the search info.

At time is implemented hardcoded for Universal Viewer parameters:
/FText=String
/FCase=0|1
/FWords=0|1
/FHex=0|1

Add parameters to call the external viewer with the search info.

At time is implemented hardcoded for Universal Viewer parameters:
/FText=String 
/FCase=0|1
/FWords=0|1
/FHex=0|1
@lars18th
Copy link
Contributor Author

lars18th commented Apr 9, 2025

This PR implements the request #1510

@lars18th
Copy link
Contributor Author

lars18th commented Apr 9, 2025

Hi @alexx2000 ,

I need your help to know the best strategy to add configurable support for this. Any idea?

  • FIXED: One problem with this implementation: It generates the parameters for both: external viewer and external editor.
    • Small problem: checking view in sCmd the internal view is replaced too.

Implemented in a dirty way: if the command contains "view" then add the search parameters.
@lars18th lars18th changed the title Add support for external viewer search WIP: Add support for external viewer search Apr 9, 2025
@lars18th
Copy link
Contributor Author

Hi @alexx2000 ,

Please, do some comments. This works well on my system, but it is not completed. We need to provide a generic configuration to use it. And for this I need your feedback.

@alexx2000
Copy link
Contributor

Hi,

Yes, it should be a generic solution, something like you suggest in #1510.

Like this:

%St  - String to search
%Sc  - Case enabled (0=No, 1=Yes)
%Sh  - Hex string enabled (0=No, 1=Yes)
%Sw  - Whole words enabled (0=No, 1=Yes)

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.