-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open term in same folder as text file I'm editing #3684
Comments
In my
I think this would address this issue. It find it also useful when opening new files. The problem is that the code above only works if |
Regarding the splitting, I'm using the following functions, bound to some keys. The functions
|
micro opens the terminal at the current working directory, similar to other code editors like VSCode. |
Regarding 2.), I found that the Tab key works to autocomplete the name, and if more match, pressing Tab again cycles through the results :) I feel like this autocomplete could be mentioned in the docs somewhere :) |
Thanks, this does indeed work nicely! However I think there should be some quick |
Hi, I'm learning micro right now, and wanted to have a shell alongside the file I'm editing - in a similar style to VS Code for example.
The problem is, the
term
command turns on the shell at my home directory (/home/petr
), and not the directory I'm editing my file in (/home/petr/Documents/petrlaskevic.github.io
). This means I'd have tocd
my way through.Could there be an option to open the shell at the current folder? (like
term .
for example?)The ideal workflow for me would be:
1.) open a file
index.html
in/home/petr/Documents/petrlaskevic.github.io/index.html
2.)
hsplit index.html
(or better yet, a command for hsplitting the current file - likehsplit .
- to not have to write the whole name)3.)
ctrl e
4.)
term .
to open the shell at/home/petr/Documents/petrlaskevic.github.io
I believe this would be a fine addition to micro :)
Many programs have opening in a similar vein (with
.
as the argument).The text was updated successfully, but these errors were encountered: