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 micro with the file and cursor on the last line #1082
Comments
Maybe |
well, yeah for some simple cases it will do, but Micro is an editor, and editin in an editor is a good thing, you can check if the added line aligns with the existing lines, you can add more than one lines, the syntax will be highlighted, tabs and indents will work in a right way, you can copy/paste, etc.. |
This is a bit hacky but at the moment you can do |
maybe file.txt:-1 could be added as an unobtrusive option |
or how about |
Now what if you want to get the line before that? Maybe use Peano Numbers https://wiki.haskell.org/Peano_numbers file.txt —pre(pre(last-line)) to get to the line before the line before the last line :D |
can we make it a command? |
"C-e last" |
|
I still think this needs to be a command though. |
Default keybindings are Ctrl+Down to end of file, I believe. |
I would also like to support this feature and considering there's a goto command it shouldn't be too complicated to add a syntax like the one mentioned before Personally I use micro to get the output of my terminal so I can easily copy output from terminal programs and obviously needs to start at the end, currently as a workaround I just set the starting line to be the maximum length of my terminal history, which also works as expected. |
Many text editors, including micro and nano, support $ micro +9999999 foo.txt It's also quite fast to type. I find it more obvious and universal than a special feature. If I would meet a file with more lines than strconv.Atoi can handle, I probably would not use a text editor to view it. |
Ctrl + Page Down seems to do nothing at the moment. This could be a shortcut to run |
Did a bit of digging and added the custom commands to my bindings.json file:
|
I often need to add few lines to the file at the end, that would be handy to have a cli switch to open a file and automatically scroll down to the end and put cursor at the last character in the file as well. Is this already possible? Can this be a feature otherwise?
The text was updated successfully, but these errors were encountered: