Comments (10)
@Kamul-PL on which OS are you?
from sleek.
Currently mainly Linux Mint at home and Windows 10 at work.
from sleek.
On MacOS we have the Cmd
+ H
shortcut, which is used to hide a window. That's an Apple convention.
I checked out some Windows apps but could not find a shared pattern on how these apps handle this. @Kamul-PL do you know how Windows apps typically handle this? Is there a shortcut convention? Same question for Linux.
from sleek.
So I checked some of my Windows applications. None has any function or shortcut to hide itself. I also did some research and there doesn't seem to be a default "Windows way" of hiding the active application. There are many workarounds but not a clean way like in MacOS (CMD + H).
In Electron (sleek is based on it) there is a way to hide the application window, but in Windows this basically leads to the application being hidden and not visible in the task bar. Like that I was not able to get it visible again.
At this point I don't see a way of implementing this for Windows, I'm afraid. And I don't want some custom shortcut in sleek, that then clashes with shortcuts on other operating systems.
from sleek.
May this be a solution? https://www.electronjs.org/docs/latest/api/tray
from sleek.
@akoylu could you elaborate how the tray API can help here?
from sleek.
This is an automated response. We acknowledge your report, and we appreciate your engagement. However, as there has been no recent activity in this thread, it has been marked as stale. If you have any further feedback or if the matter is still relevant, please do not hesitate to respond. Otherwise, this thread will be automatically closed in 15 days from now.
from sleek.
This issue has been discussed in another thread, which concluded in removing it from sleek on Windows and on Linux, but keeping it available on macOS. Reason being is that this feature is only really expected by mac-users.
On Windows users apparently use the Ctrl + D shortcut to expose the desktop and hiding single Windows doesn't seem to be a common use case.
On Linux it is even more difficult, since every desktop environment does something different. Thus users can be expected to be more willing to customise this kind of behavior with third party tools.
If you disagree, feel free to continue the discussion here.
from sleek.
Windows 10 here.
I think, that's a very important feature. I try to avoid the mouse where I can, and having to single-click on the tray-icon to open Sleek is kind of a hassle. Maybe a hotkey like in todotxt.net could be implemented?
Thanks
from sleek.
On Linux it is even more difficult, since every desktop environment does something different. Thus users can be expected to be more willing to customise this kind of behavior with third party tools.
I've been a desktop Linux user for over 20 years and I prefer keyboard-driven app switching just like @Kamul-PL does.
In my Linux experience, while some apps do offer a show/hide shortcut (e.g. GoldenDict), they typically allow you to customize and/or remove it to avoid conflicts with window manager/desktop environment shortcuts. Until sleek offers customizable shortcuts, it seems the best option is to use third-party tools such as xbindkeys, jumpapp, etc. There are plenty of those around.
Problem: At this time I couldn't make sleek work with jumpapp because there doesn't seem to be an easy enough way to programmatically raise and focus sleek when it's minimized to tray and no window is shown in the taskbar.
@ransome1 Would it be possible to implement single-instance mode for sleek? That way, when you try to launch sleek and it's sitting in the tray, sleek would simply raise and focus the existing instance (same as clicking "Show sleek" from the tray menu)? Currently you can launch multiple sleek instances, which I don't think makes sense -- we have file tabs for handling multiple files within a single instance anyway, correct?
Enforcing single-mode would essentially solve the issue of show/hide functionality under Linux. One could then assign a preferred shortcut to something like jumpapp -m -R -C -t '^sleek$' sleek
in your WM/DE and voila.
from sleek.
Related Issues (20)
- Windows setting to show Sleek application icon in taskbar does not persist
- 2.0.12-rc.4 - can't open file on Windows HOT 3
- 'Error: ENOENT: no such file or directory' on starting sleek HOT 5
- Failure in parsing Context tags HOT 2
- Message 'No todos in this file' after a task has been completed HOT 13
- Only show the first line of multi-line tasks in the task list
- Since last update (2.0.12), completing a task causes ToDo.txt file to be "lost" HOT 5
- Custom Theme Support
- layout problem, todo item editor date text doesn't fit with zoom set below 90%
- TypeError: Cannot read properties of undefined (reading 'includes') HOT 3
- "Add a new todo" shortcut not working on 1st start HOT 3
- When todo.txt File Is Synched From Other Device, It Desapears From Sleek
- Human readable date missing for "in a couple of months" HOT 1
- Add setting "Position for new recurring tasks in todo.txt" HOT 1
- What is Pomodoro index? HOT 2
- In the edit popup, entering a priority by pressing a key doesn't work
- Sleek blanks out when task contains markdown link with empty label
- Error: ENOENT: no such file or directory, open ...\done.txt in Windows 11 22H2
- not installing required packages
- Improve sorting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sleek.