Should I change Start Menu Link names for Windows 8? - menu

In Windows 8 Microsoft has removed the Start Menu so you can't see easily see the installed programs pieces that can be clicked on to run. Is this correct?
So it appears when you install a program under Windows 8 that you must now just know a few letters in the start link names for what was installed, so you can then type the Windows key and those few letters to then be shown start icons for the programming. correct?
So it appears my software menu shortcuts need to include a common two letters in each of their start menu link names so the user then can press the Windows key and type those two letters to see the software start links that have been installed. Right idea?

"In Windows 8 Microsoft has removed the Start Menu so you can't see
easily see the installed programs pieces that can be clicked on to
run. Is this correct?"
The Start Menu has been "reimagined" into the new Start Menu with tiles that can receive live updates. Instead of a Start Menu that lists each program's static name, each application now has a tile which can surface fresh information relevant to the app (for example, a Weather app can show the current temperature in your city and sunny vs. cloudy graphic, etc.).
"So it appears when you install a program under Windows 8 that you
must now just know a few letters in the start link names for what was
installed, so you can then type the Windows key and those few letters
to then be shown start icons for the programming. correct?"
When you type the Windows key, that brings you to the new Start Menu. When you then type those few letters, that is automatically invoking Search (which you can also invoke at any time though Windows key + Q).
"So it appears my software menu shortcuts need to include a common two
letters in each of their start menu link names so the user then can
press the Windows key and type those two letters to see the software
start links that have been installed. Right idea?"
Since it is invoking search, you don't really need a common two letters. Just name your app something memorable that makes sense with the app's functionality, and the user can type the name of your app or its first few letters to bring it up as you describe using search.
The user can also browse through the Start Menu to find your app, and group similar applications together on the Start Menu to make apps easier to find (here is how-to info on making and naming groups).

Related

Sublime Text plugin development: modifying the Quick Panel to add a custom text title or label?

I'm developing a Sublime Text 3 plugin which uses the quick panel a.k.a. the command palette.
I would like to add a textual title/label at the top of the quick panel when the user opens my plugin's quick panel menu, because my plugin runs in various modes and I want to make it clear which mode is currently running (Test, Pre-Live, Live, etc.)
Is this possible, and how?
This a mockup of what I want to achieve:
This is not possible in a quick panel, no. The only thing you can provide to the quick panel display-wise is the list of items that you want the user to choose from. Each item in the list can contain multiple lines of data however (with the restriction that every row has to contain the same number of lines):
Something like that could potentially be used to provide context on the items in the list that allows the user to know what mode you're in.
The Command Palette and the quick panel aren't the same thing (although they are visually similar); the command palette only displays commands that you can choose. By using an input handler, you can customize the display somewhat:
In this sample, View Package File is the selected command, but the command has control over what that text says (it's just the command name by default). You also have the power to provide a "preview" (basically any extra information that you want) about the currently selected item:
So given that, depending on your use case your command could present its interface in the command palette to give this kind of contextual clue.

applescript display dialog with custom icon

Is there a way to use custom icons with applescript display dialog and notifications?
In the AppleScript documentation it says about the display dialog:
with icon (text | integer)
The resource name or ID of the icon to
display.
with icon (stop | note | caution) The type of icon to show.
You may specify one of the following constants:
stop (or 0): Shows a stop icon
note (or 1): Shows the application icon
caution (or 2): Shows a warning icon, badged with the application icon
with icon (alias | file) An alias or file specifier that specifies a .icns file.
So it seams like you can use your own icons, but I cannot get the following code to work.
display dialog "Text" with icon "/Users/user/Desktop/asd.icns"
It gets me the following error: "Resource not found."
The goal is to not even use a display dialog, but a display notification instead.
First of all you can't display a custom icon with display notification. The reason is that notifications are strongly related to a target application. As AppleScript scripts and applets aren't applications in terms of the Notification framework, the notification is related to the current application, the AppleScript Runner.
But you can display a custom icon with display dialog
The line
with icon (alias | file) An alias or file specifier that specifies a .icns file.
means what it says: The parameter must be an alias or file specifier rather than a POSIX or HFS string path.
Either
display dialog "Text" with icon alias ((path to desktop as text) & "asd.icns")
or
display dialog "Text" with icon file ((path to desktop as text) & "asd.icns")
path to desktop as text represents the HFS path to the desktop of the current user:
"Macintosh HD:Users:user:Desktop:"
Noted this question was three years ago, but I stumbled across this looking for a solution to a similar problem. Mine needs display alert rather than ... notification but the problem is the same because display alert doesn't have a custom icon option.
As noted in the other answer here, AppleScript has at least three interactive message type commands: display dialog, display alert, display notification, and probably others. It seems odd that only the first has the option to add a custom icon. I don't really understand why that is when it would be simple to make them consistent.
Needless to say, this question and #vadian's answer, inspired my solution - a "duh" moment for me once I realized it. It may or may not be a solution to this question. Posting it in case it is...
If the icon in question belongs to an app, you can tell that app to display the notification, regardless of whatever else your script is doing.
Your script can do whatever it needs to do to whatever other apps, or System Events, or itself (if your script is saved as its own application), or whatever else. In the middle of all of that you can have a single line that says:
tell application "MyApp" to display notification ...
The notification will have My App's icon, the result of the notification if any will be returned to the rest of the script and then your script will continue on inside whatever other tell statement or context its in.
If your icon isn't the icon for an app, then I believe there are ways to create an empty app with whatever icon you like, which can behave this way. Admittedly that's a bit of a kludge, but depending on how badly you want this, it's an option - though not one I'll expand on here.
My specific case in detail if interested (but doesn't particularly add to the solution above, just covers how I got there):
I'm writing a script that quits and re-opens another application after confirmation from the user. However, let's say I just wanted to provide a notification as per this question.
Options:
1. display dialog - has the option to provide a custom icon but lacks features of the other two options.
2. display alert - no custom icon but has other desired features, in my case the message parameter which adds extra smaller explanatory text below the primary text.
3. display notification - no custom icon but has other features as desired by this question's poster.
In my case I want alert because I want that extra message parameter (but this works for notification as well).
In my case, ideally the icon of the alert would be the icon of the app I'm restarting, but I can't tell the app itself to display the alert and then restart because the script loses connection with the app when it quits and it kills the running of the script.
If I tell System Events or the script itself to do all that then it can quit and reopen the app independently of the app, but the alert has the generic icon of itself or the System Events icon.
However, if I do what I described above - have my script do all its stuff, but have it tell the app in question to display the alert (and only that as described above), then the alert has the icon of the app in question, but the script still does its stuff independently of the app outside of that alert.
Solved my problem. May or may not solve this question.
#DavidT's answer is a perfect solution when your script is controlled by another application. However, things have changed a bit on Mac OS since.
Notably, if you run your script with tell application "MyApp" to display alert ... you will be promoting the user to give your app permissions to control itself, at least starting since Catalina. Not only this annoys the user with a new permission request, but it also looks kinda dumb since the dialogue is asking the user to allow "MyApp" to control "MyApp" and if the user denies it, your script will fail.
To avoid the permission request, just use tell me to display alert ... this will work just fine.
Another issue you might run into is that osascript may throw an exception if your script is launched as root. I found a nice workaround for that here.
This is a small example of how to launch the dialogue with the right user:
uid=determineUserIdFunction(...)
launchctl asuser $uid /usr/bin/osascript <<-EOS
tell me to display dialog "Now you see me" buttons {"OK"} default button 1 with title "WARNING!"
EOS
You have your path specification wrong. If you have a posix path to your icns file, use the POSIX file class coercion:
display dialog "Text" with icon POSIX file "/Users/user/Desktop/asd.icns"
This coerces the string path into a file reference the system understands, and works just fine.

In Windows 10 how do I add a program to the main "Open With" menu not "Choose another App"

With Windows 7 I could easily use the Open With context menu to add a new program which would thereafter appear in the Open With menu (I can't remember the exact sequence, but it was easy and worked fine). However I have now upgraded to Windows 10. The programs that I associated with my particular file extension in W7 still appear in the Open With menu in W10. If I want to add another one I select "Choose Another App". However, any app I add with W10 does not appear in the Open With menu - I have to select Choose Another App every time to get to it. I now have two lists of available apps, one in Open With (the ones I set up with W7) and one in Open With | Choose Another App (the ones I set up with W10). It's not exactly a show stopper but it's irritating. Does anyone know what this is all about and how I can get the apps into the main Open With menu?
The reason why it doesn't appear in "Open with" menu is most likely because application's VERSIONINFO is not properly filled out with all the relevant details. If you are application developer you should create VERSIONINFO resource as clarified here:
https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource
If you are not the developer, then you can still fix this by editing registry - see here:
https://superuser.com/questions/1199648/strange-open-with-list-inconsistent-with-registry/1256482#1256482
Basically under the registry key: Computer\HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache there should be 2 keys for YourExampleApp:
One that ends with .FriendlyAppName
One that ends with .ApplicationCompany
For example:
C:\Program Files (x86)\ExampleApp\YourExampleApp.exe.FriendlyAppName
C:\Program Files (x86)\ExampleApp\YourExampleApp.exe.ApplicationCompany
Most likely one of these 2 is missing which causes the application to be dropped out of the "Open with" menu.
The MuiCache list is cached from the properties of the application's VERSIONINFO resource embedded in the application, so if such resource is missing from the application, some items may be missing from the cache as well. For more details have a look at the above references.
Coder12345 had the correct answer for me, thanks a ton! I would like to expand on it briefly; I wanted Shotcut to appear in the first open with... context menu. I had to add the registry entry for ApplicationCompany. It appears that it doesn't matter what you put for the value of that key, just as long as it's there. No restart of file explorer was required, the change takes place immediately.
Also, the FriendlyAppName changes what text appears in the open with submenu. Shotcut appeared as shotcut.exe so I changed it to just Shotcut.

What Redmine plugin allows quick navigation between projects?

Is there a redmine plugin that allows quick navigation between projects?
Feature it might have may be showing a pop up dialog that allows you to see all your projects at a glance and jump to them, or the time that gives a filtered list as you type the name?
How about the built-in project drop-down list?
Here's how I use it with FireFox (windows) - no mouse needed:
shift + alt + f : puts the focus in the search box
tab : moves focues to the project drop-down
... start typing the name of your project (usually the first 2-3 letters are enough)
tab or enter to go to the project
Last time I checked, there was no accesskey defined for the project drop-down, hence using the one for the search box.

Linux Editor that can highlight all instances of a selected word [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
Is there an editor in Linux that can highlight all instances of a word when the word is double-clicked? I was using Notepad++ in Windows which provided that feature. Now I am missing it in Linux editors. I tried Kate, Gedit, etc.
To enable this feature in Geany do the following:
Install the addons plugin: sudo apt-get install geany-plugin-addons
In Geany, click on Tools -> Plugin Manager
enable the plugin Addons (check in the column Active)
configure the plugin by clicking on Preferences
enable the option Mark all occurrences of a word when double-clicking it
First install the addons plugin:
sudo apt-get install geany-plugin-addons
and then apply the answer of mr13.
What version of Kate where you using, Kate has that exact feature as described here.
This Geany addon didn't work for me (on Fedora), rather this one did: http://sourceforge.net/projects/geanyhighlightselectedword/. Though installing it was a bit complicated.
Summary
Eclipse has something similar. Install the Darkest Dark plugin, then double-click a word and press Ctrl + F to highlight all instances. Press Esc to unhighlight.
Both Sublime Text 3 and 4 and Microsoft Visual Studio Code (VSCode) have the double-click feature. Just double-click any word to highlight all instances of it. Click away anywhere to unhighlight.
Details
The top 3 modern, Linux-compatible editors which come to my mind when I think about software development are the following. All 3 of them are powerful, modern, widely-used, and cross-platform (Windows, Mac, and Linux)!
Eclipse
free and open source software (FOSS), and no-cost, but very heavy.
My go-to and primary editor for professional and hobby software development because it's got an outstanding, world-class indexer which allows you to Ctrl + Click on any variable or function name to jump to its definition.
Links to my full setup documentation are found here.
Sublime Text 3 and 4
proprietary/closed-source shareware, a professional and very powerful and very light-weight tool, no-cost for an unlimited full-access trial period, and relatively low-cost for a license
My primary editor for individual files--I frequently edit the same file at the same time with both Eclipse and Sublime Text 3 and 4, since Sublime has wonderful multi-cursor support for simultaneous editing of multiple lines all at once! I also have Eclipse set as my git editor of choice (see my answer here: How do I make git use the editor of my choice for commits?)
Learn to use it with this live, interactive tutorial-style "plugin": https://sublimetutor.com/.
Microsoft Visual Studio Code (VSCode)
free and open source source (FOSS) source code, and no-cost; minor caveat: technically, the binaries distributed by Microsoft are freeware, though the source code is free and open source
One of the industry's most popular editors today, but also a relatively new entry into the field. I haven't used it much yet.
So, let's see how each of these 3 can "highlight all instances of a selected word":
1. Eclipse
If you install the plugin Darkest Dark Theme with DevStyle, you get the following features:
Just place your cursor on any variable and it automatically highlights all instances of this variable, like this. Here you can see _currentChannel_i highlighted in black in 4 places, and in some yellowish color in one place near the bottom-left:
[MY FAVORITE] Double-click any word to highlight it, then press Ctrl + F to highlight all instances of it! Use the buttons in the find bar in the top-right (also shown circled below) to choose "Case sensitive search" and/or "Match whole word" as desired too. You can also choose "Regular expression search". Here you can see 8 instances of _currentChannel_i all highlighted in blue, including some in the comments! I use love this feature and use it all the time! Press Esc to cancel the Ctrl + F blue highlighting.
See here for links to my full setup documentation.
2. Sublime Text 3 and 4.
From here, if I'm doing some fancy multi-cursor editing, I like to right-click the screen and go to "EasyShell" --> "Open with default Application" to open up this same file in Sublime Text 3 or 4.
In Sublime Text 3 and 4, you simply double-click any word to highlight all instances. That looks like this. Here, I have double-clicked _currentChannel_i, and you can see 9 instances of it highlighted/boxed, including in the comments. Simply click away anywhere to undo this selection.
Note that you can also highlight a word and then press Ctrl + D repeatedly to highlight instances of it, one-at-a-time, each with a new cursor. This is handy when editing all instances of a variable in a single file all at once, for quick-editing/refactoring, rather than using the Ctrl + H Find and Replace tool.
3. Microsoft Visual Studio Code (VSCode)
This one is super easy too! Just double-click any word to highlight all instances of it--same as Sublime Text 3 and 4. Click away anywhere to undo this selection. Here, I have double-clicked _currentChannel_i, and you can see 9 instances of it highlighted, including in the comments.
So, which editor to use?
Well, Sublime Text is the lightest, by far, but lacks a good indexer and function view/explorer. It has advanced, modern features like multi-cursor mode. It is made by one lone and very-talented developer, so if you use it, please go buy a license to support his work. That's his livelihood.
Eclipse is the heaviest, by far, but lacks modern features like multi-cursor mode. It is the oldest of the 3, by far, and has a world-class indexer. Since it is the oldest (first released in 2001) and FOSS, it is widespread and is used as the base for many other professional editors and microcontroller development platforms, such as the STM32CubeIDE, and the Arduino Professional IDE, both of which are Eclipse-based. For that reason alone, it is worth learning.
Microsoft VSCode is the newest (first released in 2015), and is more light-weight than Eclipse and more-advanced and feature-rich than Sublime Text. Since it came after the other 2 editors, it was able to borrow ideas from Sublime Text (I'm supposing), such as multi-cursor mode, which is ingenious. Therefore, it contains that feature (see here: https://code.visualstudio.com/docs/editor/codebasics#_multiple-selections-multicursor), as well as a powerful indexer (which I can't comment on since I haven't used it), and an "OUTLINE" view in the left-hand pane to view a list of functions, definitions, etc., like I can see in the "Outline" view in Eclipse in the right-hand pane. Since it is backed by Microsoft, it is arguably the best-supported of the 3.
Since I am most-familiar with Eclipse, I prefer it in conjunction with Sublime Text. If you are brand-new to these editors, however, I recommend you just start with Microsoft VSCode and go from there. Optionally, try out my Eclipse installation and configuration instructions above if you ever find yourself needing or wanting to use Eclipse directly, or STM32CubeIDE or the Arduino Pro IDE.
VIM can do this:)Not by clicking, but there is a way to quickly search for a word and highlight all occurrences.
Check this out:
http://vim.wikia.com/wiki/VimTip14
There's Geany, but I don't know if it does that.
You could customize gedit to do much of what you want:
http://grigio.org/pimp_my_gedit_was_textmate_linux
If you can't get what you want, you could install Notepad++ with WINE. Try something like this.
In Linux Mint 19 Tara
Install geany-plugin-automark, then start geany, go to
Menu -> Tools -> Plugin Manager and Enable/check Auto-mark

Resources