* Fix some multibyte character completion bugs
- matchLongest now operates on runes instead of bytes so we don't
complete part of a multibyte character.
- Fix some places that mixed string and rune slice indices.
* Fix wrong menu completion for subdirectories
When selecting a menu completion for a file in a subdirectory, the
entire filename would be appended to the command line, even if you had
already typed part of it.
* Escape file completions in menu completion
* Minor refactors and typo fixes
* Fix cmd-menu-complete-back bug
The first use of cmd-menu-complete-back after opening the completion
menu was incorrectly selecting the before-last completion instead of the
last completion.
* Allow completing broken symlinks
Also skip files with stat errors instead of returning.
* Add command to accept current menu selection
This is useful when completing filenames. For example
cmap <c-y> :cmd-menu-accept; cmd-menu-complete
can be used to accept the selected directory completion, then complete
files in the directory.
* Complete command names for map and cmap
* initial tags implementation
* add tag to complete.go
* add gTagsPath to os_windows.go
* change behaviour to match other commands
* add tag-toggle to complete.go
* add tag and tag-toggle to docs
* address feedback about tags
This commit moves directory counting with 'dircounts' option from ui
printing to dir reading to be run asynchronously without locking the ui.
On the other side, disadvantage of this approach is that if 'dircounts'
option is changed at runtime, then directory counts may not be available
requiring a manual 'reload'. Indicators for errors are changed to '!'
instead of '?' to distinguish them from missing values.
* Allow to configure time format in the info column
* Update infotimefmt PR from Krzysztof Maicher
Add format length, rename options
Co-authored-by: Krzysztof Maicher <krzysztof.maicher@gmail.com>
* added first version of interactive filter
* small fix when loading new file
* don't reset filter when directory is reloaded automatically
* reapply filter when options for searching change
* current filter or arguments now prefilled in the prompt
* empty filter can now be supplied
* added new setfilter command for use in scripts
* added incfilter option
* added very basic documentation
* added filter indication in statusbar
* added option to display filter to prompt
Integer division causes miscalculation of pane widths. With `set ratios 100:200:300` the first two panes have width 0, the third pane will take up all space (unless you happen to have a huge terminal). I noticed this when fine tuning ratios, e.g. going from `1:2:3` to something like `10:21:30`.
* Use chan struct{} in place of chan bool
* Revert "nav.checkReg now returns a boolean instead of calling nav.preview"
* Guarantee preview/previewClear ordering
* Pass the file path to the cleaner script
* Return early on error in nav.preview
* nav.checkReg now returns a boolean instead of calling nav.preview
* Pass width, height, x, and y parameters to preview script
* Check previewer for exit code
If non-zero the preview will be assumed to have side-effects.
* Add the cleaner option
This is called upon selection changes if the previous preview was
volatile. To this end, volatilePreview was added to the nav struct
* utility modulus function
* ui adapt for tab menu cycle
* refactor(listMatches) for tab menu cycle
* refactor(draw) handle tab menu selection highlight
* refactor(eval) cmd-complete cycle + reset handles
* feat: added backtab counter-cycle in the completition menu
* cleanup
* docs changes
* refactor: make tab cycle own commands
* docs: tab cycle documentation
* bug: the matches list was not complete because index +2 after row end
* refactor(tab cycle): handle the complete menu command print
* refactor(tab cycle): make the cmdTmp varibale mymic cmdAccLeft + check for partial commands
* refactor(tab cycle): fix how to handle the menu completiton from different events
* fix(tab cycle): fix cmd-complete so that it works with new tab cycle commands
* style: changed puprle to reverse
* cleaned up cycle logic + reverted listMatches
* cleaned up eval logic for cycle feat.
* cleanup
Co-authored-by: 2pac <tarasyarema@pm.me>