Truncate from beginning in RofiKeep only first match from locate outputCommand output to file, new lines at...
LeetCode: Pascal's Triangle C#
Which household object drew this pattern?
Fancy String Replace
Is refusing to concede in the face of an unstoppable Nexus combo punishable?
Why is observed clock rate < 3MHz on Arduino Uno?
Why don't we use Cavea-B
Why aren't RCS openings an issue for spacecraft heat shields?
How to dismiss intrusive questions from a colleague with whom I don't work?
Is it best to use a tie when using 8th notes off the beat?
Do ability scores have any effect on casting Wish spell
Ask for a paid taxi in order to arrive as early as possible for an interview within the city
How much code would a codegolf golf if a codegolf could golf code?
Why didn’t Doctor Strange stay in the original winning timeline?
What professions would a medieval village with a population of 100 need?
Was Switzerland really impossible to invade during WW2?
Sleeping solo in a double sleeping bag
Why would the US President need briefings on UFOs?
Why don't electrons take the shorter path in coils
In what ways can a Non-paladin access Paladin spells?
If I have a 16.67% fail rate (N=24) & I do another 24 tests, what is the likelihood that I get 0 fails by chance?
How does turbine efficiency compare with internal combustion engines if all the turbine power is converted to mechanical energy?
How to refer to a regex group in awk regex?
Why doesn't the Falcon-9 first stage use three legs to land?
Have only girls been born for a long time in this village?
Truncate from beginning in Rofi
Keep only first match from locate outputCommand output to file, new lines at beginningNo output from locate commandadding date to beginning of file name using scriptsubstitute at beginning of lineQuick way to open results from `find` or `locate`Go to the beginning of the loop in bashWhy doesn't Rofi show icons on Debian 9 when run with drun-icon-theme option?In NixOS, is there a way to use Rofi instead of Dmenu when invoking Passmenu?Rofi icons not showing on void-linux + i3 + Papirus icon theme
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'm using this command for a rofi-locate script (source):
xdg-open "$(locate $query | rofi -threads 0 -width 90 -dmenu -i -p "locate:")"
Currently all long path results are truncated from the end, and the actual filename isn't visible, as Rofi truncates from the end if a line is too long to fit. Is it possible to make it truncate from the beginning?
Basically, showing
...h/that/cant/possibly/fit/in/a/single/line/so/it/gets/truncated.txt
in place of
/a/very/long/path/that/cant/possibly/fit/in/a/single/line/so/it/ge...
scripting locate rofi
add a comment |
I'm using this command for a rofi-locate script (source):
xdg-open "$(locate $query | rofi -threads 0 -width 90 -dmenu -i -p "locate:")"
Currently all long path results are truncated from the end, and the actual filename isn't visible, as Rofi truncates from the end if a line is too long to fit. Is it possible to make it truncate from the beginning?
Basically, showing
...h/that/cant/possibly/fit/in/a/single/line/so/it/gets/truncated.txt
in place of
/a/very/long/path/that/cant/possibly/fit/in/a/single/line/so/it/ge...
scripting locate rofi
add a comment |
I'm using this command for a rofi-locate script (source):
xdg-open "$(locate $query | rofi -threads 0 -width 90 -dmenu -i -p "locate:")"
Currently all long path results are truncated from the end, and the actual filename isn't visible, as Rofi truncates from the end if a line is too long to fit. Is it possible to make it truncate from the beginning?
Basically, showing
...h/that/cant/possibly/fit/in/a/single/line/so/it/gets/truncated.txt
in place of
/a/very/long/path/that/cant/possibly/fit/in/a/single/line/so/it/ge...
scripting locate rofi
I'm using this command for a rofi-locate script (source):
xdg-open "$(locate $query | rofi -threads 0 -width 90 -dmenu -i -p "locate:")"
Currently all long path results are truncated from the end, and the actual filename isn't visible, as Rofi truncates from the end if a line is too long to fit. Is it possible to make it truncate from the beginning?
Basically, showing
...h/that/cant/possibly/fit/in/a/single/line/so/it/gets/truncated.txt
in place of
/a/very/long/path/that/cant/possibly/fit/in/a/single/line/so/it/ge...
scripting locate rofi
scripting locate rofi
asked Jan 9 at 15:51
aksh1618aksh1618
2211 silver badge11 bronze badges
2211 silver badge11 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can press Alt + period to toggle ellipsize mode.
https://github.com/davatorium/rofi/issues/917
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f493487%2ftruncate-from-beginning-in-rofi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can press Alt + period to toggle ellipsize mode.
https://github.com/davatorium/rofi/issues/917
add a comment |
You can press Alt + period to toggle ellipsize mode.
https://github.com/davatorium/rofi/issues/917
add a comment |
You can press Alt + period to toggle ellipsize mode.
https://github.com/davatorium/rofi/issues/917
You can press Alt + period to toggle ellipsize mode.
https://github.com/davatorium/rofi/issues/917
answered 2 days ago
Ritesh SahuRitesh Sahu
114 bronze badges
114 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f493487%2ftruncate-from-beginning-in-rofi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown