Skip to content
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

New Features Added! (See details for explanations) #6

Open
wants to merge 100 commits into
base: master
Choose a base branch
from

Conversation

jakkunight
Copy link

New features added!

  • Open files in a new tab
  • Persistence across tabs! When switching tabs via NextTab, AddTab or PreviousTab events, current tab's filemanager closes and reopens on the new active tab. Mouse or command switching is not supported yet.
  • Closes automatically with the active file opened in the tab! Because the filemanager opens new files into new tabs, it's unnecessary to keep open a tab without any file open and just the filemanager. This is why I decided to add this feature. Of course, it will re-open the filemanager when tabs are switched.

NicolaiSoeborg and others added 30 commits December 12, 2016 22:10
... lfs might not be an option 👎
(view-refactor branch merged)
sum01 and others added 30 commits January 30, 2018 12:48
Fixes 2 bugs, adds gitignore and dotfile hiding, and adds a Changelog
Also fixed the wrong year on the v3.0.0 changelog
Fixes block comments not being parsed till you move your cursor into them.
Fixes an errant tab being inserted in the newly opened file.

Requires Micro >= v1.4.0 since it makes use of NewBufferFromFile to fix the block comment issue.

Ref zyedidia/micro#992 for all discussion on this.
Read the CHANGELOG.md for full info. This version is just bugfixes, but requires Micro >= v1.4.0
The Micro function call 'NewBufferFromFile' was used in an assumption it was compatible with v1.4.0, but it's only in nightly.
Doesn't change anything functionally.
Also some minor optimizations, and a line-break on the README.

We don't need to save the GetOption call.
The compress_target function can also be canceled early to prevent an unnecessary refresh.
No idea why I was doing it, but I remember reading to do it in a random forum...
The return would exit early on a 'delete_y' call, causing the item not to be removed from the list.
Thanks to @avently, the left arrow will now jump to the parent if not minimizing, and the '..' can be jumped to as a parent of root files/dirs.
…ng files, however: in function try_open_at_y.
Very minor change to not start the loops index at 0, since Lua uses 1-based index.
The rest is formatting changes from luafmt.

Resolves #33
Fixes #36

The Golang path.Base() doesn't work on Windows, while its filepath.Base() does.
Performance improvement

Thanks to @jackwilsdon, ref PR #37
Also updated CHANGELOG for new option.
* io.popen isn't working for me - either it's an issue specific to the latest Micro, or possibly something with my Termux environment. The result was git query failures with filemanager-showignored=false and stack dumps from deref'ing nil. The latest Micro has new functions for running shell commands, which we'd want to use anyway, and also resolves the issue, so I switched to those.
* Along the way also running a simpler git query that avoids a full status query just to ask if cwd is a git workdir or not.
Hopefully more concise/understandable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants