Giter Club home page Giter Club logo

icanhazshortcut's People

Contributors

deseven avatar elderbas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

icanhazshortcut's Issues

Unable to Map Clear/Numlock Button

I'm hoping to use icanhazshortcut to enable the 'numlock' button on my CoolerMaster Pro M keyboard with a script, but unfortunately I can't map the the 'numock' button on my keyboard because it functions as 'clear' as well and clears the currently selected shortcut instead of creating a mapping. Is there any way around this?

Customizable columns

Say I have more than 1 entry with the same command (eg. git sync), no action name, but each has its own working dir. It would be easier to differentiate them.

Oh, i think i have a better idea then! What if i add a possibility to select needed columns (and also to save that state, along with column sizes, etc)?

Like that:
image

Originally posted by @deseven in #3 (comment)

Action Name

Please add a field to provide an action name, to have more meaningful titles showing up in the menubar, instead of the whole command gibberish.

There are some 10.10+ api calls

Which makes iCHS actually incompatible with OS X versions earlier than 10.10.

Possible options:

  • get rid of this calls
  • set OS X version requirement to 10.10

Import/Export shortcuts via AppleScript

It's nice to be able to view the defined shortcuts via AppleScript (and to toggle them), but it would be nice to be able to export them (TSV would be fine) and import them, which would permit backup and sharing shortcut sets.

Multiple hotkeys

It would be awesome if I could assign multiple hotkeys to commands. For example, I would like to be able to open Desktop folder with Alt+D,D and the Documents folder with Alt+D,O and the Downloads folder with Alt+D,W. In the current version, I have to assign Alt+something for each folder.

cannot use this app

I'm trying to use this app to program my mac to run terminal programs. When I hit download the files, I don't see any file that looks like the app. When I hit download to desktop it's just a github app.

Catalina 10.15.7 cannot perform check on ichs

As described, Catalina 10.15.7 doesn't seem to be able to perform a check on iCanHazShortcut 1.3.0 and won't let me run it at all.

Installed it using:

 /u/l/d/presentations   master ±  brew cask install icanhazshortcut
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 2 formulae.
==> Updated Casks
disk-drill                                            staruml                                               vellum
==> Deleted Casks
daedalus

==> Downloading https://github.com/deseven/icanhazshortcut/releases/download/1.3.0/ichs.dmg
Already downloaded: /Users/erasmus/Library/Caches/Homebrew/downloads/6068311fd91b42dfe6219683f6613280c65062b5488b8ed9aae335b36b8dbaa6--ichs.dmg
==> Verifying SHA-256 checksum for Cask 'icanhazshortcut'.
==> Installing Cask icanhazshortcut
==> Moving App 'iCanHazShortcut.app' to '/Applications/iCanHazShortcut.app'.
🍺  icanhazshortcut was successfully installed!

macOS responds with :

“iCanHazShortcut” can’t be opened because Apple cannot check it for malicious software.

This software needs to be updated. Contact the developer for more information.

Homebrew Cask downloaded this file today at 13:56 from github.com

(The same happens when I install not using brew)

Can't assign function keys

Is there any way to have only a function key like F5 trigger the shortcut? Was not able to enter only a function key.

Option to manually check for updates

I have Check for updates enabled in Preferences, but I got no notification of the new 1.1.0 version, even after rebooting. Is this function working and, if so, when exactly does ICHS check for updates?

New icon set

Current internal icon set doesn't fit macos look and program/statusbar icon. It should be replaced if possible.

Action buttons:
add.png, 48x48, used to add new shortcut;
apply.png, 48x48, used to apply shortcut changes;
cancel.png, 48x48, used to cancel shortcut changes;
del.png, 48x48, used to delete shortcut;
down.png, 48x48, used to move shortcut down;
edit.png, 48x48, used to edit shortcut;
test.png, 48x48, used to test shortcut;
up.png, 48x48, used to move shortcut up.

Shortcut list:
disabled.png, 32x32, used to show disabled shortcuts in the list;
failed.png, 32x32, used to show failed shortcuts in the list;
ok.png, 32x32, used to show active shortcuts in the list.

Resources are available here.

Evade ARM doomsday

So, Apple is switching to ARM. Even with Rosetta 2 nobody knows how long current software will work on newer versions of macOS. PureBasic (in a form of pbcompiler) currently doesn't support ARM and there is no guarantee that this will ever change.

The only available option would be to rewrite everything from scratch on Swift (which will obviously support new architecture). Hopefully some other languages with good Cocoa bindings will follow, i need to monitor that.

The decision should be made in 2 years, yay!

Allow adding a command without a shortcut key

Since this goes a bit against the scope of iCanHazShortcut, which is to assign system wide shortcuts to commands, I'm not sure about this one.

