Comments (9)
Seems to be random. Sometimes works fine.
from xplr.
Refresh doesn't work though.
from xplr.
But the actual command would be...
xplr --on-load 'AddNodeFilter: { filter: RelativePathDoesMatchRegex, input: "\\.png$" }' --on-load 'ExplorePwd'
Still doesn't exactly do what it does when the filter is applied interactively.
from xplr.
But the actual command would be...
xplr --on-load 'AddNodeFilter: { filter: RelativePathDoesMatchRegex, input: "\\.png$" }' --on-load 'ExplorePwd'
Hmm, it worked with fr.*\.png$<enter><esc>
so I don't see why it would make any difference, it is shorter though.
explorer::explore_sync
is called when doing ExplorePwd
. I would guess the redraw is inconsistent, as filters are being applied in that function. Doing both ExplorePwd
and Refresh
should fix it. If not, the --on-load arguments may not be executed in order.
from xplr.
Same thing applies with:
echo 'AddNodeFilter: { filter: RelativePathDoesMatchRegex, input: "\\.png$" }' >> $XPLR_PIPE_MSG_IN
from inside xplr. This seemingly applies the filter, but it leaves the user with no directory nodes, as the faulty filter seems to not match anything. Clearing the filter afterwards and using the TUI to apply it manually seems to "fix" the filter, even tho the string representation "rel=/\.png$"
is the same in all 3 cases.
from xplr.
This seem to happen with only regex. Other filters are working fine.
xplr --on-load 'AddNodeFilter: { filter: RelativePathDoesEndWith, input: ".png" }' ExplorePwd
from xplr.
Ah... got it. Bug due to optimization using cache.
from xplr.
It seems there's still some task scheduling issue. Running the following command in my homedir doesn't apply the filters. Looks like ExplorePwd
happens before the filter is added.
xplr --on-load 'AddNodeFilter: { filter: RelativePathDoesEndWith, input: foo }' ExplorePwd
from xplr.
I think it's because the explore_pwd_async() that sets the parent directory locations, also overrides the results for the pwd.
from xplr.
Related Issues (20)
- Process exits when trying to open any text file on editor HOT 4
- How can I use "emacsclient -t" as EDITOR for xplr? HOT 5
- How to change selection pane size? HOT 2
- Provide option to sort based on user created custom column HOT 3
- Incorrect fuzzy search behavior HOT 4
- Mapping function keys higher than F12 does not work HOT 3
- How about adding a command line to enhance the usability? HOT 2
- Hitting enter after esc takes a long time HOT 6
- closing `xplr` with `q` or closing the terminal window closes any files opened in gui HOT 3
- Deleting files should not move the cursor to the top HOT 3
- Support Binstall HOT 1
- Support Debian/Ubuntu/Snapcraft HOT 20
- Separation Releases HOT 3
- Installing in Termux HOT 3
- xplr.util.lscolor returns nil for normal files HOT 2
- Unable to see all terminal history when accesing it from :! HOT 2
- xplr.util.is_file has a typo
- Incorrect style and meta for directory with extension in name
- Documentation sidemenu always obscures main content and cannot be hidden
- xplr crashes if terminal has <= 94 columns HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xplr.