-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TODO and Feature request #19
Comments
I'll work on the compression action bit, letting you know so we don't duplicate effort 😃 |
Recently I just found out that we can adjust IFS so that we don't need to separate different item and add single quotes to the DIRs stuff. I hope that in the future, this can be the applied to all the dmenufm |
Sounds good. Will be back from my... ehmmmm... "leave of absence because of my incompetence" soon 😆 and will see about this if it hasn't gotten done yet |
You can also inject variables (environment, basically) into processes, without affecting the great beyond. Here's an example: DISPLAY=':0' xfce4-terminal Regarding duplication of effort, I'm going through the entire file (
My fork is over here if you are interested in seeing what I so far have pushed. |
What this command is doing? What is injecting variables means?
Thank you! Feel free to add push request to this project. I might not be able to review them until Thursday, since I have my final ended in Thursday. |
Awesome, and you're more than welcome. I love what you've done so far. Also, best of luck to you on your finals. Also, what do you think of supporting Cito? It's a Bourne POSIX installer for local or GitHub files., as it describes. It'd help me, and I'm hoping help |
Is that your personal shell? If so, I would prefer this project to use standard POSIX shell so that it can applied to every Unix/Linux system. |
Oh no, it's not a shell, it's a POSIX-compliant program for installing local files or remote files stored on GitHub. Think of it like an easy-to-use package manager, without the packages. lol It's written in shell, using POSIX-compliant Bourne shell, and has very few dependencies. For example, a user could install your dmenufm program with: sudo cito -r huijunchen9260 dmenufm master dmenufm Or, if you decide not to use a Cito line in it: sudo cito -M 755 -O 0 -G 0 -T /usr/bin/dmenufm -r huijunchen9260 dmenufm master dmenufm |
So if implementing that, I can use Cito to check whether the user has all (or most) of the dependency that required by dmenufm, and installed for them? |
It's not meant as a dependency checker or anything. The idea of it is to be simple, but still provide some useful features, like extensive logging, md5sum support, and the ability to install local or remote files. You could use it to install multiple remote files in one execution though, so in that sense, you could ensure they've installed the right files. Regarding checking for packages and dependencies, that can just be done within I've sourced from |
I have updated some commits today, and I believe that one of them is important. Originally, I used Now that we can allow using Thanks all your help, and I wish we can complete (or add more) todo together! |
Unfortunately, albeit unlikely, filenames can have newline characters. One approach is to use It's still a huge improvement over What you could do, and what'd I'd probably consider, is to omit invalid (non-POSIX) filenames, or put something similar in its place; hence the aforementioned While not strict to POSIX, I wrote FNSanityChk just now and added it to my |
I am now thinking whether it is possible to cd to the lastpath that you were, but also change the cursor to the last choice that you chosen. For example, if I scroll through a directory that is full of random named picture, I either open one of the picture or exit. Whenever I open it again, the cursor is at the top of the file rather than the one that I selected/chosen. I am wondering whether it is possible for dmenufm to go back to the cursor where the user was. |
AFAIK, you can't pre-select something like that. |
My thought is that maybe it is possible to rebuild the Menu so that separated with respect to the chosen file? For example: file1
file2
file3
file4 After I choose file3
file4
file1
file2 |
Finished by newly implemented |
Does anyone know how to write a vim script so that we can use dmenufm as a file picker? |
That sounds cool, but not everyone uses vim; it would still be awesome as a feature available if vim is detected, or as an optional feature. I can vimscript, but I don't think I'm gonna have much time for this stuff over the next couple of weeks, unfortunately. I've not had a chance to check in on dmenufm, but I recommend holding off on adding new features like that and focus on things like bugs and cleaning up the code where possible. It already has the core concept, but the last time I used it, it seemed like it could've done with some ironing out. |
Thank you for the advice! I am also thinking about separating dmenufm into different files so that it is easier to maintain. |
I usually favor just the one file, but since it's around 1000 lines, maybe splitting it up into two or three be a good idea. Don't go overboard (this is just IMO) because it can be a pain in the ass shuffling between a ton of files for just a few lines of code. One example, IMO, of a good split, would be if you have a program which has a user configuration file, like my new Perl program, git-tudu, which is in master now, and has some cool features; you might find it useful actually. Anyway, if the configuration file setup and maybe generation becomes rather extensive, having it work separately would be awesome, because they are probably two things (main code and it) not often needed to be seen at the same time. Speaking of a configuration file, I wonder if dmenufm could benefit from it in the future. Regarding your imagine preview todo item, I think something like Honestly, I think using a different menu system might be better, like rofi. Obviously that's not ideal, because that'd mean damn near starting again. lol But I think you're gonna run into a lot of limitations. Maybe someone forked dmenu and did some cool stuff making it more scriptable. |
I have tried on separating one scripts into multiple scripts by adding a branch |
Working progress: Most of the items on the TODO list has been (partially) completed. I am so glad that I can come up with a workable idea with Now I believe that the combination of I have already releases the v1.0 release, hope that there are more people can contribute to this project! |
@VebbNix is it possible for you to help me with the aur package and vim plugin stuff? Thank you! |
@huijunchen9260 Sorry, have been busy recently. I have no experience with packaging for the AUR, and have not been on arch in a while, so I feel like I am not the best person to assist with this. About vim plugin, I am not sure that is best suited for a todo list on this repository. As in since this would certainly be a separate repository I am not sure it is best to have it on a todo list here. That said, I may be willing to create this plugin. Update: Read newest comment. When I wrote this, I misspoke, I meant my motivation to continue supporting it if need be may be stifled NOT my will to create it. |
I have made a simple vim plugin for Dmenufm file picking, which can be found here. If you would like me to give you write access to this repository just let me know and I will have no problem with that. Probably will have some features to add, but here it is in its basic form. |
Nick! I totally don't know how to write vim script LOL |
Should Vim plugin be ticked off the list now, or does my solution not suffice? |
Sorry for late reply, because I haven't known how to make a pull request XD |
Ah alright. I have merged your commits, thanks for this! |
I need to commit something for me to learn it: I will watch this video and learn how to make AUR package!!!!!! |
Hello dmenu support some parameters to change the color scheme:
(from https://github.com/dracula/i3/blob/master/.config/i3/config) Can I do the same with dmenufm? |
You can see some color configuration from README.md. |
There are already two packages in the AUR. A release and a git version. |
Wow! Thank you so much! May I ask what's the difference bewteen release and git version? Based on my release package and git commit? |
Release version is based on your github releases and the git version is based on your commits. |
Will it auto update whenever I upload commits or make such releases? Thank you! |
Yes. The packages will fetch your latest release or commit. |
Should we close this issue? All goals have been met (hooray!) so I don't see a reason to keep this here. Unless you plan to use this issue to house all future long-term work in progress issues. |
Yes, I intended to leave this comment for some possible TODO and maybe some discussion about dmenufm in this issue. I wish to leave it here. |
Fuzzy finder? |
Why not just use fzf?
|
Wow, dmenufm is awesome! |
Feel free to look my other project like dmenubib. or tabbed-hjc |
@VebbNix I am so surprised that it didn't take me much work to change |
I thought of this, possibly supporting different programs as the interface. I use bemenu so I did think at some point this may be a good idea to try to support other programs of similar nature. If you would like we can work on another branch that aims to streamline support for most programs like fzf, peco, bemenu, etc. Would mostly involve stripping out hardcoded dmenu specific options and instead only using them if dmenu is being used. |
I just tried out upload my current work to fzffm branch. Maybe you can try it out? (To avoid name conflict I also change the file names.) |
Will try it! |
Dear @VebbNix : In the most recent update, I tried my best to replace if statements with case statements, and I think the code is much cleaner now. I commented the original code so that if something goes wrong, we can go back to old code. Could you try the newest version for me? I wonder whether there is any bug. Thanks! |
Sure! I'll take a look tomorrow as I am about to go to bed, I'll see if anything goes wrong. |
Is it possible to use dmenufm as a file selection prompt. The file selection prompt should output the path of the file into the shell instead of opening the file through |
@saandre15 Hi, you can use the |
Is there an option for selecting directory only or file only? |
See |
If you still want to be able to access directories (the Quick example chooseFile () {
chosen_file=$(dmenufm $1) # pass first arg to dmenufm.
[ -d "$chosen_file" ] && chooseFile "$chosen_file" # call this function again with chosen dir as path.
} You could implement this in a lot of ways to fit your needs, that is just one idea. |
~
or/
) for directories and filesWish list?
The text was updated successfully, but these errors were encountered: