Sublime Text 3 not loading files from current directory into sidebar - sublimetext3

When using the latest Sublime Text 3, and starting it from a directory with subl . , it does no longer open a window with the files from the current directory in the sidebar. Instead the sidebar is empty, and it brings up an empty editor window.
Even re-install did not fix this.
Symptoms:
running subl . hangs, and does not go to the background, empty window
starting subl local_directory has the same effect: empty window
when trying to start subl . multiple times, it does not bring up any new windows
but when using the menu option "File -> Open" and then selecting the project directory, it opens up a new window and correctly shows the directory contents in the sidebar
To me it looks like the subl executable is buggy
On OSX:
> shasum `which subl`
19acc6580a3c669375e62e8307878230bffd78ac /usr/local/bin/subl
Any suggestions?

Related

Can’t open a file whose directory’s name starting with #

I am using gvim on Windows10.
I use gvim as a default text editor on my PC.
When I double click and open a .txt file which is in a directory starting with “#”
For example:
C:first/second/#third/text.txt
Then gvim opens up and throws E344.
It seems accessing a wrong directory:
C:first/second#third/text.txt
How can I avoid this error without changing the name of the directory?

How to use "open_files_in_new_window" on Windows in Sublime Text 3

This question has been asked before but they are all for Mac OS.
Is there a way to get:
"open_files_in_new_window": false,
to work in the Windows version of Sublime Text 3?
Looks like "open_files_in_new_window" does not work in Windows.
But this works for me:
Press Windows button and search for Sublime
Right click on 'Sublime Text' and open file location
Right click and open Properties of the Shortcut
Add -a at the end of Target field like this "C:\Program Files\Sublime Text 3\sublime_text.exe" -a
-a or --add: Add folders to the current window (https://www.sublimetext.com/docs/command_line.html)

Open Sublime from cmd windows 10

I can't open the sublime application or any file via within sublime from the command line. I am currently using Git Bash(SDK-64). I followed this tutorial. I am stumped I am still getting the bash error. bash: subl.exe: command not found
Are you sure, you have Program File folder in C directory? As far as I know C directory has Program Files folder. Add s in Program File.
Write C:\Program Files\Sublime Text 3 instead of C:\\Program File\Sublime Text 3. It should work.
Is necessary to only add your Sublime directory path to the Path list, as you have done in your first pic and use only one "/".
Second step from last picture is not necessary.
Sublime will open with "subl.exe" and can take as argument the name of a file. "subl.exe dummy.txt".
I checked in Git Bash, Powershell and Developer Command Prompt for VS 2017 on win 10.

how to make a file editable in linux without becoming root

i am working with files placed in directory /etc/asterisk using vim editor, every time i have to do some editing i have to go to terminal to become root and opens file in vim editor and performs edition,but if i do it by directly opening the file from such directory(/etc/asterisk) in gedit and perform edition in the file but it doesn't show the save option if save as option is selected message becomes "you need to become root for such operation." is there any way to open these files(placed in /etc/asterisk) directly from gedit and save the changes without going into terminal
You can always do sudo gedit from the terminal to launch gedit as root to edit the files.

Change vim's current directory upon starting from command line

Vim (actually, gvim is in question, but I believe it works both ways) upon starting has its current directory in its runtime directory.
I would like to upon starting, to have its cd in let's say, c:\pro
I know I can just do :cd c:\pro, but is there a way to change it upon starting it, with
something alike gvim c:\pro (only that doesn't work :-| ?
You can use
gvim -c "cd C:/pro"
-c allows you to run commands just after Vim has finished loading.
Vim's working directory is initially set to the working directory of the process that invokes Vim.
If you're double-clicking on the .exe in Explorer, that's why it's the runtime directory.
If you're using the Start Menu shortcut, then it has the Start in path set to the runtime directory. You could change the Start in path of the shortcut.
If you use the run dialog, then vim's initial working directory is likely your Documents and Settings directcory.
Can't you put cd path in your .vimrc ?

Resources