Vector35 / Vector35/snippets

Snippets on top of windows/widgets

Open
#62 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
31
Forks
14
PR merge metrics
No merged PRs in 30d

Description

I think it may be more useful to place the Snippets dialog persistently on top of other windows, so even if user would click somewhere else the dialog is still on top of. The cases when it may be useful is that when writing quick snippet users may wants to take a quick look at binary - grab some data values or check the address.

This can be done easily with changing this line:
https://github.com/Vector35/snippets/blob/ceb917b3f4cb895d186691beff3740d9b17b8eb9/__init__.py#L282

into:

    self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint | Qt.WindowType.WindowStaysOnTopHint)
    self.setFocusPolicy(Qt.StrongFocus)

or may be add Setting to control this behaviour.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in init.py at the window-flag setup around line 282 and inspect how the Snippets dialog is created. Compare the requested always-on-top behavior with the possible settings-based alternative, then verify that the dialog remains above other windows and retains usable focus behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.