[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-25 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/128571 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-25 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/128571 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/128571 >From 57638e91c97486ad7739f9658fe88f7fb4d61fb2 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 24 Feb 2025 12:48:17 -0800 Subject: [PATCH 1/5] [lldb] Add fzf_history command to examples --- lldb/example

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
kastiglione wrote: I added a featureless invocation of fzf for when copy and paste support isn't available. https://github.com/llvm/llvm-project/pull/128571 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/128571 >From 57638e91c97486ad7739f9658fe88f7fb4d61fb2 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 24 Feb 2025 12:48:17 -0800 Subject: [PATCH 1/4] [lldb] Add fzf_history command to examples --- lldb/example

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
kastiglione wrote: > Instead of using `pbcopy/pbpaste`, which makes this macOS only, could you use > a Python temp file and read/write from that? @JDevlieghere I didn't do that because it would be an implementation I wouldn't even want to use, for platforms I don't use. Without a way to do co

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
@@ -0,0 +1,100 @@ +import os +import re +import sys +import subprocess + +import lldb + + +@lldb.command() +def fzf_history(debugger, cmdstr, ctx, result, _): +"""Use fzf to search and select from lldb command history.""" +if sys.platform != "darwin": +result.SetEr

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere commented: Instead of using `pbcopy/pbpaste`, which makes this macOS only, could you use a Python temp file and read/write from that? https://github.com/llvm/llvm-project/pull/128571 ___ lldb-commits mailing list lldb-

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Chelsea Cassanova via lldb-commits
@@ -0,0 +1,100 @@ +import os +import re +import sys +import subprocess + +import lldb + + +@lldb.command() +def fzf_history(debugger, cmdstr, ctx, result, _): +"""Use fzf to search and select from lldb command history.""" +if sys.platform != "darwin": +result.SetEr

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/128571 >From 57638e91c97486ad7739f9658fe88f7fb4d61fb2 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 24 Feb 2025 12:48:17 -0800 Subject: [PATCH 1/3] [lldb] Add fzf_history command to examples --- lldb/example

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/128571 >From 57638e91c97486ad7739f9658fe88f7fb4d61fb2 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 24 Feb 2025 12:48:17 -0800 Subject: [PATCH 1/2] [lldb] Add fzf_history command to examples --- lldb/example

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/128571 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/128571 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/128571 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/128571 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/128571 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread via lldb-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r b335d5a8303250cb49901ecae7570adf61abbd3c...57638e91c97486ad7739f9658fe88f7fb4d61fb2 lldb/

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Dave Lee (kastiglione) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/128571.diff 1 Files Affected: - (added) lldb/examples/python/fzf_history.py (+99) ``diff diff --git a/lldb/examples/python/fzf_history.py

[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

2025-02-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/128571 None >From 57638e91c97486ad7739f9658fe88f7fb4d61fb2 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 24 Feb 2025 12:48:17 -0800 Subject: [PATCH] [lldb] Add fzf_history command to examples --- lldb/examp