From ca6a853f3ab4994db3d45ba0677bdae1a1769ff6 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 26 Oct 2025 11:23:05 +0530 Subject: Fix command-shell from config example to use eval --- README.md | 8 ++++---- daffm.cabal | 4 +--- notes.org | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 026a1ff..cee36d3 100644 --- a/README.md +++ b/README.md @@ -71,10 +71,10 @@ xclip -selection clipboard -t $(file --mime-type % -bL) -i % # Poor man's marks (mark directory by creating a binding) # m1 marks current directory and 1 jumps to that directory -m1 = """command-shell echo "map 1 cd %d" """ -m2 = """command-shell echo "map 2 cd %d" """ -m3 = """command-shell echo "map 3 cd %d" """ -m4 = """command-shell echo "map 4 cd %d" """ +m1 = """eval echo "map 1 cd %d" """ +m2 = """eval echo "map 2 cd %d" """ +m3 = """eval echo "map 3 cd %d" """ +m4 = """eval echo "map 4 cd %d" """ ``` diff --git a/daffm.cabal b/daffm.cabal index 41d1077..65387ab 100644 --- a/daffm.cabal +++ b/daffm.cabal @@ -11,8 +11,6 @@ description: Dumb as fuck file manager extra-doc-files: docs/daffm.1 data-files: docs/daffm.1 -install-includes: docs/daffm.1 -extra-source-files: docs/daffm.1 source-repository head type: git @@ -32,7 +30,7 @@ common common-config build-depends: array, base, - brick == 2.10, + brick <= 2.10, tomland <= 1.3.3.3, containers <= 0.8, data-default <= 0.8.0.1, diff --git a/notes.org b/notes.org index 663acf6..2c6c865 100644 --- a/notes.org +++ b/notes.org @@ -1,12 +1,12 @@ - [X] commands: move cursor: move +1, move -1, move 5, move $, move 0 - [X] rename command-shell to evaluate -- [ ] Use ls for file listing respecting ansi colors -- [ ] Generalize cd/opener/back - [ ] Allow recursive config extends (@A -> @B -> @C) - [ ] allow escaping % in commands - [ ] custom commands - [ ] cmdline autocompletion - [ ] handle permissions errors +- [ ] Use ls for file listing respecting ansi colors? +- [ ] Generalize cd/opener/back? ** Later - [ ] Show last cmd in cmdline - [ ] preserve back directory when going inside symlink to directories -- cgit v1.3.1