Yeah, savings been in there for a while. I even announced it. I figured you saw it, or would eventually stumble on it.
ST3: FuzzyFileNav
I think I saw this back when, but it doesnât do what I mean by saving, if memory serves. Iâll have a look at it when I get home.
Alex
Yup. What I mean by âsavingâ is replacing the functionality of Ctrl+S (Save) â i.e., saving the file if it already exists & otherwise popping open FFN*, preferably restricted so that I am forced to save the file before my ADD kicks in.
- I am, slowly, learning Colemak, which has caused me to become very fond of logograms & abbrv.
Alex
I will look into a little later. I think it is probably doable, but you would have to override your save shortcut with a FFN entry point. I canât just add it to âon_saveâ, it just wouldnât work well there. When I get a bit more time, I will look into this.
colemak ftw! I never learned qwerty so canât compare it to anything but I never get sore hands
Never heard of colemak. Doesnât look to hard to learn; not a huge change like dvorak. I may give it a try.
I would be very grateful! Iâve already mapped FFN to Ctrl+O, which is why its (short) absence from ST3 crippled me. I would have no problem doing the same for Ctrl+S, but you would need to provide an appropriate command. I looked into writing it myself, but itâs a little beyond my capabilities.
I can use the menu if I need to use my OSâs filesystem dialogs (or make appropriate commands for the palette).
FWIW, I started learning Colemak on Thanksgiving (you can imagine what fun I must have been having! ). I practiced for a couple dozen hours to get all the keys down and then it was a matter of training my muscle memory. I was doing around 20 WPM when I began confusing Colemak & Qwerty, thus necessitating switching 100%. (This was at the beginning of January. I should mention that I had a two-week hiatus from all keyboards just prior.) That was painful until I hit 30 WPM, which is about the minimum I can tolerate. I think Iâm at about 40+ now (a far cry from the 90ish WPM I had originally), but I like Colemak thus far. I should also note that even though I was very fast, I did not know how to touch type.
Speaking of win, did you ever find a solution to using Colemak with Vim bindings in Sublime? I am a Vim virgin (or is that a vimgin?), but I donât see how it would work with Colemak. Do you remap HJKL to HNEI? If, so, what do you do with N or I? Et ceteraâŚ
Alex
Edit: typos and silly things
Nah, I still donât use Vintage/Vintageous ( though use my own home row and modal bindings )
Apparently the creator of colemak actually uses Sublime Text these days.
Last time I tried to get in contact with him to get some tips was definitely not a win.
In other words, that reminds me
We should hunt him down and pick his brains
Mind sharing? (Although Iâm not sure what modal bindings are⌠they sound yummy.)
[quote]
Apparently the creator of colemak actually uses Sublime Text these days.
Last time I tried to get in contact with him to get some tips was definitely not a win.
In other words, that reminds me
We should hunt him down and pick his brains [/quote]
Is this the thread you are referring to? --> forum.colemak.com/viewtopic.php?id=50&p=1
Iâve looked at it, but not too closely.
Alex
I have now removed the setting in ST3 ânix_style_path_completeâ and replaced it with a new setting.
[pre=#2D2D2D] // (fuzzy/windows/nix)
// fuzzy - this will auto-complete with the selected index in the quick panel
// windows - this will complete like a windows terminal would complete paths
// nix - this will complete like a unix/linux terminal traditionally completes paths
âcompletion_styleâ: âfuzzyâ,[/pre]
By default, âfuzzyâ is used for a more natural quick panel feel. The current selected index in the quick panel will now be used. This is for ST3 only.
You have to drill down into folders. Deep recursive folder searches would be very slow; imagine starting in your root directoryâŚ
The only way to effectively allow FuzzyFileNav (FFN) to do this recursively, I would need to index your entire harddrive. Not really looking to have yet another process indexing my harddrive and slowing down my PC.
FFN allows you to quickly navigate relative files and folders to your current file or folders and files outside your project to view or apply file operations on them directly in FFN. This is not meant to index your entire terabyte harddrive to quickly find any file on your computer by using the fuzzy algorithm.
Tried installing ST3 FFN by cloning the git project (is there a better way?). Some issues:
multiconf.py:44: Single instance of â\Uâ in C:\Users in docstring. Backslash needs to be doubled.
Two instances of isinstance(key, basestring). Basestring is gone now, should be str(?)
fuzzy_file_nav.py:29: Usage of âFuzzyFileNav: %sâ % s. % operator appears to be gone, should be replaced with .format() call.
Iâm not conversant with Python 3, so the above suggestions are just guesses from Googling.
And finally, after all that:
File â/Users/jsc/Library/Application Support/Sublime Text 3/Packages/FuzzyFileNav/fuzzy_file_nav.pyâ, line 13, in
from multiconf import get as qualify_settings
ImportError: No module named âmulticonfâ
It looks like itâs loading fuzzy_file_nav.py, and THEN trying to load multiconf.py as a plugin? Not sure whatâs going on.
Okay, figured out the multiconf issue. Need to import from FuzzyFileNav.multiconf instead of multiconf.
Then hit:
NameError: global name âunicodeâ is not defined
Removing all the calls to unicode(xxx) and replacing with just straight xxx seems to have cleared that up. The panel appears. Actually trying to drill down into any directories immediately returns, however. There is an error:
File â/Users/jsc/Library/Application Support/Sublime Text 3/Packages/FuzzyFileNav/fuzzy_file_nav.pyâ, line 595, in run
edit = view.begin_edit()
TypeError: begin_edit() missing 2 required positional arguments: âedit_tokenâ and âcmdâ
And this is where we start getting into API details, so Iâm out of options.
If you are using ST2, then you can use the main branch github.com/facelessuser/FuzzyFileNav
Donât install the main branch on ST3 though. Only the ST3 branch works on ST3 github.com/facelessuser/FuzzyFileNav/tree/ST3
Conversely, do not use the ST3 branch on ST2.
You can see they are different.
Oh man. Sorry, I should have figured I was doing something wrong. I just git cloned the URL on that page and didnât switch branches. Everything works great.
You can use Package Control to manage branches. I have described this here:
There may be more thorough write-ups available.
Hope this helps,
Alex