Comments (11)
This was in the example lfrc @KenjiTakahashi but I removed it the other day when I realized it wasn't working :) Traditionally people make use of key delays to make it possible to have such mappings. I haven't added this yet since synchronization might be necessary for ui and the rest.
Unmapping is on the agenda.
from lf.
Oh, ok. But it still persisted in the tutorial (in the "custom command" example) :-).
from lf.
I missed that one @KenjiTakahashi , I will take care of it.
from lf.
@KenjiTakahashi I have pushed something for unmapping with the map
keyword. It feels strange at first but I like the idea of not introducing a different keyword. Plus it is consistent with the cmd
removal this way. We may change it later though if it becomes too counter-intuitive. Let us see how it goes.
from lf.
Fine by me, thanks.
@gokcehan I think this can be closed, unless you want to track something more here.
from lf.
@KenjiTakahashi it is still not possible to map to a key starting with another. I personally try to avoid those kinds of bindings and I guess you too. We may track that here but with a low priority. So maybe keep the issue open in case someone gets interested in this?
from lf.
Agreed on both things :-).
from lf.
@gokcehan It seems that unmapping got broken at some point, it doesn't work on current master.
from lf.
@KenjiTakahashi Sorry, I have been trying to clean up the parser code. I have pushed a fix now. Can you get the master and try again?
from lf.
Works again, thanks!
from lf.
Now that many operations work asynchronously, a delay mechanism for keys with a common prefix needs to address what should happen when an event occurs during the delay. So implementing this in a correct manner may be quite difficult for little or no gain. I'm closing this issue as there is no current effort to implement this. Feel free to leave comments if you want to work on this or have a good idea for the implementation.
from lf.
Related Issues (20)
- how to search for files HOT 3
- Chafa works fine out of lf but not working properly in previews HOT 2
- Support HEX color code
- Shell functions are not working with `nushell` on Linux
- Support D-Bus interface specification HOT 6
- lf not showing font awesome icons HOT 1
- buggy inputs / wrong file opening when starting terminal + lf per hotkey HOT 6
- crash on open with `panic: runtime error: slice bounds out of range` HOT 1
- lfcd.sh runs in subshell - does not work well with tmux and {pane_current_path} HOT 11
- How do I execute scripts that take a choice via stdin without needing to press <enter>? HOT 3
- Screen tearing while previewing a pdf file HOT 3
- Issue with image size in previews
- Windows r31 VirusTotal and CylanceProtect Warning HOT 4
- Unable to copy selected files using `cp -r $fx` command HOT 1
- Feature Request: open programs directly HOT 1
- Toggle all items that are matched with search ("/") in current directory HOT 5
- Return to startup directory HOT 3
- sixel image preview not working with script but outputs multiple lines of characters when quitting lf HOT 2
- On Windows with pwsh, external trash command doesn't work with $Env:fx variable HOT 7
- on-redraw not being called on terminal resize HOT 3
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 lf.