enter image description here
As you can see from the screen that the file is there but I cannot open it and it says that there is no such file whereas the file is there. How can I solve this problem/
Related
I can work well in Sublime text when I open a single file. However, when I want to open a folder, all the files in that folder will be shown in Hexa and the file name will change to ._filename.
Try opening the file with a different encoding. You can do so using "File > Reopen with Encoding" or put "show_encoding": true in user settings and restart to view the encodings and choose the right one.
Opening a gnome-terminal in the specified directory is straightforward:
gnome-terminal --working-directory ~/dotfiles
Creating hyperlinks is not a problem:
echo -e '\e]8;;file:///home/pmn/dotfiles\aThis is a link\e]8;;\a'
this produces a link that opens the file explorer in the correct folder when Ctrl+Clicked.
What I want to do is combine the two things, so that when I Ctrl+Click the link, a terminal pops up, already in the requested folder. It would not be a problem if the current terminal I'm in changed directory, but in that case I'd like to still see the previous terminal output and just do the equivalent of a regular cd (Edit: Note that the ~/dotfiles folder is just an example, I have several links that are generated by a script, and I'd like to be able to click on them to quickly open a terminal where needed).
I tried fiddling with registering custom applications:
In ~/.local/share/applications/mimeapps.list add:
(Note that the use of this file is deprecated, ~/.config/mimeapps.list should be used, if you have tips on doing that properly I'm open to them)
[Default Applications]
x-scheme-handler/mygnometerm=mygnometerm.desktop
In ~/.local/share/applications/mygnometerm.desktop add:
[Desktop Entry]
Type=Application
Terminal=false
Name=My Gnome Terminal
Exec=/bin/gnome-terminal --working-directory=%f
MimeType=x-scheme-handler/mygnometerm
Create the folder for the mime database:
mkdir -p ~/.local/share/mime/packages
Update the mime database:
update-mime-database ~/.local/share/mime
This does work: if I right-click on a folder in the file explorer and select My Gnome Terminal as the app to use, a terminal is opened already in the right folder.
If I print
echo -e '\e]8;;mygnometerm:///home/pmn/dotfiles\aThis is a link\e]8;;\a'
and click on the link, a terminal does pop up, but in the root folder, and the same happens when running
gio open mygnometerm:///home/pmn/dotfiles
I just need to combine everything, but I tried a lot of combination of what to echo in the link and could not find the right one.
I'm also open to other ways to achieve this behaviour, but at this point I'm quite curious in how to to it this way.
The use case, for the curious, is that I made a simple script to check the status of my repos, and I want to click on the ones with things to do without having to copy and paste the path. I reckon I'll save at least 5 seconds!
Cheers!
I've tried using explorer /c/x/y and start /c/x/y to open file y (along path x) when I'm still in the root directory. The former just opens up another bash window and the latter sometimes opens the file, sometimes it opens another bash window. I know I can just use cd /c/y to get to the directory x is in and then open it with explorer x but I'd like to do it in one line of code if possible. Does anyone have any other suggestions? Thanks.
I tried to open the
*.ps.gz
file through the finder i double clicked on the file, then i got a
*.ps.gz.cpgz
file, then i double clicked on the
*.ps.gz.cpgz
file and i got the first file
*.ps.gz
it seems that i struggle in the loop, how i can open it?
I am unable to open the .trace file which is the output of a test script run in Xcode-instruments.
When I try to open it, it says Unable to open the file.
Please suggest if there is a way to open it
From Finder, get context menu on file, select "Show Package Contents". From a command-line shell, just navigate to the file as if it were a directory.
In my case I found that there is a second .trace folder inside the top-level .trace folder, and they share the same name. If you drag the second one out, then Instruments will have no problem opening the second one.
I tested this with Xcode4.6 (Instruments 4.5).