Flow.Launcher icon indicating copy to clipboard operation
Flow.Launcher copied to clipboard

Add setting to select all query text on window reopen

Open 1208nn opened this issue 1 year ago • 12 comments

  • SettingsPaneGeneralViewModel.cs

    • Add SelectAllQueryOnReopen property
    • Bind the new property to the settings in the constructor
  • MainWindow.xaml.cs

    • Update OnLoaded method to select all query text if the new setting is enabled
    • Add SelectAllQueryText method to handle selecting all query text
  • MainWindow.xaml

    • Bind QueryTextBox to the new setting to select all query text when the window is reopened
  • SettingWindow.xaml.cs

    • Initialize the new checkbox based on the settings

1208nn avatar Nov 09 '24 11:11 1208nn

@check-spelling-bot Report

:red_circle: Please review

See the :open_file_folder: files view, the :scroll:action log, or :memo: job summary for details.

:x: Errors Count
:x: forbidden-pattern 26
:x: ignored-expect-variant 1
:warning: non-alpha-in-dictionary 19

See :x: Event descriptions for more information.

Forbidden patterns :no_good: (1)

In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves.

These forbidden patterns matched content:

s.b. workaround(s)

\bwork[- ]arounds?\b
If the flagged items are :exploding_head: false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it, try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

github-actions[bot] avatar Nov 09 '24 11:11 github-actions[bot]

@1208nn Sorry for the late response. Is there a reason that this is a draft pr?

taooceros avatar Jan 10 '25 05:01 taooceros

@1208nn Sorry for the late response. Is there a reason that this is a draft pr?

I'm sorry that I have no touch to those devices that can run VS, so this PR isn't finished as you can see and untested.

1208nn avatar Jan 11 '25 11:01 1208nn

@check-spelling-bot Report

:red_circle: Please review

See the :open_file_folder: files view, the :scroll:action log, or :memo: job summary for details.

:x: Errors Count
:x: forbidden-pattern 26
:x: ignored-expect-variant 1
:warning: non-alpha-in-dictionary 19

See :x: Event descriptions for more information.

Forbidden patterns :no_good: (1)

In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves.

These forbidden patterns matched content:

s.b. workaround(s)

\bwork[- ]arounds?\b
If the flagged items are :exploding_head: false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it, try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

github-actions[bot] avatar Jan 11 '25 11:01 github-actions[bot]

@check-spelling-bot Report

:red_circle: Please review

See the :open_file_folder: files view, the :scroll:action log, or :memo: job summary for details.

:x: Errors Count
:x: forbidden-pattern 26
:warning: ignored-expect-variant 1
:warning: non-alpha-in-dictionary 19

See :x: Event descriptions for more information.

Using only_check_changed_files is incompatible with expect.txt. To accept the items listed, you should add them to allow.txt.

Forbidden patterns :no_good: (1)

In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves.

These forbidden patterns matched content:

s.b. workaround(s)

\bwork[- ]arounds?\b
If the flagged items are :exploding_head: false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it, try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

github-actions[bot] avatar Mar 13 '25 05:03 github-actions[bot]

@check-spelling-bot Report

:red_circle: Please review

See the :open_file_folder: files view, the :scroll:action log, or :memo: job summary for details.

:x: Errors Count
:x: forbidden-pattern 26
:warning: ignored-expect-variant 1
:warning: non-alpha-in-dictionary 19

See :x: Event descriptions for more information.

Using only_check_changed_files is incompatible with expect.txt. To accept the items listed, you should add them to allow.txt.

Forbidden patterns :no_good: (1)

In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves.

These forbidden patterns matched content:

s.b. workaround(s)

\bwork[- ]arounds?\b
If the flagged items are :exploding_head: false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it, try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

github-actions[bot] avatar Mar 13 '25 07:03 github-actions[bot]

@1208nn Hi, I think FL already provides this feature and please check Last Query Style.

image

If you want to select all text when window is reopened, you can use Select Last Query. And you do not want to do that, you can use Preserve Last Query.

Closed.

Jack251970 avatar Mar 13 '25 07:03 Jack251970

Oh, sorry.

I think I didn't make it clear.

for example (see #2945)

bm github

Select github

@Jack251970

1208nn avatar Jun 06 '25 14:06 1208nn

Hmm, you mean just select part of query text

Jack251970 avatar Jun 06 '25 15:06 Jack251970

Why do we need that?

Jack251970 avatar Jun 06 '25 15:06 Jack251970

@check-spelling-bot Report

:red_circle: Please review

See the :open_file_folder: files view, the :scroll:action log, or :memo: job summary for details.

:x: Errors and Warnings Count
:x: forbidden-pattern 24
:warning: non-alpha-in-dictionary 13

See :x: Event descriptions for more information.

Forbidden patterns :no_good: (1)

In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves.

These forbidden patterns matched content:

s.b. workaround(s)

\bwork[- ]arounds?\b
If the flagged items are :exploding_head: false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it, try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

github-actions[bot] avatar Jun 06 '25 15:06 github-actions[bot]

Isn't this something that can be done with a custom query hotkey? It seems pointless to create it.

onesounds avatar Jun 06 '25 18:06 onesounds