
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
I know a command that could do that
F7
is an app to help you manipulate strings fast and easily using Python, the command line, or a local LLM.
Install using pip:
pip install f7
Or using pipx:
pipx install f7
Requirements: xsel
on X, wl-clipboard
on Wayland.
To create desktop files, run:
f7 register
That will create the main application desktop file and optionally register a startup file.
Next, go to your system's keyboard shortcuts settings (e.g., Settings > Keyboard > Shortcuts > Add Application
on KDE or GNOME), and bind the f7
application to your preferred shortcut (e.g., F7
or F4
).
You can also try registering the command <f7 path> show
instead.
Run:
f7 register
That will register the startup registry key. The app listens for your configured shortcut. You can change the shortcut using the F7 settings in the tray menu.
Currently not supported, but may be possible using macOS's Shortcuts app (Shortcuts > + > Shell Script
) or Automator.
If you find a way to make it work, feel free to open a PR or reach out!
Select the Text: Highlight any text from any app.
Activate F7: Hit your shortcut key.
Type Your Transformation:
In the input field, use Python (default), command-line ($
prefix), or LLM (!
prefix or suffix).
Example using Python:
[l.split()[0] for l in lines]
(This tells the app: for each line, split it into words, and give me the first one.)
Or using Bash:
$cut -f1
(Use $$cut -f1
for live preview.)
Live preview will show up as you type:
18109
8679
...
Hit Enter: Result is copied to your clipboard.
Done! Paste it wherever you want.
You could also use $
prefix to run a command (then ctrl+enter to preview), or $$
fix to live-preview:
Supports two backends: Ollama and Llama.cpp.
ollama pull phi3
You can find other available models on the Ollama library website.
Configure in App:
/settings
or tray menu)ollama
phi3
)2. Llama.cpp Setup:
Download a GGUF model: e.g., from Hugging Face
Q4_K_M
Configure in App:
llama_cpp
llama_cpp_use_GPU
)F7 adds a few helpful twists to regular Python to speed things up:
Predefined variables: text
(alias:s
), lines
, words
Auto-parsed content: _
var will try to parse the text as JSON, Python literal, CSV or base64.
Forgiving syntax: complete ({[
so half-written code like [ l for l in lines
works!
List display: Lists show as joined lines ("\n".join(...)
) instead of repr(...)
, so it easier to work with lines.
Auto-display: Typing text.upper
or urldecode
get output automatically if they match (str) → str
, or a method of text
.
Useful built-ins:
grep("foo")
→ like re.search(...)
over lines
sub("a", "b")
→ like re.sub(...)
on text
entropy
, from_base64
, from_tsv
, etc.Preloaded utils: Things like lnjoin = "\n".join
, urlencode = quote_plus
. also there are string formatters like snake_case
, camel_case
that came from string_utils
Unfortunately, Chrome doesn’t let you disable F7. Options:
Remap shortcut to something else (e.g. F4
)
F7 settings > System > Hotkey
F7
key to something else (e.g. using PowerToys on Windows bind F7 to alt+F7)caret browsing
in FirefoxIf you use caret browsing, consider remapping the shortcut. Otherwise, just click "Do not ask me again" and choose "No". Firefox will remember your choice.
please open a GitHub issue
If you found this app useful, please buy me a coffee:
FAQs
F7 is a productivity tool to manipulate strings using python,shell or AI
We found that f7 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.