Comments (5)
You can try f
. Don't need the cursor to move, when scrolling, as f
will place it at the token anyway.
from amp.
i feel like for quickly navigating thru a large file without knowing much about its contents or line numbers, f
isn't really much faster than j
unfortunately 😓
from amp.
I meant, you can use f
after you've already found a place to edit by scrolling with m
and ,
.
m
and ,
only move you "camera", the cursor stays at it's original position until you move it with f
.
from amp.
@KiaraGrouwstra as you can read in #158 this is considered a feature and not a problem. I really like how it works! you can browse up or down ... and comeback to where you were! if you don't want to comeback .. you use the f option to choose where exactly you want to stay.
If you want to do the pageup pagedown and move the cursor .. you can define a key binding to do it!
https://amp.rs/docs/configuration/#key-bindings
Just define something like:
keymap:
normal:
ctrl-f:
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
from amp.
@PPGC thanks. here's a version of ~/.config/amp/config.yml
i got to based on rebinding pageup/pagedown, tho the number of lines might depend on how many lines your screen can hold:
keymap:
normal:
page_up:
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
- "cursor::move_up"
page_down:
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
- "cursor::move_down"
from amp.
Related Issues (20)
- Drawing over History HOT 2
- [Question] Split Pane / Window Support
- Start Amp at Particular Line Number
- How customisable is amp? HOT 3
- No jump to definition in assembly (& an outdated dep)
- How to compile amp as a static musl binary? HOT 1
- Symbol jump to a line with half-width katakana jumps to incorrect position HOT 1
- List available modes in documentation HOT 2
- Provide binary releases (with musl) HOT 5
- Fedora 36 HOT 5
- FR code completion from crates used
- ARM64 Android Touch Swipe Movements
- Feature request: improve single-letter token jump mode
- cargo install command required min version of rustc does not fit the readme
- [Bug]: (un)indenting within select line mode not working HOT 5
- request a new release HOT 3
- documentation: commenting multiple lines HOT 2
- Timeline for Amp HOT 2
- .editorconfig is not being used HOT 1
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 amp.