Hotkey for Edit a file

Hey,

I'm using Notepad++ for editing all my files - how can i setup a hotkey that will open a file in Notepad++ (or in any other program)

Bjarne

For example, paste this button on your toolbar:

<?xml version="1.0"?>
<button backcol="none" display="icon" textcol="none" type="three_button">
	<label>Als Text öffnen</label>
	<icon1>#read</icon1>
	<button backcol="none" display="both" hotkey="f3" textcol="none">
		<label>Read as text</label>
		<tip>Read as text</tip>
		<icon1>#read</icon1>
		<function type="normal">
			<instruction>@nodeselect </instruction>
			<instruction>{alias|home}\Tools\editor.exe /V {filepath$}</instruction>
		</function>
	</button>
	<button backcol="none" display="both" hotkey="f4" textcol="none">
		<label>Edit as text</label>
		<tip>Edit as text</tip>
		<icon1>#edit</icon1>
		<function type="normal">
			<instruction>@nodeselect </instruction>
			<instruction>{alias|home}\Tools\editor.exe /E {filepath$}</instruction>
		</function>
	</button>
	<button backcol="none" display="both" hotkey="shift+f4" textcol="none">
		<label>Edit with N++</label>
		<icon1>D:\Programme\Notepad++\notepad++.exe,0</icon1>
		<function type="normal">
			<instruction>@nodeselect </instruction>
			<instruction>{alias|programfiles}\Notepad++\notepad++.exe -multiInst -nosession -noPlugin -notabbar {filepath$}</instruction>
		</function>
	</button>
</button>

How to paste: [How to use buttons and scripts from this forum)

But look at the hotkeys at the button above - they might not fit your needs, you would have to change them then.

Besides this, I have another Hotkey (Shift + F3) for "view with Notepad++" (which didn't fit in the three-way-button anymore :wink: )

@nodeselect 
{alias|programfiles}\Notepad++\notepad++.exe -multiInst -noPlugin -nosession -notabbar -ro {filepath$}

gpsoft.com.au/manual9/NetHel ... tomize.htm

Vitali2000's first answer will create toolbar buttons which also have hotkeys.

If you want to create standalone hotkeys, without any toolbar buttons, you can do that via Settings -> Customize -> Keys. The commands will be similar to what's in the box in Vitali2000's 2nd post (depending on exactly which arguments you want to pass to Notepad++).

Its working now :smiley:
Thx for the help!

Im getting more and more pleased with this file-manager.
I have used TotalCommander for quite some years, but the project is not moving so fast forward.
I will test this program in the trial and if it continue to be so nice to work with i'll get a licens!

Bjarne Pedersen
Denmark