vifon / autocomplete-all-the-things Goto Github PK
View Code? Open in Web Editor NEWArbitrary text completion for urxvt. MAINTAINER NEEDED
License: GNU General Public License v3.0
Arbitrary text completion for urxvt. MAINTAINER NEEDED
License: GNU General Public License v3.0
The error from urxvt is:
urxvt: Can't use an undefined value as an ARRAY reference at .../autocomplete-ALL-the-things line 162.
This is a fantastic project and really enjoying this script. Could you change the code though to deal with slashes though? Say the buffer contained the below:
/some/path/some/file.txt
../some/other/path/
and/another/one/../back/a/directory/file.txt
more text etc
Now, if I want to complete /some/path/some/file.txt, currently this is not supported; however I have changed the regex to support this, any chance this could be added? Below is a diff from the current master:
diff --git a/autocomplete-ALL-the-things b/autocomplete-ALL-the-things
index 2dedac2..2661732 100755
--- a/autocomplete-ALL-the-things
+++ b/autocomplete-ALL-the-things
@@ -59,10 +59,10 @@ sub on_user_command {
if ($cmd eq 'word-complete') {
# Basic word completion. Completes the current word
# without any special matching.
- $char_class_before = '[^-\w]';
+ $char_class_before = '[^-\w/]';
$matcher = sub { quotemeta shift }; # identity
- $char_class_at_end = '[-\w]';
- $char_class_to_complete = '[-\w]';
+ $char_class_at_end = '[-\w./]';
+ $char_class_to_complete = '[-\w/.]';
} elsif ($cmd eq 'WORD-complete') {
# The same as above but in the Vim meaning of a "WORD" --
# whitespace delimited.
Only words from above the current position appear to be completed.
This can be seen when using tmux, where words from the panes below are not being considered for completion.
Sometimes the match highlights are disappearing just after they appear. I've been able to reproduce it on the same text over and over again but it was at my workplace so I can't diagnose it properly. I've not encountered it at home.
If someone has any idea what could be the cause or any hint, please give me a hand.
The README.md says
aAtt:WORD-complete -- completion for WORDS (in the Vim meaning)
Can we define for the non-Vim-user what a "WORD" is, as compared to a "word"?
Here's a reproducible example on my machine:
#Step1
$cat temp.txt
comple1
compl2
noitelpomc34
#Step 2
$echo comp<C-M-/><Enter>
compl2
#Step 3
$echo noi<C-M-/>
# after calling WORD-complete the command line looks like this :
$echcomple1
So, I'm a bit confused by this new completion. Dash (-) is no longer part of a word? So i cannot complete normal-things-like-this? (talking about normal complete). This is because you use \b ? I last year's aAtt, words at least included the dash.
Nobody so far was able to recognize this font. What is this weird travesty of a font that you use in the screencast? Xresources entries would be very welcome as well.
Thanks!
The current release is very old.
Without a license, it's implicitly copyrighted, which means I can't package it.
Please add a license if you want this plugin to be usable for others.
Right now, when the user is cycling through the possible completions, each one is pasted into the terminal after backspace-ing the previous one. It's not very elegant solution. I consider replacing (probably as an option) this approach with an overlay overshadowing the actual text and pasting the text only once.
Would it be possible to (optionally) also complete from the scrollback buffer?
Ideally, it would scroll there then to highlight the selected match.
After 6ce779b the completion cycling no longer works correctly in some cases, it just stays at the first option.
I'd like to map perl:aAtt:undo
to Esc but obviously if I do URxvt.keysym.Escape: perl:aAtt:undo
, I will not be able to use Esc anymore for anything else.
Do you think there is a way to do this? I fear not.
https://cloud.githubusercontent.com/assets/674812/3480320/3bd2e726-035f-11e4-9e64-db599724c931.gif
thats a beautiful font.
could you share the font name?
in your dotfiles repo it says dejavu in urxvt, but thats not dejavu.
The following does not work:
URxvt.keysym.C-S-BackSpace: perl:aAtt:undo
I suppose it is because undo
will emulate a backspace press, but with the Ctrl+Shift
still pressed, it doesn't register.
Hi, can I make /po
match /etc/yum.repos.d/CentOS-SCLo-scl.repo
instead of /etc/yum.repo
?
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.