The reasoning for this is, when we get a long list of commands, we may eventually run out of available shortcut combinations. Since we can also see and execute commands from the menubar icon, maybe we could set commands that we don't run so often, without a shortcut, and execute them, manually from the menubar, when needed.

If a user prefers to hide the menubar icon, he just needs to make sure he assigned a shortcut to every command. It would be flexible for everyone.

Anyway, just a low priority suggestion. You can close this one if you feel it's not worth it.

Unsure why this doesn't work

$ oathtool --totp -b "SECRET_KEY" | pbcopy
$ pbpaste
  123456

But using the same with icanhazshortcut doesn't seem to work. Any idea why this is? and how to fix it?

Thanks for creating this nifty tool! Super useful 👍

Shortcuts not written to disk

I just discovered this app and it is a gem! However, it does not record to disk the Shortcuts that I add to it. After a reboot they're gone.

MacOS 10.15.4
MacBook Pro (16-inch, 2019)

I can't figure out how to give iCanHazShortcut permission to automate Chrome

I'm trying to configure iCanHazShortcut to run a script that accesses Chrome via AppleScript (wrapped in Python) but am running into a

aem.aemsend.EventError: Command failed: The user has declined permission. (-1743)

error. More fully, the error report is

[stderr]
Traceback (most recent call last):
  File "/Users/raymondyee/C/src/my_conda_envs/myenv5/.venv/lib/python3.7/site-packages/aeosa/appscript/reference.py", line 482, in __call__
    return self.AS_appdata.target().event(self._code, params, atts, codecs=self.AS_appdata).send(timeout, sendflags)
  File "/Users/raymondyee/C/src/my_conda_envs/myenv5/.venv/lib/python3.7/site-packages/aeosa/aem/aemsend.py", line 92, in send
    raise EventError(errornum, errormsg, eventresult)
aem.aemsend.EventError: Command failed: The user has declined permission. (-1743)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/Users/raymondyee/bin/chrome_tabs_to_clipboard.py", line 10, in <module>
    for w in gc.windows():
  File "/Users/raymondyee/C/src/my_conda_envs/myenv5/.venv/lib/python3.7/site-packages/aeosa/appscript/reference.py", line 664, in __call__
    return self.get(*args, **kargs)
  File "/Users/raymondyee/C/src/my_conda_envs/myenv5/.venv/lib/python3.7/site-packages/aeosa/appscript/reference.py", line 518, in __call__
    raise CommandError(self, (args, kargs), e, self.AS_appdata) from e
appscript.reference.CommandError: Command failed:
		OSERROR: -1743
		MESSAGE: The user has declined permission.
		COMMAND: app('/Applications/Google Chrome.app').windows.get()


Action executed successfully!

I don't ever remember getting prompted to give iCanHazShortcut permission to access Chrome, and I'm pretty sure that I would have said yes. I can't seem to set that situation right to give the right permissions now.

My setup:

  • iCanHazShortcut 1.0.1
  • MacOS Mojave 10.14.3

I've reset System Preferences -> Security & Privacy -> Automation with

tccutil reset AppleEvents

but still get the same problem.

Thanks in advance for any help! (and thanks for iCanHazShortcut in the first place)

[stderr] automator Cache location entry for Photos.app

automator '.../New Microsoft Edge Window.workflow'
on run {input, parameters}
	
	tell application "Microsoft Edge"
    	make new window
    	activate
	end tell
	
	return input
end run
[stderr]
2020-07-15 19:02:46.841 automator[95181:26514832] Cache location entry for /System/Applications/Photos.app in cache file at /Users/.../Library/Caches/com.apple.automator.actionCache-bundleLocations.plist is not valid: Location /System/Applications/Photos.app has been modified.

As you can see, I don't use Photos.app related actions, and I am wondering what is the problem. Hope anyone can help.

iCHS not working under MacOS Catalina 10.15.2

At the moment iCHS is not working for me under Catalina in the sense that the Keyboard shortcuts don't work. How can I change that?
Is there maybe somewhere any logfile I can refer to, that tells me what is happening, when I press one of the iCHS keyboard shortcuts?

Resizable Window

Would like to be able to resize the window from the lower-right corner.

Notification Banner

Love this little tool. It would be perfect if after a shortcut has been activited we could configure to automatically display a notification banner with the given shortcut name. There is a workaround to use an additional osascript command like:

osascript -e 'display notification "" with title "Internal Speakers" subtitle "Sound Output"'

But if it would come out of the box, that would be brilliant.

Shortcut key doesn't match keyboard layout

I'm using a keyboard with an ISO-DE layout.
When I click on the Shortcut combination control to set a shortcut keystroke for an Action I get totally different results than keys I pressed. Obviously, ichs uses some kind of "hard wired" US/ANSI keyboard layout here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.