jorgebucaran / autopair.fish Goto Github PK
View Code? Open in Web Editor NEWAuto-complete matching pairs in the Fish command line
License: MIT License
Auto-complete matching pairs in the Fish command line
License: MIT License
Hi, thanks for this plugin! I was going through your code and I found the _autopair_tab
function, which deletes a character from the current token if it matches the regex \$[^\s]*"$
when the user presses <Tab>
.
Why is this being done?
hi, is it possible to add complete inside {}
? or add a simple way to configure which pairs will complete by the plugin?
I'm not sure what's the issue here, but Autopair does not seem to be loading on iTerm after I quit the terminal...
For instance, when I run fisher install jorgebucaran/autopair.fish
the autocomplete will work, but not anymore once I quit iTerm and begin a new terminal instance.
Autopair seems to be a rarity that experiences such a problem; I have fzf, nvm, along with a couple other plugins, but most of them loads on startup whereas Autopair does not. Here's my (mostly empty) ~/.config/fish/config.fish
:
if status is-interactive
nvm use 18.16.0
fzf_configure_bindings --variables=\cv --directory=\cf --git_log=\cg --history=\cr
end
Have I missed any steps during the installation? Thanks in advance.
echo 'Let\'*
(*
stands for the cursor).'
.echo 'Let\''*'
.The shell should end up as echo 'Let\''*
.
Hello! Thanks for this amazing function, it works really well.
One thing i have been missing, is autocompletion for git commit messages, for example:
Without this library, I could type " and then use some of the autocompleted text to fill my message, but when this library adds the matching " on the end, the autocomplete is gone:
Is it possible to trick fish autocomplete to ignore the ending "
somehow?
In fish docs, there are things like https://fishshell.com/docs/current/cmds/commandline.html, could this somehow be used to trick fish into not searching with the ending " for autocompletions?
A similar plugin for auto-completing matching pairs already exists for fish: https://github.com/laughedelic/pisces
I'd be curious to hear what the pros and cons of the two plugins are, and it would be good to list in the README.md
file.
Hey there!
I just found out about this plugin and am definitely going to be using it! However I noticed that the file in the conf.d
file is not prepended with an underscode (i.e. _
). For the functions
folder the files are prepended with an underscore.
Being a person that stole someone else's dotfiles my gitignore already ignores all fish files starting with an underscore, but since the file does not have one it is not auto-ignored.
Hence my main question: Could this file be renamed to adhere to the underscore usage? Or is there a different reason that I am missing here?
In insert mode, the plugin doesn't react to delimiters at all.
In normal mode, it works, but makes fish go in insert mode while somehow not updating my prompt to reflect that...
In this gif, you can see the Starship prompt which normally points to the left in normal mode and to the right in insert mode.
What I would expect:
Plugin doesn't react in normal mode and doesn't switch modes.
Plugin works in insert mode.
Fish won't trigger tab completions for variable names while inside double quotes, so we remove the closing "
in "$fish_Tab"
and trigger tab completions for you. This, however, fails for "$fish_Tabcolor"
where we end up erasing the character before the cursor, rather than the closing "
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.