Hi
i use Opus version 12.
I want to create a new txt file with eg the keyboard shortcut Ctrl+t
Is that possible if so how do i do that ? Please specific steps as i am not that great at coding
thanks
Nolan
Hi
i use Opus version 12.
I want to create a new txt file with eg the keyboard shortcut Ctrl+t
Is that possible if so how do i do that ? Please specific steps as i am not that great at coding
thanks
Nolan
ok thanks. How do i get to the window you showed ?
Can i seet all txt files to default save in UTF-8 BOM ?
How to do that ?
thanks
Nolan
How do i get to the window you showed ?
I'd recommend you read
https://www.gpsoft.com.au/help/opus12/index.html#!Documents/customize.htm
https://www.gpsoft.com.au/help/opus12/index.html#!Documents/The_Customize_Dialog.htm
https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Hotkeys.htm
Can i seet all txt files to default save in UTF-8 BOM ?
Not sure if that is possible in Opus, it's probably easier to set this in your editor, e.g. Notepad++
Thanks.
Can i seet all txt files to default save in UTF-8 BOM ?
Can i seet all txt files to default save in UTF-8 BOM ?
Yes i tried that but doesnt work because that only works it a new txt is created from within notepad++. right click "new txt" creates in the format windows sees fit ie UTF-8 (no BOM). And if you open that with notepad++ it turns up ANSI which is crippled for the purpose
New text files are completely empty (zero bytes). Notepad++ may have an option to assume an empty file is UTF8. If not, it might be worth asking them to add it as it could probably be useful to a number of people.
You could also make something in Opus to copy a template file with BOM to the current folder (or create one each time via script) if you want to solve it that way.
Hi Leo
ok thanks, this may work - could you helo me hiw to do that ?
make something in Opus to copy a template file with BOM to the current folder (or create one each time via script) if you want to solve it that way
Copy "C:\x\y\z\New Text Document.txt" HERE
Or something similar.
You may also be able to run Notepad++ with the name of a new file to have it create the file itself and open it for editing. Some editors support that, at least.
Hi
I don't quite understand what you mean with X,y,z and how to implement this.
An idea: how can I make Ctrl + O launch notepad.exe instead of creating a txt file?
That may solve it
Nolan
That’s an example path. I don’t know where you want to store your template file, so you’ll need to adjust the path to match your choice.
Yes I see, but
How / where in the "coding "to apply the template?
How can I make Ctrl +O launch notepad instead of create a new text file ?
Sorry i figured this out, simply insert path to notepad.exe
This is a fast as having Ctrl + O create an empty text file
However that causes another problem. Opus shows weird characters of the letters æøå in the preview pane.
Any idea why and how to solve this ?
thanks
Nolan
PS opening the txt file with notepad shows the characters correct
It shouldn’t do that if the file has a BOM (which I think was your intent).
No you are right, and it dont when i set UTF-8 BOM. But i found that windows search cannot search such files therefor i changed the default to ANSI which windows index correctly. But heres the odd thing:
On my windows 11 pro desktop Opus shows weird characters for the letters æøåæøå, but on my windows 11 pro laptop Opus shows them correct. Both PCs operate the same OS.
And on both PCs opening the ANSI txt file with notepad shows the characters correctly. So why does Opus show the characters correct in opus preview pane on one PC and not on the other ?
Any clue ?
thanks
Nolan
There’s a setting in the viewer to assume UTF8 when there isn’t a BOM. Maybe it’s on for one PC and off for the other.
Hi
i just checked, they are both the same. Hmm weird
Ok got it. It was powertpys messing it up. Powertpys also causes problems in pdf preview - its as of now an app to avoid.
thanks
Nolan
The PowerToys preview handlers are indeed a pain. They should really be separate apps so people know they've installed them. (And some of them should be scrapped entirely as they're complete garbage.)
Hi
how do i make this create a new txt file in the current directory ?
That's what it should do already, assuming you mean FileType NEW=.txt
from the post you replied to.
Argh my bad, sorry and thanks, i just saw the code was opening notepad instead - fixed