Comments (2)
I tried the following:
Sort manually by size (s
) and switch to an ordered context. In this case the sort order is not changed in the second context.
However, if I manually set the reverse order (r
) or version sort (v
), the reverse order is added in the second context too.
The second observations seems to be a manifestation of the same. If you check set_sort_flags()
, r
and v
use special function pointers. It seems they are retained and adds up along with the order dictated by NNN_ORDER
even for a context that is already open.
The issue maybe somewhere in the below lines:
6838 if (order && cd) {
6839 if (cfgsort[cfg.curctx] != '0') {
6840 if (cfgsort[cfg.curctx] == 'z')
6841 set_sort_flags('c');
6842 if ((!cfgsort[cfg.curctx] || (cfgsort[cfg.curctx] == 'c'))
6843 && ((r = get_kv_key(order, path, maxorder, NNN_ORDER)) > 0)) { // NOLINT
6844 set_sort_flags(r);
6845 cfgsort[cfg.curctx] = 'z';
6846 }
6847 } else
6848 cfgsort[cfg.curctx] = cfgsort[CTX_MAX];
6849 }
Please have a look and raise a PR.
from nnn.
thanks, took a look and put up a pull request!
from nnn.
Related Issues (20)
- Ability to cd directly to one-off directories HOT 8
- User / group option not working. HOT 1
- NNN command line forward slash filter command won't allow other commands HOT 18
- Current selection does not change to newly created dir, if current working directory path contains a symlink HOT 2
- Opening the help screen corrupts global variables HOT 4
- Can't get jump to command or autojump plugin to work HOT 3
- Preview-tui plugin throws syntax error HOT 3
- U+E5FF / / question mark box HOT 4
- NNN_TRASH_CUSTOM setting not working HOT 4
- preview-tabbed - zathura not focusing HOT 2
- Nerd fonts cause misaligned columns in detail mode with names first HOT 5
- nnn compiled with nerdfonts not displaying correctly in WSL HOT 2
- NNN broken on master HOT 3
- 'size missing' when trying to preview-tui in tmux HOT 7
- NNN does not close Tmux pane on opening a file while preview HOT 5
- Can't batch rename files which names start with dash '-' HOT 6
- mv: unrecognized option '--cp' HOT 2
- Icons does not work when NNN is opened with -C option HOT 5
- preview-tui: mpv HOT 11
- Syntax error with prescribed split-pane script HOT 7
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 nnn.